(sctx *super.Context, d *Dynamic)
| 17 | } |
| 18 | |
| 19 | func NewUnionFromDynamic(sctx *super.Context, d *Dynamic) *Union { |
| 20 | types := make([]super.Type, 0, len(d.Values)) |
| 21 | for _, vec := range d.Values { |
| 22 | types = append(types, vec.Type()) |
| 23 | } |
| 24 | return &Union{d, sctx.LookupTypeUnion(types)} |
| 25 | } |
| 26 | |
| 27 | func (*Union) Kind() Kind { |
| 28 | return KindUnion |
no test coverage detected