(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options)
| 122041 | } |
| 122042 | moduleSpecifiers_1.getModuleSpecifiers = getModuleSpecifiers; |
| 122043 | function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options) { |
| 122044 | if (options === void 0) { options = {}; } |
| 122045 | var computedWithoutCache = false; |
| 122046 | var ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker); |
| 122047 | if (ambient) |
| 122048 | return { moduleSpecifiers: [ambient], computedWithoutCache: computedWithoutCache }; |
| 122049 | // eslint-disable-next-line prefer-const |
| 122050 | var _a = tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options), specifiers = _a[0], moduleSourceFile = _a[1], modulePaths = _a[2], cache = _a[3]; |
| 122051 | if (specifiers) |
| 122052 | return { moduleSpecifiers: specifiers, computedWithoutCache: computedWithoutCache }; |
| 122053 | if (!moduleSourceFile) |
| 122054 | return { moduleSpecifiers: ts.emptyArray, computedWithoutCache: computedWithoutCache }; |
| 122055 | computedWithoutCache = true; |
| 122056 | modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host)); |
| 122057 | var result = computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options); |
| 122058 | cache === null || cache === void 0 ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result); |
| 122059 | return { moduleSpecifiers: result, computedWithoutCache: computedWithoutCache }; |
| 122060 | } |
| 122061 | moduleSpecifiers_1.getModuleSpecifiersWithCacheInfo = getModuleSpecifiersWithCacheInfo; |
| 122062 | function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options) { |
| 122063 | if (options === void 0) { options = {}; } |
no test coverage detected