| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Classes may not have a field named 'constructor'. (2:2)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "ClassDeclaration", |
| 15 | "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}}, |
| 16 | "id": { |
| 17 | "type": "Identifier", |
| 18 | "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"}, |
| 19 | "name": "Foo" |
| 20 | }, |
| 21 | "superClass": null, |
| 22 | "body": { |
| 23 | "type": "ClassBody", |
| 24 | "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":27}}, |
| 25 | "body": [ |
| 26 | { |
| 27 | "type": "ClassProperty", |
| 28 | "start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25}}, |
| 29 | "static": false, |
| 30 | "key": { |
| 31 | "type": "Identifier", |
| 32 | "start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25},"identifierName":"constructor"}, |
| 33 | "name": "constructor" |
| 34 | }, |
| 35 | "computed": false, |
| 36 | "value": null |
| 37 | } |
| 38 | ] |
| 39 | } |
| 40 | } |
| 41 | ], |
| 42 | "directives": [] |
| 43 | } |
| 44 | } |