* Creates the watch compiler host from system for config file in watch mode
(_a)
| 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 |
nothing calls this directly
no test coverage detected