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

Function getReferencedFileFromFileName

test/fixtures/snapshot/typescript.js:119637–119639  ·  view source on GitHub ↗

* Gets the path to reference file from file name, it could be resolvedPath if present otherwise path

(program, fileName, sourceFileDirectory, getCanonicalFileName)

Source from the content-addressed store, hash-verified

119635 * Gets the path to reference file from file name, it could be resolvedPath if present otherwise path
119636 */
119637 function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) {
119638 return ts.toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
119639 }
119640 /**
119641 * Gets the referenced files for a file from the program with values for the keys as referenced file's path to be true
119642 */

Callers 1

getReferencedFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected