MCPcopy Create free account
hub / github.com/brimdata/super / appendNext

Method appendNext

runtime/sam/expr/values.go:423–431  ·  view source on GitHub ↗
(b *scode.Builder)

Source from the content-addressed store, hash-verified

421}
422
423func (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
433func (c *collectionIter) done() bool {
434 return len(c.types) == 0

Callers 3

EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80

Calls 3

BuildUnionFunction · 0.92
TagOfMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected