(sctx *super.Context, types []super.Type)
| 435 | } |
| 436 | |
| 437 | func unionOf(sctx *super.Context, types []super.Type) super.Type { |
| 438 | if len(types) == 0 { |
| 439 | return super.TypeNull |
| 440 | } |
| 441 | unique := super.UniqueTypes(types) |
| 442 | if len(unique) == 1 { |
| 443 | return unique[0] |
| 444 | } |
| 445 | return sctx.LookupTypeUnion(unique) |
| 446 | } |
no test coverage detected