(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, preferences, userPreferences, options)
| 122012 | } |
| 122013 | moduleSpecifiers_1.getNodeModulesPackageName = getNodeModulesPackageName; |
| 122014 | function getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, preferences, userPreferences, options) { |
| 122015 | if (options === void 0) { options = {}; } |
| 122016 | var info = getInfo(importingSourceFileName, host); |
| 122017 | var modulePaths = getAllModulePaths(importingSourceFileName, toFileName, host, userPreferences, options); |
| 122018 | return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, /*packageNameOnly*/ undefined, options.overrideImportMode); }) || |
| 122019 | getLocalModuleSpecifier(toFileName, info, compilerOptions, host, preferences); |
| 122020 | } |
| 122021 | function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences, options) { |
| 122022 | if (options === void 0) { options = {}; } |
| 122023 | return tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options)[0]; |
no test coverage detected