(typ *super.TypeUnion, isComponentType bool)
| 668 | } |
| 669 | |
| 670 | func (f *Formatter) formatTypeUnion(typ *super.TypeUnion, isComponentType bool) { |
| 671 | if isComponentType { |
| 672 | f.build("(") |
| 673 | } |
| 674 | for k, typ := range typ.Types { |
| 675 | if k > 0 { |
| 676 | f.build("|") |
| 677 | } |
| 678 | f.formatType(typ, true) |
| 679 | } |
| 680 | if isComponentType { |
| 681 | f.build(")") |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | func (f *Formatter) formatTypeEnum(typ *super.TypeEnum) { |
| 686 | f.build("enum(") |
no test coverage detected