( info Info, importedFileName string, host ModuleSpecifierGenerationHost, compilerOptions *core.CompilerOptions, preferences UserPreferences, options ModuleSpecifierOptions, )
| 173 | } |
| 174 | |
| 175 | func getAllModulePaths( |
| 176 | info Info, |
| 177 | importedFileName string, |
| 178 | host ModuleSpecifierGenerationHost, |
| 179 | compilerOptions *core.CompilerOptions, |
| 180 | preferences UserPreferences, |
| 181 | options ModuleSpecifierOptions, |
| 182 | ) []ModulePath { |
| 183 | // !!! use new cache model |
| 184 | // importingFilePath := tspath.ToPath(info.ImportingSourceFileName, host.GetCurrentDirectory(), host.UseCaseSensitiveFileNames()); |
| 185 | // importedFilePath := tspath.ToPath(importedFileName, host.GetCurrentDirectory(), host.UseCaseSensitiveFileNames()); |
| 186 | // cache := host.getModuleSpecifierCache(); |
| 187 | // if (cache != nil) { |
| 188 | // cached := cache.get(importingFilePath, importedFilePath, preferences, options); |
| 189 | // if (cached.modulePaths) {return cached.modulePaths;} |
| 190 | // } |
| 191 | modulePaths := getAllModulePathsWorker(info, importedFileName, host, compilerOptions, options) |
| 192 | // if (cache != nil) { |
| 193 | // cache.setModulePaths(importingFilePath, importedFilePath, preferences, options, modulePaths); |
| 194 | // } |
| 195 | return modulePaths |
| 196 | } |
| 197 | |
| 198 | func getAllModulePathsWorker( |
| 199 | info Info, |
no test coverage detected