| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'foo' has already been declared. (3:6)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "TryStatement", |
| 15 |
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}}, |
| 16 |
"block": { |
| 17 |
"type": "BlockStatement", |
| 18 |
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":2,"column":1,"index":7}}, |
| 19 |
"body": [], |
| 20 |
"directives": [] |
| 21 |
}, |
| 22 |
"handler": { |
| 23 |
"type": "CatchClause", |
| 24 |
"start":8,"end":34,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":34}}, |
| 25 |
"param": { |
| 26 |
"type": "Identifier", |
| 27 |
"start":15,"end":18,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":12,"index":18},"identifierName":"foo"}, |
| 28 |
"name": "foo" |
| 29 |
}, |
| 30 |
"body": { |
| 31 |
"type": "BlockStatement", |
| 32 |
"start":20,"end":34,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":4,"column":1,"index":34}}, |
| 33 |
"body": [ |
| 34 |
{ |
| 35 |
"type": "VariableDeclaration", |
| 36 |
"start":24,"end":32,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":10,"index":32}}, |
| 37 |
"declarations": [ |
| 38 |
{ |
| 39 |
"type": "VariableDeclarator", |
| 40 |
"start":28,"end":31,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":3,"column":9,"index":31}}, |
| 41 |
"id": { |
| 42 |
"type": "Identifier", |
| 43 |
"start":28,"end":31,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":3,"column":9,"index":31},"identifierName":"foo"}, |
| 44 |
"name": "foo" |
| 45 |
}, |
| 46 |
"init": null |
| 47 |
} |
| 48 |
], |
| 49 |
"kind": "let" |
| 50 |
} |
| 51 |
], |
| 52 |
"directives": [] |
| 53 |
} |
| 54 |
}, |
| 55 |
"finalizer": null |
| 56 |
} |
| 57 |
], |
| 58 |
"directives": [] |
| 59 |
} |
| 60 |
} |