(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions)
| 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 | } |
no test coverage detected
searching dependent graphs…