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: JsBogusBinding { items: [ IDENT@14..20 "await" [] [Whitespace(" ")], ], }, return_type_annotation: missing (optional), fat_arrow_token: FAT_ARROW@20..23 "=>" [] [Whitespace(" ")], body: JsFunctionBody { l_curly_token: L_CURLY@23..24 "{" [] [], directives: JsDirectiveList [], statements: JsStatementList [], r_curly_token: R_CURLY@24..25 "}" [] [], }, }, }, }, ], }, semicolon_token: missing (optional), }, JsExpressionStatement { expression: JsArrowFunctionExpression { async_token: ASYNC_KW@25..31 "async" [Newline("\n")] [], type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@31..32 "(" [] [], items: JsParameterList [], r_paren_token: R_PAREN@32..34 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), fat_arrow_token: FAT_ARROW@34..37 "=>" [] [Whitespace(" ")], body: JsFunctionBody { l_curly_token: L_CURLY@37..39 "{" [] [Whitespace(" ")], directives: JsDirectiveList [], statements: JsStatementList [ JsExpressionStatement { expression: JsArrowFunctionExpression { async_token: missing (optional), type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@39..40 "(" [] [], items: JsParameterList [ JsFormalParameter { decorators: JsDecoratorList [], binding: JsIdentifierBinding { name_token: IDENT@40..42 "a" [] [Whitespace(" ")], }, question_mark_token: missing (optional), type_annotation: missing (optional), initializer: JsInitializerClause { eq_token: EQ@42..44 "=" [] [Whitespace(" ")], expression: JsBogusExpression { items: [ JsBogus { items: [ IDENT@44..49 "await" [] [], ], }, ], }, }, }, ], r_paren_token: R_PAREN@49..51 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), fat_arrow_token: FAT_ARROW@51..54 "=>" [] [Whitespace(" ")], body: JsFunctionBody { l_curly_token: L_CURLY@54..55 "{" [] [], directives: JsDirectiveList [], statements: JsStatementList [], r_curly_token: R_CURLY@55..57 "}" [] [Whitespace(" ")], }, }, semicolon_token: missing (optional), }, ], r_curly_token: R_CURLY@57..58 "}" [] [], }, }, semicolon_token: SEMICOLON@58..59 ";" [] [], }, JsExpressionStatement { expression: JsArrowFunctionExpression { async_token: ASYNC_KW@59..65 "async" [Newline("\n")] [], type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@65..66 "(" [] [], items: JsParameterList [], r_paren_token: R_PAREN@66..68 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), fat_arrow_token: FAT_ARROW@68..71 "=>" [] [Whitespace(" ")], body: JsFunctionBody { l_curly_token: L_CURLY@71..73 "{" [] [Whitespace(" ")], directives: JsDirectiveList [], statements: JsStatementList [ JsExpressionStatement { expression: JsArrowFunctionExpression { async_token: missing (optional), type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@73..74 "(" [] [], items: JsParameterList [ JsFormalParameter { decorators: JsDecoratorList [], binding: JsIdentifierBinding { name_token: IDENT@74..76 "a" [] [Whitespace(" ")], }, question_mark_token: missing (optional), type_annotation: missing (optional), initializer: JsInitializerClause { eq_token: EQ@76..78 "=" [] [Whitespace(" ")], expression: JsBogusExpression { items: [ AWAIT_KW@78..84 "await" [] [Whitespace(" ")], JsNumberLiteralExpression { value_token: JS_NUMBER_LITERAL@84..86 "10" [] [], }, ], }, }, }, ], r_paren_token: R_PAREN@86..88 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), fat_arrow_token: FAT_ARROW@88..91 "=>" [] [Whitespace(" ")], body: JsFunctionBody { l_curly_token: L_CURLY@91..92 "{" [] [], directives: JsDirectiveList [], statements: JsStatementList [], r_curly_token: R_CURLY@92..94 "}" [] [Whitespace(" ")], }, }, semicolon_token: missing (optional), }, ], r_curly_token: R_CURLY@94..95 "}" [] [], }, }, semicolon_token: SEMICOLON@95..96 ";" [] [], }, ], eof_token: EOF@96..97 "" [Newline("\n")] [], } 0: JS_MODULE@0..97 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..96 0: JS_VARIABLE_STATEMENT@0..25 0: JS_VARIABLE_DECLARATION@0..25 0: (empty) 1: LET_KW@0..4 "let" [] [Whitespace(" ")] 2: JS_VARIABLE_DECLARATOR_LIST@4..25 0: JS_VARIABLE_DECLARATOR@4..25 0: JS_IDENTIFIER_BINDING@4..6 0: IDENT@4..6 "a" [] [Whitespace(" ")] 1: (empty) 2: JS_INITIALIZER_CLAUSE@6..25 0: EQ@6..8 "=" [] [Whitespace(" ")] 1: JS_ARROW_FUNCTION_EXPRESSION@8..25 0: ASYNC_KW@8..14 "async" [] [Whitespace(" ")] 1: (empty) 2: JS_BOGUS_BINDING@14..20 0: IDENT@14..20 "await" [] [Whitespace(" ")] 3: (empty) 4: FAT_ARROW@20..23 "=>" [] [Whitespace(" ")] 5: JS_FUNCTION_BODY@23..25 0: L_CURLY@23..24 "{" [] [] 1: JS_DIRECTIVE_LIST@24..24 2: JS_STATEMENT_LIST@24..24 3: R_CURLY@24..25 "}" [] [] 1: (empty) 1: JS_EXPRESSION_STATEMENT@25..59 0: JS_ARROW_FUNCTION_EXPRESSION@25..58 0: ASYNC_KW@25..31 "async" [Newline("\n")] [] 1: (empty) 2: JS_PARAMETERS@31..34 0: L_PAREN@31..32 "(" [] [] 1: JS_PARAMETER_LIST@32..32 2: R_PAREN@32..34 ")" [] [Whitespace(" ")] 3: (empty) 4: FAT_ARROW@34..37 "=>" [] [Whitespace(" ")] 5: JS_FUNCTION_BODY@37..58 0: L_CURLY@37..39 "{" [] [Whitespace(" ")] 1: JS_DIRECTIVE_LIST@39..39 2: JS_STATEMENT_LIST@39..57 0: JS_EXPRESSION_STATEMENT@39..57 0: JS_ARROW_FUNCTION_EXPRESSION@39..57 0: (empty) 1: (empty) 2: JS_PARAMETERS@39..51 0: L_PAREN@39..40 "(" [] [] 1: JS_PARAMETER_LIST@40..49 0: JS_FORMAL_PARAMETER@40..49 0: JS_DECORATOR_LIST@40..40 1: JS_IDENTIFIER_BINDING@40..42 0: IDENT@40..42 "a" [] [Whitespace(" ")] 2: (empty) 3: (empty) 4: JS_INITIALIZER_CLAUSE@42..49 0: EQ@42..44 "=" [] [Whitespace(" ")] 1: JS_BOGUS_EXPRESSION@44..49 0: JS_BOGUS@44..49 0: IDENT@44..49 "await" [] [] 2: R_PAREN@49..51 ")" [] [Whitespace(" ")] 3: (empty) 4: FAT_ARROW@51..54 "=>" [] [Whitespace(" ")] 5: JS_FUNCTION_BODY@54..57 0: L_CURLY@54..55 "{" [] [] 1: JS_DIRECTIVE_LIST@55..55 2: JS_STATEMENT_LIST@55..55 3: R_CURLY@55..57 "}" [] [Whitespace(" ")] 1: (empty) 3: R_CURLY@57..58 "}" [] [] 1: SEMICOLON@58..59 ";" [] [] 2: JS_EXPRESSION_STATEMENT@59..96 0: JS_ARROW_FUNCTION_EXPRESSION@59..95 0: ASYNC_KW@59..65 "async" [Newline("\n")] [] 1: (empty) 2: JS_PARAMETERS@65..68 0: L_PAREN@65..66 "(" [] [] 1: JS_PARAMETER_LIST@66..66 2: R_PAREN@66..68 ")" [] [Whitespace(" ")] 3: (empty) 4: FAT_ARROW@68..71 "=>" [] [Whitespace(" ")] 5: JS_FUNCTION_BODY@71..95 0: L_CURLY@71..73 "{" [] [Whitespace(" ")] 1: JS_DIRECTIVE_LIST@73..73 2: JS_STATEMENT_LIST@73..94 0: JS_EXPRESSION_STATEMENT@73..94 0: JS_ARROW_FUNCTION_EXPRESSION@73..94 0: (empty) 1: (empty) 2: JS_PARAMETERS@73..88 0: L_PAREN@73..74 "(" [] [] 1: JS_PARAMETER_LIST@74..86 0: JS_FORMAL_PARAMETER@74..86 0: JS_DECORATOR_LIST@74..74 1: JS_IDENTIFIER_BINDING@74..76 0: IDENT@74..76 "a" [] [Whitespace(" ")] 2: (empty) 3: (empty) 4: JS_INITIALIZER_CLAUSE@76..86 0: EQ@76..78 "=" [] [Whitespace(" ")] 1: JS_BOGUS_EXPRESSION@78..86 0: AWAIT_KW@78..84 "await" [] [Whitespace(" ")] 1: JS_NUMBER_LITERAL_EXPRESSION@84..86 0: JS_NUMBER_LITERAL@84..86 "10" [] [] 2: R_PAREN@86..88 ")" [] [Whitespace(" ")] 3: (empty) 4: FAT_ARROW@88..91 "=>" [] [Whitespace(" ")] 5: JS_FUNCTION_BODY@91..94 0: L_CURLY@91..92 "{" [] [] 1: JS_DIRECTIVE_LIST@92..92 2: JS_STATEMENT_LIST@92..92 3: R_CURLY@92..94 "}" [] [Whitespace(" ")] 1: (empty) 3: R_CURLY@94..95 "}" [] [] 1: SEMICOLON@95..96 ";" [] [] 4: EOF@96..97 "" [Newline("\n")] [] -- async_arrow_expr_await_parameter.js:1:15 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Illegal use of `await` as an identifier in an async context > 1 │ let a = async await => {} │ ^^^^^ 2 │ async() => { (a = await) => {} }; 3 │ async() => { (a = await 10) => {} }; -- async_arrow_expr_await_parameter.js:2:19 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Illegal use of `await` as an identifier in an async context 1 │ let a = async await => {} > 2 │ async() => { (a = await) => {} }; │ ^^^^^ 3 │ async() => { (a = await 10) => {} }; 4 │ -- async_arrow_expr_await_parameter.js:3:19 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × `await` is only allowed within async functions and at the top levels of modules. 1 │ let a = async await => {} 2 │ async() => { (a = await) => {} }; > 3 │ async() => { (a = await 10) => {} }; │ ^^^^^ 4 │ -- let a = async await => {} async() => { (a = await) => {} }; async() => { (a = await 10) => {} };