68 lines
2.6 KiB
JSON
68 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"errors": [
|
|
"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:8)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"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":28,"loc":{"start":{"line":1,"column":8},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":12,"end":26,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":16}},
|
|
"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":26,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":16}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":18,"end":25,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":15}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":18,"end":25,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":15}},
|
|
"callee": {
|
|
"type": "Super",
|
|
"start":18,"end":23,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":13}}
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |