| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":6,"index":29}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'A' has already been declared. (2:4)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":6,"index":29}}, |
| 10 |
"sourceType": "module", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "DeclareVariable", |
| 15 |
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":12,"end":21,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":21,"index":21},"identifierName":"A"}, |
| 19 |
"name": "A", |
| 20 |
"typeAnnotation": { |
| 21 |
"type": "TypeAnnotation", |
| 22 |
"start":13,"end":21,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":21,"index":21}}, |
| 23 |
"typeAnnotation": { |
| 24 |
"type": "NumberTypeAnnotation", |
| 25 |
"start":15,"end":21,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":21,"index":21}} |
| 26 |
} |
| 27 |
} |
| 28 |
} |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "VariableDeclaration", |
| 32 |
"start":23,"end":29,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":6,"index":29}}, |
| 33 |
"declarations": [ |
| 34 |
{ |
| 35 |
"type": "VariableDeclarator", |
| 36 |
"start":27,"end":28,"loc":{"start":{"line":2,"column":4,"index":27},"end":{"line":2,"column":5,"index":28}}, |
| 37 |
"id": { |
| 38 |
"type": "Identifier", |
| 39 |
"start":27,"end":28,"loc":{"start":{"line":2,"column":4,"index":27},"end":{"line":2,"column":5,"index":28},"identifierName":"A"}, |
| 40 |
"name": "A" |
| 41 |
}, |
| 42 |
"init": null |
| 43 |
} |
| 44 |
], |
| 45 |
"kind": "let" |
| 46 |
} |
| 47 |
], |
| 48 |
"directives": [] |
| 49 |
} |
| 50 |
} |