MCPcopy Index your code
hub / github.com/angular/angular / watchMode

Function watchMode

packages/compiler-cli/src/main.ts:214–229  ·  view source on GitHub ↗
(
  project: string,
  options: api.CompilerOptions,
  consoleError: (s: string) => void,
)

Source from the content-addressed store, hash-verified

212}
213
214export function watchMode(
215 project: string,
216 options: api.CompilerOptions,
217 consoleError: (s: string) => void,
218) {
219 return performWatchCompilation(
220 createPerformWatchHost(
221 project,
222 (diagnostics) => {
223 printDiagnostics(diagnostics, options, consoleError);
224 },
225 options,
226 undefined,
227 ),
228 );
229}
230
231function printDiagnostics(
232 diagnostics: ReadonlyArray<ts.Diagnostic>,

Callers 1

mainFunction · 0.85

Calls 3

performWatchCompilationFunction · 0.90
createPerformWatchHostFunction · 0.90
printDiagnosticsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…