54 lines
1.8 KiB
JSON

{
"type": "File",
"start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},
"errors": [
"SyntaxError: Class constructor may not be an accessor. (1:13)"
],
"program": {
"type": "Program",
"start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},
"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":29,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":29}},
"body": [
{
"type": "ClassMethod",
"start":9,"end":28,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":28}},
"static": false,
"key": {
"type": "Identifier",
"start":13,"end":24,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":24},"identifierName":"constructor"},
"name": "constructor"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":26,"end":28,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":28}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": []
}
}