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