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

Function hasSourceFile

test/fixtures/snapshot/typescript.js:115587–115593  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

115585 }
115586 return false;
115587 function hasSourceFile(file) {
115588 return realProgram ?
115589 !!realProgram.getSourceFileByPath(file) :
115590 builderProgram ?
115591 builderProgram.getState().fileInfos.has(file) :
115592 !!ts.find(program, function (rootFile) { return toPath(rootFile) === file; });
115593 }
115594 }
115595 ts.isIgnoredFileFromWildCardWatching = isIgnoredFileFromWildCardWatching;
115596 function isBuilderProgram(program) {

Callers 1

Calls 4

toPathFunction · 0.85
getStateMethod · 0.80
hasMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…