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

Method convertTypeUnion

sup/analyzer.go:701–711  ·  view source on GitHub ↗
(sctx *super.Context, union *ast.TypeUnion)

Source from the content-addressed store, hash-verified

699}
700
701func (a Analyzer) convertTypeUnion(sctx *super.Context, union *ast.TypeUnion) (*super.TypeUnion, error) {
702 var types []super.Type
703 for _, typ := range union.Types {
704 typ, err := a.convertType(sctx, typ)
705 if err != nil {
706 return nil, err
707 }
708 types = append(types, typ)
709 }
710 return sctx.LookupTypeUnion(types), nil
711}
712
713func (a Analyzer) convertTypeEnum(sctx *super.Context, enum *ast.TypeEnum) (*super.TypeEnum, error) {
714 if len(enum.Symbols) == 0 {

Callers 1

convertTypeMethod · 0.95

Calls 2

convertTypeMethod · 0.95
LookupTypeUnionMethod · 0.80

Tested by

no test coverage detected