Files

103 lines
4.7 KiB
JSON

{
"type": "File",
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}},
"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? (4:13)"
],
"program": {
"type": "Program",
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":95}},
"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": {
"type": "Identifier",
"start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"B"},
"name": "B"
},
"body": {
"type": "ClassBody",
"start":18,"end":95,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":95}},
"body": [
{
"type": "ClassMethod",
"start":22,"end":93,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":6,"column":3,"index":93}},
"static": false,
"key": {
"type": "Identifier",
"start":22,"end":33,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":13,"index":33},"identifierName":"constructor"},
"name": "constructor"
},
"computed": false,
"kind": "constructor",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":36,"end":93,"loc":{"start":{"line":2,"column":16,"index":36},"end":{"line":6,"column":3,"index":93}},
"body": [
{
"type": "ClassDeclaration",
"start":42,"end":89,"loc":{"start":{"line":3,"column":4,"index":42},"end":{"line":5,"column":5,"index":89}},
"id": {
"type": "Identifier",
"start":48,"end":49,"loc":{"start":{"line":3,"column":10,"index":48},"end":{"line":3,"column":11,"index":49},"identifierName":"C"},
"name": "C"
},
"superClass": {
"type": "Identifier",
"start":58,"end":59,"loc":{"start":{"line":3,"column":20,"index":58},"end":{"line":3,"column":21,"index":59},"identifierName":"D"},
"name": "D"
},
"body": {
"type": "ClassBody",
"start":60,"end":89,"loc":{"start":{"line":3,"column":22,"index":60},"end":{"line":5,"column":5,"index":89}},
"body": [
{
"type": "ClassPrivateProperty",
"start":68,"end":83,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":21,"index":83}},
"static": false,
"key": {
"type": "PrivateName",
"start":68,"end":72,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":10,"index":72}},
"id": {
"type": "Identifier",
"start":69,"end":72,"loc":{"start":{"line":4,"column":7,"index":69},"end":{"line":4,"column":10,"index":72},"identifierName":"foo"},
"name": "foo"
}
},
"value": {
"type": "CallExpression",
"start":75,"end":82,"loc":{"start":{"line":4,"column":13,"index":75},"end":{"line":4,"column":20,"index":82}},
"callee": {
"type": "Super",
"start":75,"end":80,"loc":{"start":{"line":4,"column":13,"index":75},"end":{"line":4,"column":18,"index":80}}
},
"arguments": []
}
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}