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