Files

100 lines
4.5 KiB
JSON

{
"type": "File",
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}},
"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:12)"
],
"program": {
"type": "Program",
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":94,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":94}},
"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":94,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":94}},
"body": [
{
"type": "ClassMethod",
"start":22,"end":92,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":6,"column":3,"index":92}},
"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":92,"loc":{"start":{"line":2,"column":16,"index":36},"end":{"line":6,"column":3,"index":92}},
"body": [
{
"type": "ClassDeclaration",
"start":42,"end":88,"loc":{"start":{"line":3,"column":4,"index":42},"end":{"line":5,"column":5,"index":88}},
"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":88,"loc":{"start":{"line":3,"column":22,"index":60},"end":{"line":5,"column":5,"index":88}},
"body": [
{
"type": "ClassProperty",
"start":68,"end":82,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":20,"index":82}},
"static": false,
"key": {
"type": "Identifier",
"start":68,"end":71,"loc":{"start":{"line":4,"column":6,"index":68},"end":{"line":4,"column":9,"index":71},"identifierName":"foo"},
"name": "foo"
},
"computed": false,
"value": {
"type": "CallExpression",
"start":74,"end":81,"loc":{"start":{"line":4,"column":12,"index":74},"end":{"line":4,"column":19,"index":81}},
"callee": {
"type": "Super",
"start":74,"end":79,"loc":{"start":{"line":4,"column":12,"index":74},"end":{"line":4,"column":17,"index":79}}
},
"arguments": []
}
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}