{ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":53}}, "errors": [ "SyntaxError: Identifier 'foo' has already been declared. (2:16)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:0)" ], "program": { "type": "Program", "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":53}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}}, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start":7,"end":27,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":27,"index":27}}, "declarations": [ { "type": "VariableDeclarator", "start":13,"end":26,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":26,"index":26}}, "id": { "type": "ObjectPattern", "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20}}, "properties": [ { "type": "ObjectProperty", "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18}}, "key": { "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"}, "name": "foo" }, "computed": false, "method": false, "shorthand": true, "value": { "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"}, "name": "foo" }, "extra": { "shorthand": true } } ] }, "init": { "type": "Identifier", "start":23,"end":26,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":26,"index":26},"identifierName":"bar"}, "name": "bar" } } ], "kind": "const" } }, { "type": "ExportNamedDeclaration", "start":28,"end":52,"loc":{"start":{"line":2,"column":0,"index":28},"end":{"line":2,"column":24,"index":52}}, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start":35,"end":52,"loc":{"start":{"line":2,"column":7,"index":35},"end":{"line":2,"column":24,"index":52}}, "id": { "type": "Identifier", "start":44,"end":47,"loc":{"start":{"line":2,"column":16,"index":44},"end":{"line":2,"column":19,"index":47},"identifierName":"foo"}, "name": "foo" }, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":50,"end":52,"loc":{"start":{"line":2,"column":22,"index":50},"end":{"line":2,"column":24,"index":52}}, "body": [], "directives": [] } } }, { "type": "EmptyStatement", "start":52,"end":53,"loc":{"start":{"line":2,"column":24,"index":52},"end":{"line":2,"column":25,"index":53}} } ], "directives": [] } }