|
| 1 | +{ |
| 2 | + "type": "File", |
| 3 | + "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}}, |
| 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? (2:13)" |
| 6 | + ], |
| 7 | + "program": { |
| 8 | + "type": "Program", |
| 9 | + "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}}, |
| 10 | + "sourceType": "script", |
| 11 | + "interpreter": null, |
| 12 | + "body": [ |
| 13 | + { |
| 14 | + "type": "ClassDeclaration", |
| 15 | + "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}}, |
| 16 | + "id": { |
| 17 | + "type": "Identifier", |
| 18 | + "start":6,"end":13,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":13,"index":13},"identifierName":"Derived"}, |
| 19 | + "name": "Derived" |
| 20 | + }, |
| 21 | + "superClass": { |
| 22 | + "type": "Identifier", |
| 23 | + "start":22,"end":26,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":26,"index":26},"identifierName":"Base"}, |
| 24 | + "name": "Base" |
| 25 | + }, |
| 26 | + "body": { |
| 27 | + "type": "ClassBody", |
| 28 | + "start":27,"end":52,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":3,"column":1,"index":52}}, |
| 29 | + "body": [ |
| 30 | + { |
| 31 | + "type": "ClassProperty", |
| 32 | + "start":31,"end":50,"loc":{"start":{"line":2,"column":2,"index":31},"end":{"line":2,"column":21,"index":50}}, |
| 33 | + "static": false, |
| 34 | + "key": { |
| 35 | + "type": "Identifier", |
| 36 | + "start":31,"end":39,"loc":{"start":{"line":2,"column":2,"index":31},"end":{"line":2,"column":10,"index":39},"identifierName":"property"}, |
| 37 | + "name": "property" |
| 38 | + }, |
| 39 | + "computed": false, |
| 40 | + "value": { |
| 41 | + "type": "CallExpression", |
| 42 | + "start":42,"end":49,"loc":{"start":{"line":2,"column":13,"index":42},"end":{"line":2,"column":20,"index":49}}, |
| 43 | + "callee": { |
| 44 | + "type": "Super", |
| 45 | + "start":42,"end":47,"loc":{"start":{"line":2,"column":13,"index":42},"end":{"line":2,"column":18,"index":47}} |
| 46 | + }, |
| 47 | + "arguments": [] |
| 48 | + } |
| 49 | + } |
| 50 | + ] |
| 51 | + } |
| 52 | + } |
| 53 | + ], |
| 54 | + "directives": [] |
| 55 | + } |
| 56 | +} |
0 commit comments