MODULE@0..14 EXPR_STMT@0..6 ARROW_EXPR@0..6 PARAMETER_LIST@0..4 L_PAREN@0..1 "(" ERROR@1..2 NUMBER@1..2 "5" WHITESPACE@2..3 " " ERROR@3..4 PLUS@3..4 "+" WHITESPACE@4..5 " " NUMBER@5..6 "5" ERROR@6..7 R_PAREN@6..7 ")" WHITESPACE@7..8 " " ERROR@8..10 FAT_ARROW@8..10 "=>" WHITESPACE@10..11 " " BLOCK_STMT@11..13 L_CURLY@11..12 "{" R_CURLY@12..13 "}" WHITESPACE@13..14 "\n" -- error[SyntaxError]: Expected an identifier or pattern, but found none ┌─ paren_or_arrow_expr_invalid_params.js:1:2 │ 1 │ (5 + 5) => {} │ ^ -- error[SyntaxError]: expected `')'` but instead found `5` ┌─ paren_or_arrow_expr_invalid_params.js:1:6 │ 1 │ (5 + 5) => {} │ ^ unexpected -- error[SyntaxError]: Expected an expression, but found none ┌─ paren_or_arrow_expr_invalid_params.js:1:7 │ 1 │ (5 + 5) => {} │ ^ Expected an expression here -- error[SyntaxError]: Expected a semicolon or an implicit semicolon after a statement, but found none ┌─ paren_or_arrow_expr_invalid_params.js:1:7 │ 1 │ (5 + 5) => {} │ ------^ │ │ │ │ │ An explicit or implicit semicolon is expected here... │ ...Which is required to end this statement -- error[SyntaxError]: Expected a statement or declaration, but found none ┌─ paren_or_arrow_expr_invalid_params.js:1:7 │ 1 │ (5 + 5) => {} │ ^ Expected a statement or declaration here -- error[SyntaxError]: Expected a statement or declaration, but found none ┌─ paren_or_arrow_expr_invalid_params.js:1:9 │ 1 │ (5 + 5) => {} │ ^^ Expected a statement or declaration here -- (5 + 5) => {}