92 lines
3.4 KiB
JSON

{
"type": "File",
"start":0,"end":78,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"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? (5:4)"
],
"program": {
"type": "Program",
"start":0,"end":78,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"id": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"B"},
"name": "B"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":8,"end":10,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":10}},
"body": []
}
},
{
"type": "ClassDeclaration",
"start":11,"end":78,"loc":{"start":{"line":2,"column":0},"end":{"line":7,"column":1}},
"id": {
"type": "Identifier",
"start":17,"end":18,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":7},"identifierName":"C"},
"name": "C"
},
"superClass": {
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":17},"identifierName":"B"},
"name": "B"
},
"body": {
"type": "ClassBody",
"start":29,"end":78,"loc":{"start":{"line":2,"column":18},"end":{"line":7,"column":1}},
"body": [
{
"type": "ClassMethod",
"start":33,"end":48,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":17}},
"static": true,
"key": {
"type": "Identifier",
"start":40,"end":43,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":12},"identifierName":"foo"},
"name": "foo"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":46,"end":48,"loc":{"start":{"line":3,"column":15},"end":{"line":3,"column":17}},
"body": [],
"directives": []
}
},
{
"type": "StaticBlock",
"start":51,"end":76,"loc":{"start":{"line":4,"column":2},"end":{"line":6,"column":3}},
"body": [
{
"type": "ExpressionStatement",
"start":64,"end":72,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":12}},
"expression": {
"type": "CallExpression",
"start":64,"end":71,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":11}},
"callee": {
"type": "Super",
"start":64,"end":69,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":9}}
},
"arguments": []
}
}
]
}
]
}
}
],
"directives": []
}
}