Files

59 lines
2.1 KiB
JSON

{
"type": "File",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
"errors": [
"SyntaxError: The `declare` modifier can only appear on class fields. (2:2)"
],
"program": {
"type": "Program",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
"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": null,
"body": {
"type": "ClassBody",
"start":8,"end":38,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":38}},
"body": [
{
"type": "ClassMethod",
"start":12,"end":36,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":26,"index":36}},
"declare": true,
"static": false,
"key": {
"type": "Identifier",
"start":20,"end":31,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":21,"index":31},"identifierName":"constructor"},
"name": "constructor"
},
"computed": false,
"kind": "constructor",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":34,"end":36,"loc":{"start":{"line":2,"column":24,"index":34},"end":{"line":2,"column":26,"index":36}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}