(typ Type)
| 374 | } |
| 375 | |
| 376 | func TypeID(typ Type) int { |
| 377 | if named, ok := typ.(*TypeNamed); ok { |
| 378 | return named.id |
| 379 | } |
| 380 | return typ.ID() |
| 381 | } |
| 382 | |
| 383 | // UniqueTypes returns the set of unique Types in types in sorted |
| 384 | // order. types will be sorted and deduplicated in place. |
no test coverage detected