( ctx context.Context, semaCtx *SemaContext, expr Expr, op string, )
| 1665 | } |
| 1666 | |
| 1667 | func typeCheckAndRequireBoolean( |
| 1668 | ctx context.Context, semaCtx *SemaContext, expr Expr, op string, |
| 1669 | ) (TypedExpr, error) { |
| 1670 | return typeCheckAndRequire(ctx, semaCtx, expr, types.Bool, op) |
| 1671 | } |
| 1672 | |
| 1673 | func typeCheckAndRequire( |
| 1674 | ctx context.Context, semaCtx *SemaContext, expr Expr, required *types.T, op string, |