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

Function getCanonicalFileName

test/fixtures/snapshot/typescript.js:18398–18398  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

18396 */
18397 function getExternalModuleNameFromPath(host, fileName, referencePath) {
18398 var getCanonicalFileName = function (f) { return host.getCanonicalFileName(f); };
18399 var dir = ts.toPath(referencePath ? ts.getDirectoryPath(referencePath) : host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName);
18400 var filePath = ts.getNormalizedAbsolutePath(fileName, host.getCurrentDirectory());
18401 var relativePath = ts.getRelativePathToDirectoryOrUrl(dir, filePath, dir, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);

Callers 15

tryRemovePrefixFunction · 0.85
toPathFunction · 0.85
startsWithDirectoryFunction · 0.85
guessDirectorySymlinkFunction · 0.85
fileNameEqualFunction · 0.85
getAllModulePathsWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…