TypeCache wraps a TypeFetcher with an unsynchronized cache for its LookupType method. Cache hits incur none of the synchronization overhead of the underlying shared type context.
| 661 | // method. Cache hits incur none of the synchronization overhead of |
| 662 | // the underlying shared type context. |
| 663 | type TypeCache struct { |
| 664 | cache []Type |
| 665 | fetcher TypeFetcher |
| 666 | } |
| 667 | |
| 668 | var _ TypeFetcher = (*TypeCache)(nil) |
| 669 |
nothing calls this directly
no outgoing calls
no test coverage detected