JsModule {
bom_token: missing (optional),
interpreter_token: missing (optional),
directives: JsDirectiveList [],
items: JsModuleItemList [
JsVariableStatement {
declaration: JsVariableDeclaration {
await_token: missing (optional),
kind: LET_KW@0..4 "let" [] [Whitespace(" ")],
declarators: JsVariableDeclaratorList [
JsVariableDeclarator {
id: JsIdentifierBinding {
name_token: IDENT@4..6 "a" [] [Whitespace(" ")],
},
variable_annotation: missing (optional),
initializer: JsInitializerClause {
eq_token: EQ@6..8 "=" [] [Whitespace(" ")],
expression: JsObjectExpression {
l_curly_token: L_CURLY@8..9 "{" [] [],
members: JsObjectMemberList [
JsMethodObjectMember {
async_token: ASYNC_KW@9..18 "async" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")],
star_token: missing (optional),
name: JsLiteralMemberName {
value: IDENT@18..21 "foo" [] [],
},
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@21..22 "(" [] [],
items: JsParameterList [],
r_paren_token: R_PAREN@22..24 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
body: JsFunctionBody {
l_curly_token: L_CURLY@24..25 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@25..26 "}" [] [],
},
},
COMMA@26..27 "," [] [],
JsMethodObjectMember {
async_token: ASYNC_KW@27..36 "async" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")],
star_token: STAR@36..37 "*" [] [],
name: JsLiteralMemberName {
value: IDENT@37..40 "foo" [] [],
},
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@40..41 "(" [] [],
items: JsParameterList [],
r_paren_token: R_PAREN@41..43 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
body: JsFunctionBody {
l_curly_token: L_CURLY@43..44 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@44..45 "}" [] [],
},
},
],
r_curly_token: R_CURLY@45..47 "}" [Newline("\n")] [],
},
},
},
],
},
semicolon_token: missing (optional),
},
],
eof_token: EOF@47..48 "" [Newline("\n")] [],
}
0: JS_MODULE@0..48
0: (empty)
1: (empty)
2: JS_DIRECTIVE_LIST@0..0
3: JS_MODULE_ITEM_LIST@0..47
0: JS_VARIABLE_STATEMENT@0..47
0: JS_VARIABLE_DECLARATION@0..47
0: (empty)
1: LET_KW@0..4 "let" [] [Whitespace(" ")]
2: JS_VARIABLE_DECLARATOR_LIST@4..47
0: JS_VARIABLE_DECLARATOR@4..47
0: JS_IDENTIFIER_BINDING@4..6
0: IDENT@4..6 "a" [] [Whitespace(" ")]
1: (empty)
2: JS_INITIALIZER_CLAUSE@6..47
0: EQ@6..8 "=" [] [Whitespace(" ")]
1: JS_OBJECT_EXPRESSION@8..47
0: L_CURLY@8..9 "{" [] []
1: JS_OBJECT_MEMBER_LIST@9..45
0: JS_METHOD_OBJECT_MEMBER@9..26
0: ASYNC_KW@9..18 "async" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")]
1: (empty)
2: JS_LITERAL_MEMBER_NAME@18..21
0: IDENT@18..21 "foo" [] []
3: (empty)
4: JS_PARAMETERS@21..24
0: L_PAREN@21..22 "(" [] []
1: JS_PARAMETER_LIST@22..22
2: R_PAREN@22..24 ")" [] [Whitespace(" ")]
5: (empty)
6: JS_FUNCTION_BODY@24..26
0: L_CURLY@24..25 "{" [] []
1: JS_DIRECTIVE_LIST@25..25
2: JS_STATEMENT_LIST@25..25
3: R_CURLY@25..26 "}" [] []
1: COMMA@26..27 "," [] []
2: JS_METHOD_OBJECT_MEMBER@27..45
0: ASYNC_KW@27..36 "async" [Newline("\n"), Whitespace(" ")] [Whitespace(" ")]
1: STAR@36..37 "*" [] []
2: JS_LITERAL_MEMBER_NAME@37..40
0: IDENT@37..40 "foo" [] []
3: (empty)
4: JS_PARAMETERS@40..43
0: L_PAREN@40..41 "(" [] []
1: JS_PARAMETER_LIST@41..41
2: R_PAREN@41..43 ")" [] [Whitespace(" ")]
5: (empty)
6: JS_FUNCTION_BODY@43..45
0: L_CURLY@43..44 "{" [] []
1: JS_DIRECTIVE_LIST@44..44
2: JS_STATEMENT_LIST@44..44
3: R_CURLY@44..45 "}" [] []
2: R_CURLY@45..47 "}" [Newline("\n")] []
1: (empty)
4: EOF@47..48 "" [Newline("\n")] []