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

Function createSolutionBuilderWorker

test/fixtures/snapshot/typescript.js:125436–125458  ·  view source on GitHub ↗
(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions)

Source from the content-addressed store, hash-verified

125434 ts.clearMap(state.allWatchedPackageJsonFiles, function (watchedPacageJsonFiles) { return ts.clearMap(watchedPacageJsonFiles, ts.closeFileWatcher); });
125435 }
125436 function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {
125437 var state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions);
125438 return {
125439 build: function (project, cancellationToken, writeFile, getCustomTransformers) { return build(state, project, cancellationToken, writeFile, getCustomTransformers); },
125440 clean: function (project) { return clean(state, project); },
125441 buildReferences: function (project, cancellationToken, writeFile, getCustomTransformers) { return build(state, project, cancellationToken, writeFile, getCustomTransformers, /*onlyReferences*/ true); },
125442 cleanReferences: function (project) { return clean(state, project, /*onlyReferences*/ true); },
125443 getNextInvalidatedProject: function (cancellationToken) {
125444 setupInitialBuild(state, cancellationToken);
125445 return getNextInvalidatedProject(state, getBuildOrder(state), /*reportQueue*/ false);
125446 },
125447 getBuildOrder: function () { return getBuildOrder(state); },
125448 getUpToDateStatusOfProject: function (project) {
125449 var configFileName = resolveProjectName(state, project);
125450 var configFilePath = toResolvedConfigFilePath(state, configFileName);
125451 return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath);
125452 },
125453 invalidateProject: function (configFilePath, reloadLevel) { return invalidateProject(state, configFilePath, reloadLevel || ts.ConfigFileProgramReloadLevel.None); },
125454 buildNextInvalidatedProject: function () { return buildNextInvalidatedProject(state); },
125455 getAllParsedConfigs: function () { return ts.arrayFrom(ts.mapDefinedIterator(state.configFileCache.values(), function (config) { return isParsedCommandLine(config) ? config : undefined; })); },
125456 close: function () { return stopWatching(state); },
125457 };
125458 }
125459 function relName(state, path) {
125460 return ts.convertToRelativePath(path, state.currentDirectory, function (f) { return state.getCanonicalFileName(f); });
125461 }

Callers 2

createSolutionBuilderFunction · 0.85

Calls 15

setupInitialBuildFunction · 0.85
getBuildOrderFunction · 0.85
resolveProjectNameFunction · 0.85
toResolvedConfigFilePathFunction · 0.85
getUpToDateStatusFunction · 0.85
parseConfigFileFunction · 0.85
invalidateProjectFunction · 0.85
isParsedCommandLineFunction · 0.85
stopWatchingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…