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

Function buildMap

sup/builder.go:227–240  ·  view source on GitHub ↗
(b *scode.Builder, m *Map)

Source from the content-addressed store, hash-verified

225}
226
227func buildMap(b *scode.Builder, m *Map) error {
228 b.BeginContainer()
229 for _, entry := range m.Entries {
230 if err := buildValue(b, entry.Key); err != nil {
231 return err
232 }
233 if err := buildValue(b, entry.Value); err != nil {
234 return err
235 }
236 }
237 b.TransformContainer(super.NormalizeMap)
238 b.EndContainer()
239 return nil
240}
241
242func buildUnion(b *scode.Builder, union *Union) error {
243 super.BeginUnion(b, union.Tag)

Callers 1

buildValueFunction · 0.85

Calls 4

buildValueFunction · 0.85
BeginContainerMethod · 0.80
TransformContainerMethod · 0.80
EndContainerMethod · 0.80

Tested by

no test coverage detected