()
| 719 | } |
| 720 | |
| 721 | func (t *Type) Distributed() []*Type { |
| 722 | switch { |
| 723 | case t.flags&TypeFlagsUnion != 0: |
| 724 | return t.AsUnionType().types |
| 725 | case t.flags&TypeFlagsNever != 0: |
| 726 | return nil |
| 727 | } |
| 728 | return []*Type{t} |
| 729 | } |
| 730 | |
| 731 | // Common accessors |
| 732 |
no test coverage detected