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..8 "B" [] [Whitespace(" ")],
},
type_parameters: missing (optional),
extends_clause: missing (optional),
implements_clause: missing (optional),
l_curly_token: L_CURLY@8..10 "{" [] [Whitespace(" ")],
members: JsClassMemberList [
JsMethodClassMember {
modifiers: JsMethodModifierList [],
async_token: missing (optional),
star_token: missing (optional),
name: JsLiteralMemberName {
value: IDENT@10..17 "declare" [] [],
},
question_mark_token: missing (optional),
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@17..18 "(" [] [],
items: JsParameterList [],
r_paren_token: R_PAREN@18..20 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
body: JsFunctionBody {
l_curly_token: L_CURLY@20..21 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@21..23 "}" [] [Whitespace(" ")],
},
},
],
r_curly_token: R_CURLY@23..24 "}" [] [],
},
JsClassDeclaration {
decorators: JsDecoratorList [],
abstract_token: missing (optional),
class_token: CLASS_KW@24..31 "class" [Newline("\n")] [Whitespace(" ")],
id: JsIdentifierBinding {
name_token: IDENT@31..33 "B" [] [Whitespace(" ")],
},
type_parameters: missing (optional),
extends_clause: missing (optional),
implements_clause: missing (optional),
l_curly_token: L_CURLY@33..35 "{" [] [Whitespace(" ")],
members: JsClassMemberList [
JsPropertyClassMember {
modifiers: JsPropertyModifierList [],
name: JsLiteralMemberName {
value: IDENT@35..43 "declare" [] [Whitespace(" ")],
},
property_annotation: missing (optional),
value: JsInitializerClause {
eq_token: EQ@43..45 "=" [] [Whitespace(" ")],
expression: JsIdentifierExpression {
name: JsReferenceIdentifier {
value_token: IDENT@45..49 "foo" [] [Whitespace(" ")],
},
},
},
semicolon_token: missing (optional),
},
],
r_curly_token: R_CURLY@49..50 "}" [] [],
},
],
eof_token: EOF@50..51 "" [Newline("\n")] [],
}
0: JS_MODULE@0..51
0: (empty)
1: (empty)
2: JS_DIRECTIVE_LIST@0..0
3: JS_MODULE_ITEM_LIST@0..50
0: JS_CLASS_DECLARATION@0..24
0: JS_DECORATOR_LIST@0..0
1: (empty)
2: CLASS_KW@0..6 "class" [] [Whitespace(" ")]
3: JS_IDENTIFIER_BINDING@6..8
0: IDENT@6..8 "B" [] [Whitespace(" ")]
4: (empty)
5: (empty)
6: (empty)
7: L_CURLY@8..10 "{" [] [Whitespace(" ")]
8: JS_CLASS_MEMBER_LIST@10..23
0: JS_METHOD_CLASS_MEMBER@10..23
0: JS_METHOD_MODIFIER_LIST@10..10
1: (empty)
2: (empty)
3: JS_LITERAL_MEMBER_NAME@10..17
0: IDENT@10..17 "declare" [] []
4: (empty)
5: (empty)
6: JS_PARAMETERS@17..20
0: L_PAREN@17..18 "(" [] []
1: JS_PARAMETER_LIST@18..18
2: R_PAREN@18..20 ")" [] [Whitespace(" ")]
7: (empty)
8: JS_FUNCTION_BODY@20..23
0: L_CURLY@20..21 "{" [] []
1: JS_DIRECTIVE_LIST@21..21
2: JS_STATEMENT_LIST@21..21
3: R_CURLY@21..23 "}" [] [Whitespace(" ")]
9: R_CURLY@23..24 "}" [] []
1: JS_CLASS_DECLARATION@24..50
0: JS_DECORATOR_LIST@24..24
1: (empty)
2: CLASS_KW@24..31 "class" [Newline("\n")] [Whitespace(" ")]
3: JS_IDENTIFIER_BINDING@31..33
0: IDENT@31..33 "B" [] [Whitespace(" ")]
4: (empty)
5: (empty)
6: (empty)
7: L_CURLY@33..35 "{" [] [Whitespace(" ")]
8: JS_CLASS_MEMBER_LIST@35..49
0: JS_PROPERTY_CLASS_MEMBER@35..49
0: JS_PROPERTY_MODIFIER_LIST@35..35
1: JS_LITERAL_MEMBER_NAME@35..43
0: IDENT@35..43 "declare" [] [Whitespace(" ")]
2: (empty)
3: JS_INITIALIZER_CLAUSE@43..49
0: EQ@43..45 "=" [] [Whitespace(" ")]
1: JS_IDENTIFIER_EXPRESSION@45..49
0: JS_REFERENCE_IDENTIFIER@45..49
0: IDENT@45..49 "foo" [] [Whitespace(" ")]
4: (empty)
9: R_CURLY@49..50 "}" [] []
4: EOF@50..51 "" [Newline("\n")] []