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

Function getSourceFileByPath

test/fixtures/snapshot/typescript.js:117541–117543  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

117539 return getSourceFileByPath(toPath(fileName));
117540 }
117541 function getSourceFileByPath(path) {
117542 return filesByName.get(path) || undefined;
117543 }
117544 function getDiagnosticsHelper(sourceFile, getDiagnostics, cancellationToken) {
117545 if (sourceFile) {
117546 return getDiagnostics(sourceFile, cancellationToken);

Callers 7

createProgramFunction · 0.85
getEmitHostFunction · 0.85
getPrependNodesFunction · 0.85
getSourceFileFunction · 0.85
isEmittedFileFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…