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

Function getUpdatedPath

test/fixtures/snapshot/typescript.js:139456–139461  ·  view source on GitHub ↗
(pathToUpdate)

Source from the content-addressed store, hash-verified

139454 : updatedPath;
139455 };
139456 function getUpdatedPath(pathToUpdate) {
139457 if (getCanonicalFileName(pathToUpdate) === canonicalOldPath)
139458 return newFileOrDirPath;
139459 var suffix = ts.tryRemoveDirectoryPrefix(pathToUpdate, canonicalOldPath, getCanonicalFileName);
139460 return suffix === undefined ? undefined : newFileOrDirPath + "/" + suffix;
139461 }
139462 }
139463 ts.getPathUpdater = getPathUpdater;
139464 // Relative path from a0 to b0 should be same as relative path from a1 to b1. Returns b1.

Callers 1

getPathUpdaterFunction · 0.85

Calls 1

getCanonicalFileNameFunction · 0.85

Tested by

no test coverage detected