(in dag.Expr)
| 418 | } |
| 419 | |
| 420 | func (b *Builder) noneType(in dag.Expr) (super.Type, error) { |
| 421 | e, ok := in.(*dag.PrimitiveExpr) |
| 422 | if !ok { |
| 423 | return nil, errors.New("DAG none type is not a type value") |
| 424 | } |
| 425 | val, err := sup.ParseValue(b.sctx(), e.Value) |
| 426 | if err != nil { |
| 427 | return nil, err |
| 428 | } |
| 429 | if _, ok := val.Type().(*super.TypeOfType); !ok { |
| 430 | return nil, errors.New("DAG none type is not a type value") |
| 431 | } |
| 432 | typ, err := b.sctx().LookupByValue(val.Bytes()) |
| 433 | if err != nil { |
| 434 | panic(err) |
| 435 | } |
| 436 | return typ, nil |
| 437 | } |
| 438 | |
| 439 | func (b *Builder) compileArrayExpr(array *dag.ArrayExpr) (expr.Evaluator, error) { |
| 440 | elems, err := b.compileVectorElems(array.Elems) |
no test coverage detected