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

Method countLeaves

runtime/sam/expr/function/unflatten.go:162–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162func (r *record) countLeaves() int {
163 if r == nil {
164 return 1
165 }
166 var count int
167 for _, rec := range r.records {
168 count += rec.countLeaves()
169 }
170 return count
171}
172
173func (r *record) build(sctx *super.Context, b *scode.Builder, next func() (super.Type, scode.Bytes)) (super.Type, error) {
174 for i, rec := range r.records {

Callers 1

addPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected