(typ *super.TypeUnion)
| 239 | } |
| 240 | |
| 241 | func newUnionBuilder(typ *super.TypeUnion) Builder { |
| 242 | var values []Builder |
| 243 | for _, typ := range typ.Types { |
| 244 | values = append(values, NewBuilder(typ)) |
| 245 | } |
| 246 | return &unionBuilder{typ: typ, values: values} |
| 247 | } |
| 248 | |
| 249 | func (u *unionBuilder) Write(bytes scode.Bytes) { |
| 250 | var typ super.Type |
no test coverage detected