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

Function getLibFileFromReference

test/fixtures/snapshot/typescript.js:118089–118095  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

118087 }
118088 }
118089 function getLibFileFromReference(ref) {
118090 var libName = ts.toFileNameLowerCase(ref.fileName);
118091 var libFileName = ts.libMap.get(libName);
118092 if (libFileName) {
118093 return getSourceFile(pathForLibFile(libFileName));
118094 }
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);

Callers

nothing calls this directly

Calls 3

getSourceFileFunction · 0.85
pathForLibFileFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…