| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Classes may not have a field named 'constructor'. (2:2)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "ClassDeclaration", |
| 15 | "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}}, |
| 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":36,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":4,"column":1,"index":36}}, |
| 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 | "type": "ClassMethod", |
| 40 | "start":28,"end":34,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":8,"index":34}}, |
| 41 | "static": false, |
| 42 | "kind": "method", |
| 43 | "key": { |
| 44 | "type": "Identifier", |
| 45 | "start":29,"end":30,"loc":{"start":{"line":3,"column":3,"index":29},"end":{"line":3,"column":4,"index":30},"identifierName":"x"}, |
| 46 | "name": "x" |
| 47 | }, |
| 48 | "computed": false, |
| 49 | "id": null, |
| 50 | "generator": true, |
| 51 | "async": false, |
| 52 | "params": [], |
| 53 | "body": { |
| 54 | "type": "BlockStatement", |
| 55 | "start":32,"end":34,"loc":{"start":{"line":3,"column":6,"index":32},"end":{"line":3,"column":8,"index":34}}, |
| 56 | "body": [], |
| 57 | "directives": [] |
| 58 | } |
| 59 | } |
| 60 | ] |
| 61 | } |
| 62 | } |
| 63 | ], |
| 64 | "directives": [] |
| 65 | } |
| 66 | } |