| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'foo' has already been declared. (3:6)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "TryStatement", |
| 15 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}}, |
| 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":38,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":38}}, |
| 25 |
"param": { |
| 26 |
"type": "ObjectPattern", |
| 27 |
"start":15,"end":22,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":16,"index":22}}, |
| 28 |
"properties": [ |
| 29 |
{ |
| 30 |
"type": "ObjectProperty", |
| 31 |
"start":17,"end":20,"loc":{"start":{"line":2,"column":11,"index":17},"end":{"line":2,"column":14,"index":20}}, |
| 32 |
"key": { |
| 33 |
"type": "Identifier", |
| 34 |
"start":17,"end":20,"loc":{"start":{"line":2,"column":11,"index":17},"end":{"line":2,"column":14,"index":20},"identifierName":"foo"}, |
| 35 |
"name": "foo" |
| 36 |
}, |
| 37 |
"computed": false, |
| 38 |
"method": false, |
| 39 |
"shorthand": true, |
| 40 |
"value": { |
| 41 |
"type": "Identifier", |
| 42 |
"start":17,"end":20,"loc":{"start":{"line":2,"column":11,"index":17},"end":{"line":2,"column":14,"index":20},"identifierName":"foo"}, |
| 43 |
"name": "foo" |
| 44 |
}, |
| 45 |
"extra": { |
| 46 |
"shorthand": true |
| 47 |
} |
| 48 |
} |
| 49 |
] |
| 50 |
}, |
| 51 |
"body": { |
| 52 |
"type": "BlockStatement", |
| 53 |
"start":24,"end":38,"loc":{"start":{"line":2,"column":18,"index":24},"end":{"line":4,"column":1,"index":38}}, |
| 54 |
"body": [ |
| 55 |
{ |
| 56 |
"type": "VariableDeclaration", |
| 57 |
"start":28,"end":36,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":10,"index":36}}, |
| 58 |
"declarations": [ |
| 59 |
{ |
| 60 |
"type": "VariableDeclarator", |
| 61 |
"start":32,"end":35,"loc":{"start":{"line":3,"column":6,"index":32},"end":{"line":3,"column":9,"index":35}}, |
| 62 |
"id": { |
| 63 |
"type": "Identifier", |
| 64 |
"start":32,"end":35,"loc":{"start":{"line":3,"column":6,"index":32},"end":{"line":3,"column":9,"index":35},"identifierName":"foo"}, |
| 65 |
"name": "foo" |
| 66 |
}, |
| 67 |
"init": null |
| 68 |
} |
| 69 |
], |
| 70 |
"kind": "var" |
| 71 |
} |
| 72 |
], |
| 73 |
"directives": [] |
| 74 |
} |
| 75 |
}, |
| 76 |
"finalizer": null |
| 77 |
} |
| 78 |
], |
| 79 |
"directives": [] |
| 80 |
} |
| 81 |
} |