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

Function toFileId

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

Source from the content-addressed store, hash-verified

120651 return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getCanonicalFileName));
120652 }
120653 function toFileId(path) {
120654 var fileId = fileNameToFileId.get(path);
120655 if (fileId === undefined) {
120656 fileNames.push(relativeToBuildInfo(path));
120657 fileNameToFileId.set(path, fileId = fileNames.length);
120658 }
120659 return fileId;
120660 }
120661 function toFileIdListId(set) {
120662 var fileIds = ts.arrayFrom(set.keys(), toFileId).sort(ts.compareValues);
120663 var key = fileIds.join();

Callers 1

getProgramBuildInfoFunction · 0.85

Calls 4

relativeToBuildInfoFunction · 0.85
getMethod · 0.65
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…