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

Function setupInitialBuild

test/fixtures/snapshot/typescript.js:124425–124440  ·  view source on GitHub ↗
(state, cancellationToken)

Source from the content-addressed store, hash-verified

124423 }
124424 }
124425 function setupInitialBuild(state, cancellationToken) {
124426 // Set initial build if not already built
124427 if (!state.allProjectBuildPending)
124428 return;
124429 state.allProjectBuildPending = false;
124430 if (state.options.watch)
124431 reportWatchStatus(state, ts.Diagnostics.Starting_compilation_in_watch_mode);
124432 enableCache(state);
124433 var buildOrder = getBuildOrderFromAnyBuildOrder(getBuildOrder(state));
124434 buildOrder.forEach(function (configFileName) {
124435 return state.projectPendingBuild.set(toResolvedConfigFilePath(state, configFileName), ts.ConfigFileProgramReloadLevel.None);
124436 });
124437 if (cancellationToken) {
124438 cancellationToken.throwIfCancellationRequested();
124439 }
124440 }
124441 var InvalidatedProjectKind;
124442 (function (InvalidatedProjectKind) {
124443 InvalidatedProjectKind[InvalidatedProjectKind["Build"] = 0] = "Build";

Callers 2

buildFunction · 0.85

Calls 7

reportWatchStatusFunction · 0.85
enableCacheFunction · 0.85
getBuildOrderFunction · 0.85
toResolvedConfigFilePathFunction · 0.85
forEachMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…