(sctx *super.Context, union *ast.TypeUnion)
| 699 | } |
| 700 | |
| 701 | func (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 | |
| 713 | func (a Analyzer) convertTypeEnum(sctx *super.Context, enum *ast.TypeEnum) (*super.TypeEnum, error) { |
| 714 | if len(enum.Symbols) == 0 { |
no test coverage detected