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

Function walkSet

walk.go:91–100  ·  view source on GitHub ↗
(typ *TypeSet, body scode.Bytes, visit Visitor)

Source from the content-addressed store, hash-verified

89}
90
91func walkSet(typ *TypeSet, body scode.Bytes, visit Visitor) error {
92 inner := TypeUnder(InnerType(typ))
93 it := body.Iter()
94 for !it.Done() {
95 if err := Walk(inner, it.Next(), visit); err != nil {
96 return err
97 }
98 }
99 return nil
100}
101
102func walkMap(typ *TypeMap, body scode.Bytes, visit Visitor) error {
103 keyType := TypeUnder(typ.KeyType)

Callers 1

WalkFunction · 0.85

Calls 6

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

Tested by

no test coverage detected