| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (3:4)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ClassDeclaration", |
| 15 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, |
| 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": null, |
| 22 |
"body": { |
| 23 |
"type": "ClassBody", |
| 24 |
"start":8,"end":39,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":39}}, |
| 25 |
"body": [ |
| 26 |
{ |
| 27 |
"type": "ClassMethod", |
| 28 |
"start":12,"end":37,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":4,"column":3,"index":37}}, |
| 29 |
"static": false, |
| 30 |
"key": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13},"identifierName":"x"}, |
| 33 |
"name": "x" |
| 34 |
}, |
| 35 |
"computed": false, |
| 36 |
"kind": "method", |
| 37 |
"id": null, |
| 38 |
"generator": false, |
| 39 |
"async": false, |
| 40 |
"params": [], |
| 41 |
"body": { |
| 42 |
"type": "BlockStatement", |
| 43 |
"start":17,"end":37,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":4,"column":3,"index":37}}, |
| 44 |
"body": [ |
| 45 |
{ |
| 46 |
"type": "ExpressionStatement", |
| 47 |
"start":23,"end":33,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":14,"index":33}}, |
| 48 |
"expression": { |
| 49 |
"type": "BinaryExpression", |
| 50 |
"start":23,"end":32,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":13,"index":32}}, |
| 51 |
"left": { |
| 52 |
"type": "Super", |
| 53 |
"start":23,"end":28,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":9,"index":28}} |
| 54 |
}, |
| 55 |
"operator": "-", |
| 56 |
"right": { |
| 57 |
"type": "NumericLiteral", |
| 58 |
"start":31,"end":32,"loc":{"start":{"line":3,"column":12,"index":31},"end":{"line":3,"column":13,"index":32}}, |
| 59 |
"extra": { |
| 60 |
"rawValue": 1, |
| 61 |
"raw": "1" |
| 62 |
}, |
| 63 |
"value": 1 |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
], |
| 68 |
"directives": [] |
| 69 |
} |
| 70 |
} |
| 71 |
] |
| 72 |
} |
| 73 |
} |
| 74 |
], |
| 75 |
"directives": [] |
| 76 |
} |
| 77 |
} |