1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "Foo", 10 "loc": { 11 "start": { 12 "line": 17, 13 "column": 7 14 }, 15 "end": { 16 "line": 17, 17 "column": 10 18 } 19 } 20 }, 21 "superClass": null, 22 "implements": [], 23 "constructor": { 24 "type": "MethodDefinition", 25 "key": { 26 "type": "Identifier", 27 "name": "constructor", 28 "loc": { 29 "start": { 30 "line": 1, 31 "column": 1 32 }, 33 "end": { 34 "line": 1, 35 "column": 1 36 } 37 } 38 }, 39 "kind": "constructor", 40 "static": false, 41 "optional": false, 42 "computed": false, 43 "value": { 44 "type": "FunctionExpression", 45 "function": { 46 "type": "ScriptFunction", 47 "id": null, 48 "generator": false, 49 "async": false, 50 "expression": false, 51 "params": [], 52 "body": { 53 "type": "BlockStatement", 54 "statements": [], 55 "loc": { 56 "start": { 57 "line": 1, 58 "column": 1 59 }, 60 "end": { 61 "line": 1, 62 "column": 1 63 } 64 } 65 }, 66 "loc": { 67 "start": { 68 "line": 1, 69 "column": 1 70 }, 71 "end": { 72 "line": 1, 73 "column": 1 74 } 75 } 76 }, 77 "loc": { 78 "start": { 79 "line": 1, 80 "column": 1 81 }, 82 "end": { 83 "line": 1, 84 "column": 1 85 } 86 } 87 }, 88 "overloads": [], 89 "decorators": [], 90 "loc": { 91 "start": { 92 "line": 17, 93 "column": 1 94 }, 95 "end": { 96 "line": 21, 97 "column": 2 98 } 99 } 100 }, 101 "body": [ 102 { 103 "type": "MethodDefinition", 104 "key": { 105 "type": "Identifier", 106 "name": "bar", 107 "loc": { 108 "start": { 109 "line": 18, 110 "column": 5 111 }, 112 "end": { 113 "line": 18, 114 "column": 8 115 } 116 } 117 }, 118 "kind": "method", 119 "static": false, 120 "optional": false, 121 "computed": false, 122 "value": { 123 "type": "FunctionExpression", 124 "function": { 125 "type": "ScriptFunction", 126 "id": null, 127 "generator": false, 128 "async": false, 129 "expression": false, 130 "params": [], 131 "loc": { 132 "start": { 133 "line": 18, 134 "column": 8 135 }, 136 "end": { 137 "line": 18, 138 "column": 11 139 } 140 } 141 }, 142 "loc": { 143 "start": { 144 "line": 18, 145 "column": 8 146 }, 147 "end": { 148 "line": 18, 149 "column": 11 150 } 151 } 152 }, 153 "overloads": [], 154 "decorators": [], 155 "loc": { 156 "start": { 157 "line": 18, 158 "column": 5 159 }, 160 "end": { 161 "line": 18, 162 "column": 11 163 } 164 } 165 }, 166 { 167 "type": "MethodDefinition", 168 "key": { 169 "type": "Identifier", 170 "name": "bar", 171 "loc": { 172 "start": { 173 "line": 19, 174 "column": 5 175 }, 176 "end": { 177 "line": 19, 178 "column": 8 179 } 180 } 181 }, 182 "kind": "method", 183 "static": false, 184 "optional": false, 185 "computed": false, 186 "value": { 187 "type": "FunctionExpression", 188 "function": { 189 "type": "ScriptFunction", 190 "id": null, 191 "generator": false, 192 "async": false, 193 "expression": false, 194 "params": [], 195 "loc": { 196 "start": { 197 "line": 19, 198 "column": 8 199 }, 200 "end": { 201 "line": 19, 202 "column": 11 203 } 204 } 205 }, 206 "loc": { 207 "start": { 208 "line": 19, 209 "column": 8 210 }, 211 "end": { 212 "line": 19, 213 "column": 11 214 } 215 } 216 }, 217 "overloads": [], 218 "decorators": [], 219 "loc": { 220 "start": { 221 "line": 19, 222 "column": 5 223 }, 224 "end": { 225 "line": 19, 226 "column": 11 227 } 228 } 229 }, 230 { 231 "type": "MethodDefinition", 232 "key": { 233 "type": "Identifier", 234 "name": "bar", 235 "loc": { 236 "start": { 237 "line": 20, 238 "column": 5 239 }, 240 "end": { 241 "line": 20, 242 "column": 8 243 } 244 } 245 }, 246 "kind": "method", 247 "static": false, 248 "optional": true, 249 "computed": false, 250 "value": { 251 "type": "FunctionExpression", 252 "function": { 253 "type": "ScriptFunction", 254 "id": null, 255 "generator": false, 256 "async": false, 257 "expression": false, 258 "params": [], 259 "body": { 260 "type": "BlockStatement", 261 "statements": [], 262 "loc": { 263 "start": { 264 "line": 20, 265 "column": 12 266 }, 267 "end": { 268 "line": 20, 269 "column": 15 270 } 271 } 272 }, 273 "loc": { 274 "start": { 275 "line": 20, 276 "column": 9 277 }, 278 "end": { 279 "line": 20, 280 "column": 15 281 } 282 } 283 }, 284 "loc": { 285 "start": { 286 "line": 20, 287 "column": 9 288 }, 289 "end": { 290 "line": 20, 291 "column": 15 292 } 293 } 294 }, 295 "overloads": [], 296 "decorators": [], 297 "loc": { 298 "start": { 299 "line": 20, 300 "column": 5 301 }, 302 "end": { 303 "line": 20, 304 "column": 15 305 } 306 } 307 } 308 ], 309 "indexSignatures": [], 310 "loc": { 311 "start": { 312 "line": 17, 313 "column": 11 314 }, 315 "end": { 316 "line": 21, 317 "column": 2 318 } 319 } 320 }, 321 "decorators": [], 322 "loc": { 323 "start": { 324 "line": 17, 325 "column": 1 326 }, 327 "end": { 328 "line": 21, 329 "column": 2 330 } 331 } 332 } 333 ], 334 "loc": { 335 "start": { 336 "line": 1, 337 "column": 1 338 }, 339 "end": { 340 "line": 21, 341 "column": 2 342 } 343 } 344} 345