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

Function processSourceFile

test/fixtures/snapshot/typescript.js:118147–118156  ·  view source on GitHub ↗

This has side effects through `findSourceFile`.

(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason)

Source from the content-addressed store, hash-verified

118145 }
118146 /** This has side effects through `findSourceFile`. */
118147 function processSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason) {
118148 getSourceFileFromReferenceWorker(fileName, function (fileName) { return findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId); }, // TODO: GH#18217
118149 function (diagnostic) {
118150 var args = [];
118151 for (var _i = 1; _i < arguments.length; _i++) {
118152 args[_i - 1] = arguments[_i];
118153 }
118154 return addFilePreprocessingFileExplainingDiagnostic(/*file*/ undefined, reason, diagnostic, args);
118155 }, reason);
118156 }
118157 function processProjectReferenceFile(fileName, reason) {
118158 return processSourceFile(fileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined, reason);
118159 }

Callers 4

processRootFileFunction · 0.85
processReferencedFilesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…