()
| 160 | } |
| 161 | |
| 162 | func (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 | |
| 173 | func (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 { |