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

Function printDiagnostics

packages/compiler-cli/src/main.ts:231–241  ·  view source on GitHub ↗
(
  diagnostics: ReadonlyArray<ts.Diagnostic>,
  options: api.CompilerOptions | undefined,
  consoleError: (s: string) => void,
)

Source from the content-addressed store, hash-verified

229}
230
231function printDiagnostics(
232 diagnostics: ReadonlyArray<ts.Diagnostic>,
233 options: api.CompilerOptions | undefined,
234 consoleError: (s: string) => void,
235): void {
236 if (diagnostics.length === 0) {
237 return;
238 }
239 const formatHost = getFormatDiagnosticsHost(options);
240 consoleError(formatDiagnostics(diagnostics, formatHost));
241}

Callers 2

reportErrorsAndExitFunction · 0.85
watchModeFunction · 0.85

Calls 2

formatDiagnosticsFunction · 0.90
getFormatDiagnosticsHostFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…