Files

62 lines
2.1 KiB
JSON

{
"type": "File",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":41}},
"errors": [
"SyntaxError: Identifier 'A' has already been declared. (2:14)"
],
"program": {
"type": "Program",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":41}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "DeclareInterface",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
"id": {
"type": "Identifier",
"start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"A"},
"name": "A"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
"callProperties": [],
"properties": [],
"indexers": [],
"internalSlots": [],
"exact": false
}
},
{
"type": "DeclareClass",
"start":23,"end":41,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":18,"index":41}},
"id": {
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":2,"column":14,"index":37},"end":{"line":2,"column":15,"index":38},"identifierName":"A"},
"name": "A"
},
"typeParameters": null,
"extends": [],
"implements": [],
"mixins": [],
"body": {
"type": "ObjectTypeAnnotation",
"start":39,"end":41,"loc":{"start":{"line":2,"column":16,"index":39},"end":{"line":2,"column":18,"index":41}},
"callProperties": [],
"properties": [],
"indexers": [],
"internalSlots": [],
"exact": false
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}