JsModule { bom_token: missing (optional), interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ JsExport { decorators: JsDecoratorList [], export_token: EXPORT_KW@0..7 "export" [] [Whitespace(" ")], export_clause: JsExportDefaultExpressionClause { default_token: DEFAULT_KW@7..15 "default" [] [Whitespace(" ")], expression: JsParenthesizedExpression { l_paren_token: L_PAREN@15..16 "(" [] [], expression: JsClassExpression { decorators: JsDecoratorList [], class_token: CLASS_KW@16..22 "class" [] [Whitespace(" ")], id: missing (optional), type_parameters: missing (optional), extends_clause: missing (optional), implements_clause: missing (optional), l_curly_token: L_CURLY@22..23 "{" [] [], members: JsClassMemberList [], r_curly_token: R_CURLY@23..24 "}" [] [], }, r_paren_token: R_PAREN@24..25 ")" [] [], }, semicolon_token: missing (optional), }, }, JsBogusStatement { items: [ JsDecoratorList [], EXPORT_KW@25..33 "export" [Newline("\n")] [Whitespace(" ")], JsBogus { items: [ DEFAULT_KW@33..41 "default" [] [Whitespace(" ")], JsBinaryExpression { left: JsIdentifierExpression { name: JsReferenceIdentifier { value_token: IDENT@41..43 "a" [] [Whitespace(" ")], }, }, operator_token: PLUS@43..45 "+" [] [Whitespace(" ")], right: JsIdentifierExpression { name: JsReferenceIdentifier { value_token: IDENT@45..46 "b" [] [], }, }, }, SEMICOLON@46..47 ";" [] [], ], }, ], }, JsBogusStatement { items: [ JsDecoratorList [], EXPORT_KW@47..55 "export" [Newline("\n")] [Whitespace(" ")], JsBogus { items: [ DEFAULT_KW@55..63 "default" [] [Whitespace(" ")], JsParenthesizedExpression { l_paren_token: L_PAREN@63..64 "(" [] [], expression: JsFunctionExpression { async_token: missing (optional), function_token: FUNCTION_KW@64..73 "function" [] [Whitespace(" ")], star_token: missing (optional), id: JsIdentifierBinding { name_token: IDENT@73..74 "a" [] [], }, type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@74..75 "(" [] [], items: JsParameterList [], r_paren_token: R_PAREN@75..77 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), body: JsFunctionBody { l_curly_token: L_CURLY@77..78 "{" [] [], directives: JsDirectiveList [], statements: JsStatementList [], r_curly_token: R_CURLY@78..79 "}" [] [], }, }, r_paren_token: R_PAREN@79..80 ")" [] [], }, ], }, ], }, ], eof_token: EOF@80..81 "" [Newline("\n")] [], } 0: JS_MODULE@0..81 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..80 0: JS_EXPORT@0..25 0: JS_DECORATOR_LIST@0..0 1: EXPORT_KW@0..7 "export" [] [Whitespace(" ")] 2: JS_EXPORT_DEFAULT_EXPRESSION_CLAUSE@7..25 0: DEFAULT_KW@7..15 "default" [] [Whitespace(" ")] 1: JS_PARENTHESIZED_EXPRESSION@15..25 0: L_PAREN@15..16 "(" [] [] 1: JS_CLASS_EXPRESSION@16..24 0: JS_DECORATOR_LIST@16..16 1: CLASS_KW@16..22 "class" [] [Whitespace(" ")] 2: (empty) 3: (empty) 4: (empty) 5: (empty) 6: L_CURLY@22..23 "{" [] [] 7: JS_CLASS_MEMBER_LIST@23..23 8: R_CURLY@23..24 "}" [] [] 2: R_PAREN@24..25 ")" [] [] 2: (empty) 1: JS_BOGUS_STATEMENT@25..47 0: JS_DECORATOR_LIST@25..25 1: EXPORT_KW@25..33 "export" [Newline("\n")] [Whitespace(" ")] 2: JS_BOGUS@33..47 0: DEFAULT_KW@33..41 "default" [] [Whitespace(" ")] 1: JS_BINARY_EXPRESSION@41..46 0: JS_IDENTIFIER_EXPRESSION@41..43 0: JS_REFERENCE_IDENTIFIER@41..43 0: IDENT@41..43 "a" [] [Whitespace(" ")] 1: PLUS@43..45 "+" [] [Whitespace(" ")] 2: JS_IDENTIFIER_EXPRESSION@45..46 0: JS_REFERENCE_IDENTIFIER@45..46 0: IDENT@45..46 "b" [] [] 2: SEMICOLON@46..47 ";" [] [] 2: JS_BOGUS_STATEMENT@47..80 0: JS_DECORATOR_LIST@47..47 1: EXPORT_KW@47..55 "export" [Newline("\n")] [Whitespace(" ")] 2: JS_BOGUS@55..80 0: DEFAULT_KW@55..63 "default" [] [Whitespace(" ")] 1: JS_PARENTHESIZED_EXPRESSION@63..80 0: L_PAREN@63..64 "(" [] [] 1: JS_FUNCTION_EXPRESSION@64..79 0: (empty) 1: FUNCTION_KW@64..73 "function" [] [Whitespace(" ")] 2: (empty) 3: JS_IDENTIFIER_BINDING@73..74 0: IDENT@73..74 "a" [] [] 4: (empty) 5: JS_PARAMETERS@74..77 0: L_PAREN@74..75 "(" [] [] 1: JS_PARAMETER_LIST@75..75 2: R_PAREN@75..77 ")" [] [Whitespace(" ")] 6: (empty) 7: JS_FUNCTION_BODY@77..79 0: L_CURLY@77..78 "{" [] [] 1: JS_DIRECTIVE_LIST@78..78 2: JS_STATEMENT_LIST@78..78 3: R_CURLY@78..79 "}" [] [] 2: R_PAREN@79..80 ")" [] [] 4: EOF@80..81 "" [Newline("\n")] [] -- multiple_default_exports_err.js:2:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Illegal duplicate default export declarations 1 │ export default (class {}) > 2 │ export default a + b; │ ^^^^^^^^^^^^^^ 3 │ export default (function a() {}) 4 │ i multiple default exports are erroneous 1 │ export default (class {}) > 2 │ export default a + b; │ ^^^^^^^^^^^^^^ 3 │ export default (function a() {}) 4 │ i the module's default export is first defined here > 1 │ export default (class {}) │ ^^^^^^^^^^^^^^^^^^ 2 │ export default a + b; 3 │ export default (function a() {}) -- multiple_default_exports_err.js:3:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Illegal duplicate default export declarations 1 │ export default (class {}) 2 │ export default a + b; > 3 │ export default (function a() {}) │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 │ i multiple default exports are erroneous 1 │ export default (class {}) 2 │ export default a + b; > 3 │ export default (function a() {}) │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 │ i the module's default export is first defined here > 1 │ export default (class {}) │ ^^^^^^^^^^^^^^^^^^ 2 │ export default a + b; 3 │ export default (function a() {}) -- export default (class {}) export default a + b; export default (function a() {})