{ "type": "File", "start": 0, "end": 46, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 25 } }, "errors": [ "SyntaxError: Identifier 'Foo' has already been declared (2:14)", "SyntaxError: `Foo` has already been exported. Exported identifiers must be unique. (2:14)" ], "program": { "type": "Program", "start": 0, "end": 46, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 25 } }, "sourceType": "module", "interpreter": null, "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 19, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 19 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 7, "end": 19, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 19 } }, "id": { "type": "Identifier", "start": 13, "end": 16, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 16 }, "identifierName": "Foo" }, "name": "Foo" }, "superClass": null, "body": { "type": "ClassBody", "start": 17, "end": 19, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 19 } }, "body": [] } } }, { "type": "EmptyStatement", "start": 19, "end": 20, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 20 } } }, { "type": "ExportNamedDeclaration", "start": 21, "end": 46, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 25 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 28, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", "start": 34, "end": 45, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 24 } }, "id": { "type": "ArrayPattern", "start": 34, "end": 39, "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 18 } }, "elements": [ { "type": "Identifier", "start": 35, "end": 38, "loc": { "start": { "line": 2, "column": 14 }, "end": { "line": 2, "column": 17 }, "identifierName": "Foo" }, "name": "Foo" } ] }, "init": { "type": "Identifier", "start": 42, "end": 45, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 24 }, "identifierName": "bar" }, "name": "bar" } } ], "kind": "const" } } ], "directives": [] } }