{ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":23,"index":39}}, "errors": [ "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:13)" ], "program": { "type": "Program", "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":23,"index":39}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}}, "specifiers": [ { "type": "ExportSpecifier", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12}}, "local": { "type": "Identifier", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, "name": "foo" }, "exported": { "type": "Identifier", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, "name": "foo" } } ], "source": null, "declaration": null }, { "type": "ExportNamedDeclaration", "start":16,"end":39,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":23,"index":39}}, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start":23,"end":39,"loc":{"start":{"line":2,"column":7,"index":23},"end":{"line":2,"column":23,"index":39}}, "declarations": [ { "type": "VariableDeclarator", "start":29,"end":38,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":22,"index":38}}, "id": { "type": "Identifier", "start":29,"end":32,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":16,"index":32},"identifierName":"foo"}, "name": "foo" }, "init": { "type": "Identifier", "start":35,"end":38,"loc":{"start":{"line":2,"column":19,"index":35},"end":{"line":2,"column":22,"index":38},"identifierName":"bar"}, "name": "bar" } } ], "kind": "const" } } ], "directives": [] } }