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

Function arePathsEqual

test/fixtures/snapshot/typescript.js:42527–42530  ·  view source on GitHub ↗
(path1, path2, host)

Source from the content-addressed store, hash-verified

42525 }
42526 var nodeModulesAtTypes = ts.combinePaths("node_modules", "@types");
42527 function arePathsEqual(path1, path2, host) {
42528 var useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames;
42529 return ts.comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* Comparison.EqualTo */;
42530 }
42531 /**
42532 * @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.
42533 * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups

Callers 2

tryResolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected