(expr: &Expr)
| 61 | } |
| 62 | |
| 63 | pub fn coerce_condition(expr: &Expr) -> Expr { |
| 64 | if is_expr_boolean(expr) { |
| 65 | return expr.clone(); |
| 66 | } |
| 67 | BinOp::Eq.to_expr(0..0, expr.clone(), Value::from(true).to_expr(0..0)) |
| 68 | } |
| 69 | |
| 70 | impl<T> Sb3<T> |
| 71 | where T: Write + Seek |