| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":51}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'foo' has already been declared. (2:16)", |
| 6 |
"SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:0)" |
| 7 |
], |
| 8 |
"program": { |
| 9 |
"type": "Program", |
| 10 |
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":51}}, |
| 11 |
"sourceType": "module", |
| 12 |
"interpreter": null, |
| 13 |
"body": [ |
| 14 |
{ |
| 15 |
"type": "ExportNamedDeclaration", |
| 16 |
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}}, |
| 17 |
"specifiers": [], |
| 18 |
"source": null, |
| 19 |
"declaration": { |
| 20 |
"type": "VariableDeclaration", |
| 21 |
"start":7,"end":25,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":25,"index":25}}, |
| 22 |
"declarations": [ |
| 23 |
{ |
| 24 |
"type": "VariableDeclarator", |
| 25 |
"start":13,"end":24,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":24,"index":24}}, |
| 26 |
"id": { |
| 27 |
"type": "ArrayPattern", |
| 28 |
"start":13,"end":18,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":18,"index":18}}, |
| 29 |
"elements": [ |
| 30 |
{ |
| 31 |
"type": "Identifier", |
| 32 |
"start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"foo"}, |
| 33 |
"name": "foo" |
| 34 |
} |
| 35 |
] |
| 36 |
}, |
| 37 |
"init": { |
| 38 |
"type": "Identifier", |
| 39 |
"start":21,"end":24,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":24,"index":24},"identifierName":"bar"}, |
| 40 |
"name": "bar" |
| 41 |
} |
| 42 |
} |
| 43 |
], |
| 44 |
"kind": "const" |
| 45 |
} |
| 46 |
}, |
| 47 |
{ |
| 48 |
"type": "ExportNamedDeclaration", |
| 49 |
"start":26,"end":50,"loc":{"start":{"line":2,"column":0,"index":26},"end":{"line":2,"column":24,"index":50}}, |
| 50 |
"specifiers": [], |
| 51 |
"source": null, |
| 52 |
"declaration": { |
| 53 |
"type": "FunctionDeclaration", |
| 54 |
"start":33,"end":50,"loc":{"start":{"line":2,"column":7,"index":33},"end":{"line":2,"column":24,"index":50}}, |
| 55 |
"id": { |
| 56 |
"type": "Identifier", |
| 57 |
"start":42,"end":45,"loc":{"start":{"line":2,"column":16,"index":42},"end":{"line":2,"column":19,"index":45},"identifierName":"foo"}, |
| 58 |
"name": "foo" |
| 59 |
}, |
| 60 |
"generator": false, |
| 61 |
"async": false, |
| 62 |
"params": [], |
| 63 |
"body": { |
| 64 |
"type": "BlockStatement", |
| 65 |
"start":48,"end":50,"loc":{"start":{"line":2,"column":22,"index":48},"end":{"line":2,"column":24,"index":50}}, |
| 66 |
"body": [], |
| 67 |
"directives": [] |
| 68 |
} |
| 69 |
} |
| 70 |
}, |
| 71 |
{ |
| 72 |
"type": "EmptyStatement", |
| 73 |
"start":50,"end":51,"loc":{"start":{"line":2,"column":24,"index":50},"end":{"line":2,"column":25,"index":51}} |
| 74 |
} |
| 75 |
], |
| 76 |
"directives": [] |
| 77 |
} |
| 78 |
} |