{ "type": "File", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 31 } }, "errors": [ "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:15)" ], "program": { "type": "Program", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 31 } }, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 15, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 15 } }, "specifiers": [ { "type": "ExportSpecifier", "start": 9, "end": 12, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 12 } }, "local": { "type": "Identifier", "start": 9, "end": 12, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 12 }, "identifierName": "foo" }, "name": "foo" }, "exported": { "type": "Identifier", "start": 9, "end": 12, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 12 }, "identifierName": "foo" }, "name": "foo" } } ], "source": null, "declaration": null }, { "type": "ExportNamedDeclaration", "start": 16, "end": 47, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 31 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 23, "end": 47, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 29, "end": 46, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 30 } }, "id": { "type": "ObjectPattern", "start": 29, "end": 40, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 24 } }, "properties": [ { "type": "ObjectProperty", "start": 31, "end": 38, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 22 } }, "method": false, "key": { "type": "Identifier", "start": 31, "end": 34, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 18 }, "identifierName": "foo" }, "name": "foo" }, "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", "start": 31, "end": 38, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 22 } }, "left": { "type": "Identifier", "start": 31, "end": 34, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 18 }, "identifierName": "foo" }, "name": "foo" }, "right": { "type": "NumericLiteral", "start": 37, "end": 38, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 22 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "extra": { "shorthand": true } } ] }, "init": { "type": "Identifier", "start": 43, "end": 46, "loc": { "start": { "line": 2, "column": 27 }, "end": { "line": 2, "column": 30 }, "identifierName": "bar" }, "name": "bar" } } ], "kind": "const" } } ], "directives": [] } }