(b *scode.Builder)
| 421 | } |
| 422 | |
| 423 | func (c *collectionIter) appendNext(b *scode.Builder) { |
| 424 | if union, ok := c.typ.(*super.TypeUnion); ok && c.uniq > 1 { |
| 425 | super.BuildUnion(b, union.TagOf(c.types[0]), c.bytes[0]) |
| 426 | } else { |
| 427 | b.Append(c.bytes[0]) |
| 428 | } |
| 429 | c.bytes = c.bytes[1:] |
| 430 | c.types = c.types[1:] |
| 431 | } |
| 432 | |
| 433 | func (c *collectionIter) done() bool { |
| 434 | return len(c.types) == 0 |