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

Function getValidSourceFile

test/fixtures/snapshot/typescript.js:164988–164998  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

164986 log: log
164987 });
164988 function getValidSourceFile(fileName) {
164989 var sourceFile = program.getSourceFile(fileName);
164990 if (!sourceFile) {
164991 var error = new Error("Could not find source file: '".concat(fileName, "'."));
164992 // We've been having trouble debugging this, so attach sidecar data for the tsserver log.
164993 // See https://github.com/microsoft/TypeScript/issues/30180.
164994 error.ProgramFiles = program.getSourceFiles().map(function (f) { return f.fileName; });
164995 throw error;
164996 }
164997 return sourceFile;
164998 }
164999 function synchronizeHostData() {
165000 var _a, _b, _c;
165001 ts.Debug.assert(languageServiceMode !== ts.LanguageServiceMode.Syntactic);

Callers 15

getSyntacticDiagnosticsFunction · 0.85
getSemanticDiagnosticsFunction · 0.85
getSuggestionDiagnosticsFunction · 0.85
getCompletionsAtPositionFunction · 0.85
getCompletionEntrySymbolFunction · 0.85
getQuickInfoAtPositionFunction · 0.85
getDefinitionAtPositionFunction · 0.85
getDocumentHighlightsFunction · 0.85

Calls 2

concatMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected