MCPcopy Index your code
hub / github.com/nodejs/node / getModuleSpecifier

Function getModuleSpecifier

test/fixtures/snapshot/typescript.js:122002–122005  ·  view source on GitHub ↗
(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, options)

Source from the content-addressed store, hash-verified

122000 // just to get its `impliedNodeFormat` and to detect certain preferences from existing import module
122001 // specifiers.
122002 function getModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, options) {
122003 if (options === void 0) { options = {}; }
122004 return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, getPreferences(host, {}, compilerOptions, importingSourceFile), {}, options);
122005 }
122006 moduleSpecifiers_1.getModuleSpecifier = getModuleSpecifier;
122007 function getNodeModulesPackageName(compilerOptions, importingSourceFile, nodeModulesFileName, host, preferences, options) {
122008 if (options === void 0) { options = {}; }

Callers

nothing calls this directly

Calls 2

getModuleSpecifierWorkerFunction · 0.85
getPreferencesFunction · 0.85

Tested by

no test coverage detected