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

Function toAbsolutePath

test/fixtures/snapshot/typescript.js:44157–44162  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

44155 }
44156 return toSearchResult(/*value*/ undefined);
44157 function toAbsolutePath(path) {
44158 var _a, _b;
44159 if (path === undefined)
44160 return path;
44161 return ts.hostGetCanonicalFileName({ useCaseSensitiveFileNames: useCaseSensitiveFileNames })(ts.getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)));
44162 }
44163 function combineDirectoryPath(root, dir) {
44164 return ts.ensureTrailingDirectorySeparator(ts.combinePaths(root, dir));
44165 }

Calls 1

callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…