50 lines
1.7 KiB
JSON
50 lines
1.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'A' has already been declared (2:4)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareVariable",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":12,"end":21,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":21},"identifierName":"A"},
|
|
"name": "A",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":13,"end":21,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":21}},
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":15,"end":21,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":21}}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":23,"end":29,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":6}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":5}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":5},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |