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

Function toPath

test/fixtures/snapshot/typescript.js:8008–8013  ·  view source on GitHub ↗
(fileName, basePath, getCanonicalFileName)

Source from the content-addressed store, hash-verified

8006 }
8007 ts.getNormalizedAbsolutePathWithoutRoot = getNormalizedAbsolutePathWithoutRoot;
8008 function toPath(fileName, basePath, getCanonicalFileName) {
8009 var nonCanonicalizedPath = isRootedDiskPath(fileName)
8010 ? normalizePath(fileName)
8011 : getNormalizedAbsolutePath(fileName, basePath);
8012 return getCanonicalFileName(nonCanonicalizedPath);
8013 }
8014 ts.toPath = toPath;
8015 function removeTrailingDirectorySeparator(path) {
8016 if (hasTrailingDirectorySeparator(path)) {

Callers 15

writeFileFunction · 0.85
fileExistsFunction · 0.85
directoryExistsFunction · 0.85
createDirectoryFunction · 0.85
getDirectoriesFunction · 0.85
readDirectoryFunction · 0.85
getFileSystemEntriesFunction · 0.85
cleanExtendedConfigCacheFunction · 0.85
hasSourceFileFunction · 0.85
readFileWithCacheFunction · 0.85

Calls 4

isRootedDiskPathFunction · 0.85
getCanonicalFileNameFunction · 0.85
normalizePathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…