(
view: T,
)
| 91 | }) |
| 92 | } |
| 93 | function getCache<T extends debug.DevtoolsMainView>( |
| 94 | view: T, |
| 95 | ): {[K in 'short' | 'long']: CacheDataMap[T][K] | null} { |
| 96 | const short = shortCache && shortCache.view === view ? shortCache.data : null |
| 97 | shortCache = nextShortCache |
| 98 | nextShortCache = null |
| 99 | const long = longCache.get(view) |
| 100 | longCache.delete(view) |
| 101 | return {short, long} |
| 102 | } |
| 103 | |
| 104 | return {set: setCacheGetter, get: getCache} |
| 105 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…