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

Function getPrependNodes

test/fixtures/snapshot/typescript.js:117474–117480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117472 return projectReferences;
117473 }
117474 function getPrependNodes() {
117475 return createPrependNodes(projectReferences, function (_ref, index) { var _a; return (_a = resolvedProjectReferences[index]) === null || _a === void 0 ? void 0 : _a.commandLine; }, function (fileName) {
117476 var path = toPath(fileName);
117477 var sourceFile = getSourceFileByPath(path);
117478 return sourceFile ? sourceFile.text : filesByName.has(path) ? undefined : host.readFile(path);
117479 });
117480 }
117481 function isSourceFileFromExternalLibrary(file) {
117482 return !!sourceFilesFoundSearchingNodeModules.get(file.path);
117483 }

Callers

nothing calls this directly

Calls 5

createPrependNodesFunction · 0.85
toPathFunction · 0.85
getSourceFileByPathFunction · 0.85
hasMethod · 0.65
readFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…