| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (4:13)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ClassDeclaration", |
| 15 |
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"}, |
| 19 |
"name": "A" |
| 20 |
}, |
| 21 |
"superClass": { |
| 22 |
"type": "Identifier", |
| 23 |
"start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"B"}, |
| 24 |
"name": "B" |
| 25 |
}, |
| 26 |
"body": { |
| 27 |
"type": "ClassBody", |
| 28 |
"start":18,"end":95,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":95}}, |
| 29 |
"body": [ |
| 30 |
{ |
| 31 |
"type": "ClassMethod", |
| 32 |
"start":22,"end":93,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":6,"column":3,"index":93}}, |
| 33 |
"static": false, |
| 34 |
"key": { |
| 35 |
"type": "Identifier", |
| 36 |
"start":22,"end":33,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":13,"index":33},"identifierName":"constructor"}, |
| 37 |
"name": "constructor" |
| 38 |
}, |
| 39 |
"computed": false, |
| 40 |
"kind": "constructor", |
| 41 |
"id": null, |
| 42 |
"generator": false, |
| 43 |
"async": false, |
| 44 |
"params": [], |
| 45 |
"body": { |
| 46 |
"type": "BlockStatement", |
| 47 |
"start":36,"end":93,"loc":{"start":{"line":2,"column":16,"index":36},"end":{"line":6,"column":3,"index":93}}, |
| 48 |
"body": [ |
| 49 |
{ |
| 50 |
"type": "ClassDeclaration", |
| 51 |
"start":42,"end":89,"loc":{"start":{"line":3,"column":4,"index":42},"end":{"line":5,"column":5,"index":89}}, |
| 52 |
"id": { |
| 53 |
"type": "Identifier", |
| 54 |
"start":48,"end":49,"loc":{"start":{"line":3,"column":10,"index":48},"end":{"line":3,"column":11,"index":49},"identifierName":"C"}, |
| 55 |
"name": "C" |
| 56 |
}, |
| 57 |
"superClass": { |
| 58 |
"type": "Identifier", |
| 59 |
"start":58,"end":59,"loc":{"start":{"line":3,"column":20,"index":58},"end":{"line":3,"column":21,"index":59},"identifierName":"D"}, |
| 60 |
"name": "D" |
| 61 |
}, |
| 62 |
"body": { |
| 63 |
"type": "ClassBody", |
| 64 |
"start":60,"end":89,"loc":{"start":{"line":3,"column":22,"index":60},"end":{"line":5,"column":5,"index":89}}, |
| 65 |
"body": [ |
| 66 |
{ |
| 67 |
"type": "ClassPrivateProperty", |
| 68 |
"start":68,"end":83,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":21,"index":83}}, |
| 69 |
"static": false, |
| 70 |
"key": { |
| 71 |
"type": "PrivateName", |
| 72 |
"start":68,"end":72,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":10,"index":72}}, |
| 73 |
"id": { |
| 74 |
"type": "Identifier", |
| 75 |
"start":69,"end":72,"loc":{"start":{"line":4,"column":7,"index":69},"end":{"line":4,"column":10,"index":72},"identifierName":"foo"}, |
| 76 |
"name": "foo" |
| 77 |
} |
| 78 |
}, |
| 79 |
"value": { |
| 80 |
"type": "CallExpression", |
| 81 |
"start":75,"end":82,"loc":{"start":{"line":4,"column":13,"index":75},"end":{"line":4,"column":20,"index":82}}, |
| 82 |
"callee": { |
| 83 |
"type": "Super", |
| 84 |
"start":75,"end":80,"loc":{"start":{"line":4,"column":13,"index":75},"end":{"line":4,"column":18,"index":80}} |
| 85 |
}, |
| 86 |
"arguments": [] |
| 87 |
} |
| 88 |
} |
| 89 |
] |
| 90 |
} |
| 91 |
} |
| 92 |
], |
| 93 |
"directives": [] |
| 94 |
} |
| 95 |
} |
| 96 |
] |
| 97 |
} |
| 98 |
} |
| 99 |
], |
| 100 |
"directives": [] |
| 101 |
} |
| 102 |
} |