JsModule { interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ JsClassDeclaration { 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: JS_DIRECTIVE_LIST@0..0 2: JS_MODULE_ITEM_LIST@0..21 0: JS_CLASS_DECLARATION@0..19 0: (empty) 1: CLASS_KW@0..6 "class" [] [Whitespace(" ")] 2: JS_IDENTIFIER_BINDING@6..10 0: IDENT@6..10 "foo" [] [Whitespace(" ")] 3: (empty) 4: (empty) 5: (empty) 6: L_CURLY@10..11 "{" [] [] 7: 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 "{" [] [] 8: R_CURLY@18..19 "}" [] [] 1: JS_BOGUS_STATEMENT@19..21 0: R_CURLY@19..21 "}" [Newline("\n")] [] 3: 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 {} }