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

Function walkArray

walk.go:63–72  ·  view source on GitHub ↗
(typ *TypeArray, body scode.Bytes, visit Visitor)

Source from the content-addressed store, hash-verified

61}
62
63func walkArray(typ *TypeArray, body scode.Bytes, visit Visitor) error {
64 inner := InnerType(typ)
65 it := body.Iter()
66 for !it.Done() {
67 if err := Walk(inner, it.Next(), visit); err != nil {
68 return err
69 }
70 }
71 return nil
72}
73
74func walkUnion(typ *TypeUnion, body scode.Bytes, visit Visitor) error {
75 if len(body) == 0 {

Callers 1

WalkFunction · 0.85

Calls 5

InnerTypeFunction · 0.85
IterMethod · 0.80
WalkFunction · 0.70
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected