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

Method convertTypeMap

sup/analyzer.go:689–699  ·  view source on GitHub ↗
(sctx *super.Context, tmap *ast.TypeMap)

Source from the content-addressed store, hash-verified

687}
688
689func (a Analyzer) convertTypeMap(sctx *super.Context, tmap *ast.TypeMap) (*super.TypeMap, error) {
690 keyType, err := a.convertType(sctx, tmap.KeyType)
691 if err != nil {
692 return nil, err
693 }
694 valType, err := a.convertType(sctx, tmap.ValType)
695 if err != nil {
696 return nil, err
697 }
698 return sctx.LookupTypeMap(keyType, valType), nil
699}
700
701func (a Analyzer) convertTypeUnion(sctx *super.Context, union *ast.TypeUnion) (*super.TypeUnion, error) {
702 var types []super.Type

Callers 1

convertTypeMethod · 0.95

Calls 2

convertTypeMethod · 0.95
LookupTypeMapMethod · 0.80

Tested by

no test coverage detected