MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / createWatchOfFilesAndCompilerOptions

Function createWatchOfFilesAndCompilerOptions

src/tstl.ts:144–156  ·  view source on GitHub ↗
(rootFiles: string[], options: tstl.CompilerOptions)

Source from the content-addressed store, hash-verified

142}
143
144function createWatchOfFilesAndCompilerOptions(rootFiles: string[], options: tstl.CompilerOptions): void {
145 const watchCompilerHost = ts.createWatchCompilerHost(
146 rootFiles,
147 options,
148 ts.sys,
149 ts.createSemanticDiagnosticsBuilderProgram,
150 undefined,
151 createWatchStatusReporter(options)
152 );
153
154 updateWatchCompilationHost(watchCompilerHost, options);
155 ts.createWatchProgram(watchCompilerHost);
156}
157
158function updateWatchCompilationHost(
159 host: ts.WatchCompilerHost<ts.SemanticDiagnosticsBuilderProgram>,

Callers 1

executeCommandLineFunction · 0.85

Calls 2

Tested by

no test coverage detected