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

Function getSourceFileFromReference

test/fixtures/snapshot/typescript.js:118097–118099  ·  view source on GitHub ↗

This should have similar behavior to 'processSourceFile' without diagnostics or mutation.

(referencingFile, ref)

Source from the content-addressed store, hash-verified

118095 }
118096 /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */
118097 function getSourceFileFromReference(referencingFile, ref) {
118098 return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile);
118099 }
118100 function getSourceFileFromReferenceWorker(fileName, getSourceFile, fail, reason) {
118101 if (ts.hasExtension(fileName)) {
118102 var canonicalFileName_1 = host.getCanonicalFileName(fileName);

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…