{ "type": "File", "start": 0, "end": 55, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 21 } }, "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 }, "end": { "line": 2, "column": 21 } }, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 33, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 33 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 7, "end": 33, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", "start": 13, "end": 32, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 32 } }, "id": { "type": "ArrayPattern", "start": 13, "end": 26, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 26 } }, "elements": [ { "type": "Identifier", "start": 14, "end": 17, "loc": { "start": { "line": 1, "column": 14 }, "end": { "line": 1, "column": 17 }, "identifierName": "foo" }, "name": "foo" }, { "type": "RestElement", "start": 19, "end": 25, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 25 } }, "argument": { "type": "Identifier", "start": 22, "end": 25, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 25 }, "identifierName": "bar" }, "name": "bar" } } ] }, "init": { "type": "Identifier", "start": 29, "end": 32, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 32 }, "identifierName": "baz" }, "name": "baz" } } ], "kind": "const" } }, { "type": "ExportNamedDeclaration", "start": 34, "end": 55, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 21 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 41, "end": 55, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 21 } }, "declarations": [ { "type": "VariableDeclarator", "start": 47, "end": 54, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } }, "id": { "type": "Identifier", "start": 47, "end": 50, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 16 }, "identifierName": "bar" }, "name": "bar" }, "init": { "type": "NumericLiteral", "start": 53, "end": 54, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 20 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } ], "kind": "const" } } ], "directives": [] } }