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

Function nextSourceFileVersion

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

Source from the content-addressed store, hash-verified

123646 return hostSourceFile.sourceFile;
123647 }
123648 function nextSourceFileVersion(path) {
123649 var hostSourceFile = sourceFilesCache.get(path);
123650 if (hostSourceFile !== undefined) {
123651 if (isFileMissingOnHost(hostSourceFile)) {
123652 // The next version, lets set it as presence unknown file
123653 sourceFilesCache.set(path, { version: false });
123654 }
123655 else {
123656 hostSourceFile.version = false;
123657 }
123658 }
123659 }
123660 function getSourceVersion(path) {
123661 var hostSourceFile = sourceFilesCache.get(path);
123662 return !hostSourceFile || !hostSourceFile.version ? undefined : hostSourceFile.version;

Callers 4

onSourceFileChangeFunction · 0.85
onMissingFileChangeFunction · 0.85
watchWildcardDirectoryFunction · 0.85
watchReferencedProjectFunction · 0.85

Calls 3

isFileMissingOnHostFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…