(targetPackPath: string)
| 1142 | const columnIndexesByPackedFile = new WeakMap<PackedFile, Map<string, number>>(); |
| 1143 | |
| 1144 | const getPackFromCacheOrRead = async (targetPackPath: string) => { |
| 1145 | const cachedPack = packByPathCache.get(targetPackPath); |
| 1146 | if (cachedPack) return cachedPack; |
| 1147 | const readPack = await getOrReadPackByPath(targetPackPath); |
| 1148 | if (readPack) { |
| 1149 | packByPathCache.set(targetPackPath, readPack); |
| 1150 | } |
| 1151 | return readPack; |
| 1152 | }; |
| 1153 | |
| 1154 | const getTableFilesForPackAndTable = async (targetPackPath: string, tableName: string) => { |
| 1155 | const cacheKey = `${targetPackPath}|${tableName}`; |
no test coverage detected