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

Function createWatchCompilerHostOfConfigFile

test/fixtures/snapshot/typescript.js:123243–123253  ·  view source on GitHub ↗

* Creates the watch compiler host from system for config file in watch mode

(_a)

Source from the content-addressed store, hash-verified

123241 * Creates the watch compiler host from system for config file in watch mode
123242 */
123243 function createWatchCompilerHostOfConfigFile(_a) {
123244 var configFileName = _a.configFileName, optionsToExtend = _a.optionsToExtend, watchOptionsToExtend = _a.watchOptionsToExtend, extraFileExtensions = _a.extraFileExtensions, system = _a.system, createProgram = _a.createProgram, reportDiagnostic = _a.reportDiagnostic, reportWatchStatus = _a.reportWatchStatus;
123245 var diagnosticReporter = reportDiagnostic || createDiagnosticReporter(system);
123246 var host = createWatchCompilerHost(system, createProgram, diagnosticReporter, reportWatchStatus);
123247 host.onUnRecoverableConfigFileDiagnostic = function (diagnostic) { return reportUnrecoverableDiagnostic(system, diagnosticReporter, diagnostic); };
123248 host.configFileName = configFileName;
123249 host.optionsToExtend = optionsToExtend;
123250 host.watchOptionsToExtend = watchOptionsToExtend;
123251 host.extraFileExtensions = extraFileExtensions;
123252 return host;
123253 }
123254 ts.createWatchCompilerHostOfConfigFile = createWatchCompilerHostOfConfigFile;
123255 /**
123256 * Creates the watch compiler host from system for compiling root files and options in watch mode

Callers

nothing calls this directly

Calls 3

createDiagnosticReporterFunction · 0.85
createWatchCompilerHostFunction · 0.85

Tested by

no test coverage detected