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

Function comparePaths

test/fixtures/snapshot/typescript.js:8101–8110  ·  view source on GitHub ↗
(a, b, currentDirectory, ignoreCase)

Source from the content-addressed store, hash-verified

8099 }
8100 ts.comparePathsCaseInsensitive = comparePathsCaseInsensitive;
8101 function comparePaths(a, b, currentDirectory, ignoreCase) {
8102 if (typeof currentDirectory === "string") {
8103 a = combinePaths(currentDirectory, a);
8104 b = combinePaths(currentDirectory, b);
8105 }
8106 else if (typeof currentDirectory === "boolean") {
8107 ignoreCase = currentDirectory;
8108 }
8109 return comparePathsWorker(a, b, ts.getStringComparer(ignoreCase));
8110 }
8111 ts.comparePaths = comparePaths;
8112 function containsPath(parent, child, currentDirectory, ignoreCase) {
8113 if (typeof currentDirectory === "string") {

Callers

nothing calls this directly

Calls 2

combinePathsFunction · 0.85
comparePathsWorkerFunction · 0.85

Tested by

no test coverage detected