80 lines
2.8 KiB
JSON
80 lines
2.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"errors": [
|
|
"SyntaxError: Duplicate constructor in the same class (1:27)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"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":47,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":47}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":10,"end":26,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":26}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":10,"end":21,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":21},"identifierName":"constructor"},
|
|
"name": "constructor"
|
|
},
|
|
"computed": false,
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":24,"end":26,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":26}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":27,"end":45,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":45}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "StringLiteral",
|
|
"start":27,"end":40,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":40}},
|
|
"extra": {
|
|
"rawValue": "constructor",
|
|
"raw": "'constructor'"
|
|
},
|
|
"value": "constructor"
|
|
},
|
|
"computed": false,
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":43,"end":45,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":45}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |