| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 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:12)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "ClassDeclaration", |
| 15 | "start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}}, |
| 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":94,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":94}}, |
| 29 | "body": [ |
| 30 | { |
| 31 | "type": "ClassMethod", |
| 32 | "start":22,"end":92,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":6,"column":3,"index":92}}, |
| 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":92,"loc":{"start":{"line":2,"column":16,"index":36},"end":{"line":6,"column":3,"index":92}}, |
| 48 | "body": [ |
| 49 | { |
| 50 | "type": "ClassDeclaration", |
| 51 | "start":42,"end":88,"loc":{"start":{"line":3,"column":4,"index":42},"end":{"line":5,"column":5,"index":88}}, |
| 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":88,"loc":{"start":{"line":3,"column":22,"index":60},"end":{"line":5,"column":5,"index":88}}, |
| 65 | "body": [ |
| 66 | { |
| 67 | "type": "ClassProperty", |
| 68 | "start":68,"end":82,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":20,"index":82}}, |
| 69 | "static": false, |
| 70 | "key": { |
| 71 | "type": "Identifier", |
| 72 | "start":68,"end":71,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":9,"index":71},"identifierName":"foo"}, |
| 73 | "name": "foo" |
| 74 | }, |
| 75 | "computed": false, |
| 76 | "value": { |
| 77 | "type": "CallExpression", |
| 78 | "start":74,"end":81,"loc":{"start":{"line":4,"column":12,"index":74},"end":{"line":4,"column":19,"index":81}}, |
| 79 | "callee": { |
| 80 | "type": "Super", |
| 81 | "start":74,"end":79,"loc":{"start":{"line":4,"column":12,"index":74},"end":{"line":4,"column":17,"index":79}} |
| 82 | }, |
| 83 | "arguments": [] |
| 84 | } |
| 85 | } |
| 86 | ] |
| 87 | } |
| 88 | } |
| 89 | ], |
| 90 | "directives": [] |
| 91 | } |
| 92 | } |
| 93 | ] |
| 94 | } |
| 95 | } |
| 96 | ], |
| 97 | "directives": [] |
| 98 | } |
| 99 | } |