77 lines
2.9 KiB
JSON
77 lines
2.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
|
|
"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},"end":{"line":5,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":39,"loc":{"start":{"line":1,"column":8},"end":{"line":5,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":12,"end":37,"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":3},"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},"end":{"line":4,"column":3}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":23,"end":33,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":14}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":23,"end":32,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":13}},
|
|
"left": {
|
|
"type": "Super",
|
|
"start":23,"end":28,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":9}}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":31,"end":32,"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":13}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |