JsModule { bom_token: missing (optional), interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ JsClassDeclaration { decorators: JsDecoratorList [], abstract_token: missing (optional), class_token: CLASS_KW@0..6 "class" [] [Whitespace(" ")], id: JsIdentifierBinding { name_token: IDENT@6..10 "foo" [] [Whitespace(" ")], }, type_parameters: missing (optional), extends_clause: missing (optional), implements_clause: missing (optional), l_curly_token: L_CURLY@10..11 "{" [] [], members: JsClassMemberList [ JsPropertyClassMember { modifiers: JsPropertyModifierList [], name: JsLiteralMemberName { value: IDENT@11..17 "get" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")], }, property_annotation: missing (optional), value: missing (optional), semicolon_token: missing (optional), }, JsBogusMember { items: [ L_CURLY@17..18 "{" [] [], ], }, ], r_curly_token: R_CURLY@18..19 "}" [] [], }, JsBogusStatement { items: [ R_CURLY@19..21 "}" [Newline("\n")] [], ], }, ], eof_token: EOF@21..22 "" [Newline("\n")] [], } 0: JS_MODULE@0..22 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..21 0: JS_CLASS_DECLARATION@0..19 0: JS_DECORATOR_LIST@0..0 1: (empty) 2: CLASS_KW@0..6 "class" [] [Whitespace(" ")] 3: JS_IDENTIFIER_BINDING@6..10 0: IDENT@6..10 "foo" [] [Whitespace(" ")] 4: (empty) 5: (empty) 6: (empty) 7: L_CURLY@10..11 "{" [] [] 8: JS_CLASS_MEMBER_LIST@11..18 0: JS_PROPERTY_CLASS_MEMBER@11..17 0: JS_PROPERTY_MODIFIER_LIST@11..11 1: JS_LITERAL_MEMBER_NAME@11..17 0: IDENT@11..17 "get" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")] 2: (empty) 3: (empty) 4: (empty) 1: JS_BOGUS_MEMBER@17..18 0: L_CURLY@17..18 "{" [] [] 9: R_CURLY@18..19 "}" [] [] 1: JS_BOGUS_STATEMENT@19..21 0: R_CURLY@19..21 "}" [Newline("\n")] [] 4: EOF@21..22 "" [Newline("\n")] [] -- method_getter_err.js:2:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a semicolon to end the class property, but found none 1 │ class foo { > 2 │ get {} │ ^^^ 3 │ } 4 │ -- method_getter_err.js:2:6 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an identifier, a string literal, a number literal, a private field name, or a computed name but instead found '{'. 1 │ class foo { > 2 │ get {} │ ^ 3 │ } 4 │ i Expected an identifier, a string literal, a number literal, a private field name, or a computed name here. 1 │ class foo { > 2 │ get {} │ ^ 3 │ } 4 │ -- method_getter_err.js:3:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a statement but instead found '}'. 1 │ class foo { 2 │ get {} > 3 │ } │ ^ 4 │ i Expected a statement here. 1 │ class foo { 2 │ get {} > 3 │ } │ ^ 4 │ -- class foo { get {} }