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: JsArrowFunctionExpression {
async_token: ASYNC_KW@8..14 "async" [] [Whitespace(" ")],
type_parameters: missing (optional),
parameters: JsIdentifierBinding {
name_token: IDENT@14..18 "foo" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
fat_arrow_token: FAT_ARROW@18..21 "=>" [] [Whitespace(" ")],
body: JsFunctionBody {
l_curly_token: L_CURLY@21..22 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@22..23 "}" [] [],
},
},
},
},
],
},
semicolon_token: missing (optional),
},
JsVariableStatement {
declaration: JsVariableDeclaration {
await_token: missing (optional),
kind: LET_KW@23..28 "let" [Newline("\n")] [Whitespace(" ")],
declarators: JsVariableDeclaratorList [
JsVariableDeclarator {
id: JsIdentifierBinding {
name_token: IDENT@28..30 "b" [] [Whitespace(" ")],
},
variable_annotation: missing (optional),
initializer: JsInitializerClause {
eq_token: EQ@30..32 "=" [] [Whitespace(" ")],
expression: JsArrowFunctionExpression {
async_token: ASYNC_KW@32..38 "async" [] [Whitespace(" ")],
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@38..39 "(" [] [],
items: JsParameterList [
JsFormalParameter {
decorators: JsDecoratorList [],
binding: JsIdentifierBinding {
name_token: IDENT@39..42 "bar" [] [],
},
question_mark_token: missing (optional),
type_annotation: missing (optional),
initializer: missing (optional),
},
],
r_paren_token: R_PAREN@42..44 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
fat_arrow_token: FAT_ARROW@44..47 "=>" [] [Whitespace(" ")],
body: JsFunctionBody {
l_curly_token: L_CURLY@47..48 "{" [] [],
directives: JsDirectiveList [],
statements: JsStatementList [],
r_curly_token: R_CURLY@48..49 "}" [] [],
},
},
},
},
],
},
semicolon_token: missing (optional),
},
JsExpressionStatement {
expression: JsArrowFunctionExpression {
async_token: ASYNC_KW@49..56 "async" [Newline("\n")] [Whitespace(" ")],
type_parameters: missing (optional),
parameters: JsParameters {
l_paren_token: L_PAREN@56..57 "(" [] [],
items: JsParameterList [
JsFormalParameter {
decorators: JsDecoratorList [],
binding: JsIdentifierBinding {
name_token: IDENT@57..60 "foo" [] [],
},
question_mark_token: missing (optional),
type_annotation: missing (optional),
initializer: missing (optional),
},
COMMA@60..62 "," [] [Whitespace(" ")],
JsFormalParameter {
decorators: JsDecoratorList [],
binding: JsIdentifierBinding {
name_token: IDENT@62..65 "bar" [] [],
},
question_mark_token: missing (optional),
type_annotation: missing (optional),
initializer: missing (optional),
},
COMMA@65..67 "," [] [Whitespace(" ")],
JsRestParameter {
decorators: JsDecoratorList [],
dotdotdot_token: DOT3@67..70 "..." [] [],
binding: JsIdentifierBinding {
name_token: IDENT@70..73 "baz" [] [],
},
type_annotation: missing (optional),
},
],
r_paren_token: R_PAREN@73..75 ")" [] [Whitespace(" ")],
},
return_type_annotation: missing (optional),
fat_arrow_token: FAT_ARROW@75..78 "=>" [] [Whitespace(" ")],
body: JsIdentifierExpression {
name: JsReferenceIdentifier {
value_token: IDENT@78..81 "foo" [] [],
},
},
},
semicolon_token: missing (optional),
},
],
eof_token: EOF@81..82 "" [Newline("\n")] [],
}
0: JS_MODULE@0..82
0: (empty)
1: (empty)
2: JS_DIRECTIVE_LIST@0..0
3: JS_MODULE_ITEM_LIST@0..81
0: JS_VARIABLE_STATEMENT@0..23
0: JS_VARIABLE_DECLARATION@0..23
0: (empty)
1: LET_KW@0..4 "let" [] [Whitespace(" ")]
2: JS_VARIABLE_DECLARATOR_LIST@4..23
0: JS_VARIABLE_DECLARATOR@4..23
0: JS_IDENTIFIER_BINDING@4..6
0: IDENT@4..6 "a" [] [Whitespace(" ")]
1: (empty)
2: JS_INITIALIZER_CLAUSE@6..23
0: EQ@6..8 "=" [] [Whitespace(" ")]
1: JS_ARROW_FUNCTION_EXPRESSION@8..23
0: ASYNC_KW@8..14 "async" [] [Whitespace(" ")]
1: (empty)
2: JS_IDENTIFIER_BINDING@14..18
0: IDENT@14..18 "foo" [] [Whitespace(" ")]
3: (empty)
4: FAT_ARROW@18..21 "=>" [] [Whitespace(" ")]
5: JS_FUNCTION_BODY@21..23
0: L_CURLY@21..22 "{" [] []
1: JS_DIRECTIVE_LIST@22..22
2: JS_STATEMENT_LIST@22..22
3: R_CURLY@22..23 "}" [] []
1: (empty)
1: JS_VARIABLE_STATEMENT@23..49
0: JS_VARIABLE_DECLARATION@23..49
0: (empty)
1: LET_KW@23..28 "let" [Newline("\n")] [Whitespace(" ")]
2: JS_VARIABLE_DECLARATOR_LIST@28..49
0: JS_VARIABLE_DECLARATOR@28..49
0: JS_IDENTIFIER_BINDING@28..30
0: IDENT@28..30 "b" [] [Whitespace(" ")]
1: (empty)
2: JS_INITIALIZER_CLAUSE@30..49
0: EQ@30..32 "=" [] [Whitespace(" ")]
1: JS_ARROW_FUNCTION_EXPRESSION@32..49
0: ASYNC_KW@32..38 "async" [] [Whitespace(" ")]
1: (empty)
2: JS_PARAMETERS@38..44
0: L_PAREN@38..39 "(" [] []
1: JS_PARAMETER_LIST@39..42
0: JS_FORMAL_PARAMETER@39..42
0: JS_DECORATOR_LIST@39..39
1: JS_IDENTIFIER_BINDING@39..42
0: IDENT@39..42 "bar" [] []
2: (empty)
3: (empty)
4: (empty)
2: R_PAREN@42..44 ")" [] [Whitespace(" ")]
3: (empty)
4: FAT_ARROW@44..47 "=>" [] [Whitespace(" ")]
5: JS_FUNCTION_BODY@47..49
0: L_CURLY@47..48 "{" [] []
1: JS_DIRECTIVE_LIST@48..48
2: JS_STATEMENT_LIST@48..48
3: R_CURLY@48..49 "}" [] []
1: (empty)
2: JS_EXPRESSION_STATEMENT@49..81
0: JS_ARROW_FUNCTION_EXPRESSION@49..81
0: ASYNC_KW@49..56 "async" [Newline("\n")] [Whitespace(" ")]
1: (empty)
2: JS_PARAMETERS@56..75
0: L_PAREN@56..57 "(" [] []
1: JS_PARAMETER_LIST@57..73
0: JS_FORMAL_PARAMETER@57..60
0: JS_DECORATOR_LIST@57..57
1: JS_IDENTIFIER_BINDING@57..60
0: IDENT@57..60 "foo" [] []
2: (empty)
3: (empty)
4: (empty)
1: COMMA@60..62 "," [] [Whitespace(" ")]
2: JS_FORMAL_PARAMETER@62..65
0: JS_DECORATOR_LIST@62..62
1: JS_IDENTIFIER_BINDING@62..65
0: IDENT@62..65 "bar" [] []
2: (empty)
3: (empty)
4: (empty)
3: COMMA@65..67 "," [] [Whitespace(" ")]
4: JS_REST_PARAMETER@67..73
0: JS_DECORATOR_LIST@67..67
1: DOT3@67..70 "..." [] []
2: JS_IDENTIFIER_BINDING@70..73
0: IDENT@70..73 "baz" [] []
3: (empty)
2: R_PAREN@73..75 ")" [] [Whitespace(" ")]
3: (empty)
4: FAT_ARROW@75..78 "=>" [] [Whitespace(" ")]
5: JS_IDENTIFIER_EXPRESSION@78..81
0: JS_REFERENCE_IDENTIFIER@78..81
0: IDENT@78..81 "foo" [] []
1: (empty)
4: EOF@81..82 "" [Newline("\n")] []