(slice *dag.SliceExpr)
| 150 | } |
| 151 | |
| 152 | func (b *Builder) compileSliceExpr(slice *dag.SliceExpr) (expr.Evaluator, error) { |
| 153 | e, err := b.compileExpr(slice.Expr) |
| 154 | if err != nil { |
| 155 | return nil, err |
| 156 | } |
| 157 | from, err := b.compileExprWithEmpty(slice.From) |
| 158 | if err != nil { |
| 159 | return nil, err |
| 160 | } |
| 161 | to, err := b.compileExprWithEmpty(slice.To) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | return expr.NewSlice(b.sctx(), e, from, to, slice.Base1), nil |
| 166 | } |
| 167 | |
| 168 | func (b *Builder) compileUnary(unary dag.UnaryExpr) (expr.Evaluator, error) { |
| 169 | e, err := b.compileExpr(unary.Operand) |
no test coverage detected