{ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, "errors": [ "SyntaxError: Initializers are not allowed in fields with the `declare` modifier. (2:16)" ], "program": { "type": "Program", "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}}, "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":29,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":29}}, "body": [ { "type": "ClassProperty", "start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27}}, "declare": true, "static": false, "variance": null, "key": { "type": "Identifier", "start":20,"end":23,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":13,"index":23},"identifierName":"foo"}, "name": "foo" }, "computed": false, "value": { "type": "NumericLiteral", "start":26,"end":27,"loc":{"start":{"line":2,"column":16,"index":26},"end":{"line":2,"column":17,"index":27}}, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } ] } } ], "directives": [] } }