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

Function buildFusion

sup/builder.go:251–261  ·  view source on GitHub ↗
(b *scode.Builder, f *Fusion)

Source from the content-addressed store, hash-verified

249}
250
251func buildFusion(b *scode.Builder, f *Fusion) error {
252 b.BeginContainer()
253 // supertype value
254 if err := buildValue(b, f.Value); err != nil {
255 return err
256 }
257 // subtype
258 b.Append(f.SubType)
259 b.EndContainer()
260 return nil
261}
262
263func buildEnum(b *scode.Builder, enum *Enum) error {
264 under, ok := super.TypeUnder(enum.Type).(*super.TypeEnum)

Callers 1

buildValueFunction · 0.85

Calls 4

buildValueFunction · 0.85
BeginContainerMethod · 0.80
EndContainerMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected