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

Function buildPath

runtime/vam/expr/function/fields.go:72–82  ·  view source on GitHub ↗
(typ *super.TypeRecord, prefix []string)

Source from the content-addressed store, hash-verified

70}
71
72func buildPath(typ *super.TypeRecord, prefix []string) [][]string {
73 var out [][]string
74 for _, f := range typ.Fields {
75 if typ, ok := super.TypeUnder(f.Type).(*super.TypeRecord); ok {
76 out = append(out, buildPath(typ, append(prefix, f.Name))...)
77 } else {
78 out = append(out, append(prefix, f.Name))
79 }
80 }
81 return out
82}
83
84func appendPaths(paths [][]string, s *vector.String, inner, outer []uint32) ([]uint32, []uint32) {
85 for _, path := range paths {

Callers 1

CallMethod · 0.70

Calls 1

TypeUnderFunction · 0.92

Tested by

no test coverage detected