(inner super.Type)
| 49 | } |
| 50 | |
| 51 | func (a *mapCall) buildVal(inner super.Type) []byte { |
| 52 | a.builder.Reset() |
| 53 | if union, ok := inner.(*super.TypeUnion); ok { |
| 54 | for _, val := range a.vals { |
| 55 | super.BuildUnion(&a.builder, union.TagOf(val.Type()), val.Bytes()) |
| 56 | } |
| 57 | } else { |
| 58 | for _, val := range a.vals { |
| 59 | a.builder.Append(val.Bytes()) |
| 60 | } |
| 61 | } |
| 62 | return a.builder.Bytes() |
| 63 | } |
| 64 | |
| 65 | func (a *mapCall) innerType(types []super.Type) super.Type { |
| 66 | types = super.UniqueTypes(types) |