MCPcopy Create free account
hub / github.com/nodejs/node / getModuleSpecifierForBestExportInfo

Function getModuleSpecifierForBestExportInfo

test/fixtures/snapshot/typescript.js:153072–153077  ·  view source on GitHub ↗
(exportInfo, symbolName, position, isValidTypeOnlyUseSite, fromCacheOnly)

Source from the content-addressed store, hash-verified

153070 var importMap = createExistingImportMap(program.getTypeChecker(), importingFile, program.getCompilerOptions());
153071 return { getModuleSpecifierForBestExportInfo: getModuleSpecifierForBestExportInfo };
153072 function getModuleSpecifierForBestExportInfo(exportInfo, symbolName, position, isValidTypeOnlyUseSite, fromCacheOnly) {
153073 var _a = getImportFixes(exportInfo, { symbolName: symbolName, position: position }, isValidTypeOnlyUseSite,
153074 /*useRequire*/ false, program, importingFile, host, preferences, importMap, fromCacheOnly), fixes = _a.fixes, computedWithoutCacheCount = _a.computedWithoutCacheCount;
153075 var result = getBestFix(fixes, importingFile, program, packageJsonImportFilter, host);
153076 return result && __assign(__assign({}, result), { computedWithoutCacheCount: computedWithoutCacheCount });
153077 }
153078 }
153079 codefix.createImportSpecifierResolver = createImportSpecifierResolver;
153080 // Sorted with the preferred fix coming first.

Callers

nothing calls this directly

Calls 2

getImportFixesFunction · 0.85
getBestFixFunction · 0.85

Tested by

no test coverage detected