File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2163,7 +2163,6 @@ fn possible_operands(i: &mut TokenSlice) -> ModalResult<Expr> {
2163
2163
name. map ( Box :: new) . map ( Expr :: Name ) ,
2164
2164
array,
2165
2165
object. map ( Box :: new) . map ( Expr :: ObjectExpression ) ,
2166
- if_expr. map ( Expr :: IfExpression ) ,
2167
2166
binary_expr_in_parens. map ( Box :: new) . map ( Expr :: BinaryExpression ) ,
2168
2167
unnecessarily_bracketed,
2169
2168
) )
@@ -3455,13 +3454,6 @@ mod tests {
3455
3454
binary_expression. parse ( tokens) . unwrap ( ) ;
3456
3455
}
3457
3456
3458
- #[ test]
3459
- fn parse_binary_operator_with_if_else ( ) {
3460
- let tokens = crate :: parsing:: token:: lex ( "40 + if true { 2 } else { 0 }" , ModuleId :: default ( ) ) . unwrap ( ) ;
3461
- let tokens = tokens. as_slice ( ) ;
3462
- binary_expression. parse ( tokens) . unwrap ( ) ;
3463
- }
3464
-
3465
3457
#[ test]
3466
3458
fn expression_in_array_index ( ) {
3467
3459
let tokens = crate :: parsing:: token:: lex ( "arr[x + 1]" , ModuleId :: default ( ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments