{ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":21,"index":55}}, "errors": [ "SyntaxError: Identifier 'bar' has already been declared. (2:13)", "SyntaxError: `bar` has already been exported. Exported identifiers must be unique. (2:13)" ], "program": { "type": "Program", "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":21,"index":55}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}}, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start":7,"end":33,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":33,"index":33}}, "declarations": [ { "type": "VariableDeclarator", "start":13,"end":32,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":32,"index":32}}, "id": { "type": "ArrayPattern", "start":13,"end":26,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":26,"index":26}}, "elements": [ { "type": "Identifier", "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"foo"}, "name": "foo" }, { "type": "RestElement", "start":19,"end":25,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":25,"index":25}}, "argument": { "type": "Identifier", "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"bar"}, "name": "bar" } } ] }, "init": { "type": "Identifier", "start":29,"end":32,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":32,"index":32},"identifierName":"baz"}, "name": "baz" } } ], "kind": "const" } }, { "type": "ExportNamedDeclaration", "start":34,"end":55,"loc":{"start":{"line":2,"column":0,"index":34},"end":{"line":2,"column":21,"index":55}}, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start":41,"end":55,"loc":{"start":{"line":2,"column":7,"index":41},"end":{"line":2,"column":21,"index":55}}, "declarations": [ { "type": "VariableDeclarator", "start":47,"end":54,"loc":{"start":{"line":2,"column":13,"index":47},"end":{"line":2,"column":20,"index":54}}, "id": { "type": "Identifier", "start":47,"end":50,"loc":{"start":{"line":2,"column":13,"index":47},"end":{"line":2,"column":16,"index":50},"identifierName":"bar"}, "name": "bar" }, "init": { "type": "NumericLiteral", "start":53,"end":54,"loc":{"start":{"line":2,"column":19,"index":53},"end":{"line":2,"column":20,"index":54}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } ], "kind": "const" } } ], "directives": [] } }