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: JsFunctionExpression {
async_token: missing (optional),
function_token: FUNCTION_KW@8..16 "function" [] [],
star_token: missing (optional),
id: missing (optional),
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@16..17 "(" [] [],
items: JsParameterList [],
r_paren_token: R_PAREN@17..19 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
body: JsFunctionBody {
l_curly_token: L_CURLY@19..20 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@20..21 "}" [] [],
},
},
},
},
],
},
semicolon_token: missing (optional),
},
JsVariableStatement {
declaration: JsVariableDeclaration {
await_token: missing (optional),
kind: LET_KW@21..26 "let" [Newline("\n")] [Whitespace(" ")],
declarators: JsVariableDeclaratorList [
JsVariableDeclarator {
id: JsIdentifierBinding {
name_token: IDENT@26..28 "b" [] [Whitespace(" ")],
},
variable_annotation: missing (optional),
initializer: JsInitializerClause {
eq_token: EQ@28..30 "=" [] [Whitespace(" ")],
expression: JsFunctionExpression {
async_token: missing (optional),
function_token: FUNCTION_KW@30..39 "function" [] [Whitespace(" ")],
star_token: missing (optional),
id: JsIdentifierBinding {
name_token: IDENT@39..42 "foo" [] [],
},
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@42..43 "(" [] [],
items: JsParameterList [],
r_paren_token: R_PAREN@43..45 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
body: JsFunctionBody {
l_curly_token: L_CURLY@45..46 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@46..47 "}" [] [],
},
},
},
},
],
},
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..21
0: JS_VARIABLE_DECLARATION@0..21
0: (empty)
1: LET_KW@0..4 "let" [] [Whitespace(" ")]
2: JS_VARIABLE_DECLARATOR_LIST@4..21
0: JS_VARIABLE_DECLARATOR@4..21
0: JS_IDENTIFIER_BINDING@4..6
0: IDENT@4..6 "a" [] [Whitespace(" ")]
1: (empty)
2: JS_INITIALIZER_CLAUSE@6..21
0: EQ@6..8 "=" [] [Whitespace(" ")]
1: JS_FUNCTION_EXPRESSION@8..21
0: (empty)
1: FUNCTION_KW@8..16 "function" [] []
2: (empty)
3: (empty)
4: (empty)
5: JS_PARAMETERS@16..19
0: L_PAREN@16..17 "(" [] []
1: JS_PARAMETER_LIST@17..17
2: R_PAREN@17..19 ")" [] [Whitespace(" ")]
6: (empty)
7: JS_FUNCTION_BODY@19..21
0: L_CURLY@19..20 "{" [] []
1: JS_DIRECTIVE_LIST@20..20
2: JS_STATEMENT_LIST@20..20
3: R_CURLY@20..21 "}" [] []
1: (empty)
1: JS_VARIABLE_STATEMENT@21..47
0: JS_VARIABLE_DECLARATION@21..47
0: (empty)
1: LET_KW@21..26 "let" [Newline("\n")] [Whitespace(" ")]
2: JS_VARIABLE_DECLARATOR_LIST@26..47
0: JS_VARIABLE_DECLARATOR@26..47
0: JS_IDENTIFIER_BINDING@26..28
0: IDENT@26..28 "b" [] [Whitespace(" ")]
1: (empty)
2: JS_INITIALIZER_CLAUSE@28..47
0: EQ@28..30 "=" [] [Whitespace(" ")]
1: JS_FUNCTION_EXPRESSION@30..47
0: (empty)
1: FUNCTION_KW@30..39 "function" [] [Whitespace(" ")]
2: (empty)
3: JS_IDENTIFIER_BINDING@39..42
0: IDENT@39..42 "foo" [] []
4: (empty)
5: JS_PARAMETERS@42..45
0: L_PAREN@42..43 "(" [] []
1: JS_PARAMETER_LIST@43..43
2: R_PAREN@43..45 ")" [] [Whitespace(" ")]
6: (empty)
7: JS_FUNCTION_BODY@45..47
0: L_CURLY@45..46 "{" [] []
1: JS_DIRECTIVE_LIST@46..46
2: JS_STATEMENT_LIST@46..46
3: R_CURLY@46..47 "}" [] []
1: (empty)
4: EOF@47..48 "" [Newline("\n")] []