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

Function buildNextInvalidatedProject

test/fixtures/snapshot/typescript.js:125334–125355  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

125332 state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, 250, state);
125333 }
125334 function buildNextInvalidatedProject(state) {
125335 state.timerToBuildInvalidatedProject = undefined;
125336 if (state.reportFileChangeDetected) {
125337 state.reportFileChangeDetected = false;
125338 state.projectErrorsReported.clear();
125339 reportWatchStatus(state, ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
125340 }
125341 var buildOrder = getBuildOrder(state);
125342 var invalidatedProject = getNextInvalidatedProject(state, buildOrder, /*reportQueue*/ false);
125343 if (invalidatedProject) {
125344 invalidatedProject.done();
125345 if (state.projectPendingBuild.size) {
125346 // Schedule next project for build
125347 if (state.watch && !state.timerToBuildInvalidatedProject) {
125348 scheduleBuildInvalidatedProject(state);
125349 }
125350 return;
125351 }
125352 }
125353 disableCache(state);
125354 reportErrorSummary(state, buildOrder);
125355 }
125356 function watchConfigFile(state, resolved, resolvedPath, parsed) {
125357 if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath))
125358 return;

Callers 1

Calls 8

reportWatchStatusFunction · 0.85
getBuildOrderFunction · 0.85
disableCacheFunction · 0.85
reportErrorSummaryFunction · 0.85
clearMethod · 0.65
doneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…