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

Function addFileToFilesByName

test/fixtures/snapshot/typescript.js:118361–118369  ·  view source on GitHub ↗
(file, path, redirectedPath)

Source from the content-addressed store, hash-verified

118359 fileReasons.add(file.path, reason);
118360 }
118361 function addFileToFilesByName(file, path, redirectedPath) {
118362 if (redirectedPath) {
118363 filesByName.set(redirectedPath, file);
118364 filesByName.set(path, file || false);
118365 }
118366 else {
118367 filesByName.set(path, file);
118368 }
118369 }
118370 function getProjectReferenceRedirect(fileName) {
118371 var referencedProject = getProjectReferenceRedirectProject(fileName);
118372 return referencedProject && getProjectReferenceOutputName(referencedProject, fileName);

Callers 2

findSourceFileWorkerFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…