{ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, "errors": [ "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)" ], "program": { "type": "Program", "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":39}}, "id": { "type": "Identifier", "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"}, "name": "A" }, "superClass": null, "body": { "type": "ClassBody", "start":8,"end":39,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":39}}, "body": [ { "type": "ClassMethod", "start":12,"end":37,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":4,"column":3,"index":37}}, "static": false, "key": { "type": "Identifier", "start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13},"identifierName":"x"}, "name": "x" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":17,"end":37,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":4,"column":3,"index":37}}, "body": [ { "type": "ExpressionStatement", "start":23,"end":33,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":14,"index":33}}, "expression": { "type": "BinaryExpression", "start":23,"end":32,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":13,"index":32}}, "left": { "type": "Super", "start":23,"end":28,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":9,"index":28}} }, "operator": "-", "right": { "type": "NumericLiteral", "start":31,"end":32,"loc":{"start":{"line":3,"column":12,"index":31},"end":{"line":3,"column":13,"index":32}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } } ], "directives": [] } } ] } } ], "directives": [] } }