MODULE@0..40 EXPR_STMT@0..13 COND_EXPR@0..13 NAME_REF@0..3 IDENT@0..3 "foo" WHITESPACE@3..4 " " QUESTION@4..5 "?" WHITESPACE@5..6 " " NAME_REF@6..9 IDENT@6..9 "bar" WHITESPACE@9..10 " " NAME_REF@10..13 IDENT@10..13 "baz" WHITESPACE@13..14 "\n" EXPR_STMT@14..39 COND_EXPR@14..39 NAME_REF@14..17 IDENT@14..17 "foo" WHITESPACE@17..18 " " QUESTION@18..19 "?" WHITESPACE@19..20 " " NAME_REF@20..23 IDENT@20..23 "bar" WHITESPACE@23..24 " " COND_EXPR@24..39 NAME_REF@24..27 IDENT@24..27 "baz" WHITESPACE@27..28 " " QUESTION@28..29 "?" WHITESPACE@29..30 " " NAME_REF@30..33 IDENT@30..33 "foo" WHITESPACE@33..34 " " COLON@34..35 ":" WHITESPACE@35..36 " " NAME_REF@36..39 IDENT@36..39 "bar" WHITESPACE@39..40 "\n" -- error[SyntaxError]: expected `:` but instead found `baz` ┌─ conditional_expr_err.js:1:11 │ 1 │ foo ? bar baz │ ^^^ unexpected -- error[SyntaxError]: expected `:` but instead found `baz` ┌─ conditional_expr_err.js:2:11 │ 2 │ foo ? bar baz ? foo : bar │ ^^^ unexpected -- foo ? bar baz foo ? bar baz ? foo : bar