53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'C1' has already been declared (2:6)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":14,"end":16,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":16},"identifierName":"C1"},
|
|
"name": "C1"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":17,"end":19,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":19}},
|
|
"callProperties": [],
|
|
"properties": [],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":20,"end":31,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":11}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":26,"end":28,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":8},"identifierName":"C1"},
|
|
"name": "C1"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":29,"end":31,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":11}},
|
|
"body": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |