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