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

Function reportErrorsAndExit

packages/compiler-cli/src/main.ts:202–212  ·  view source on GitHub ↗
(
  allDiagnostics: ReadonlyArray<ts.Diagnostic>,
  options?: api.CompilerOptions,
  consoleError: (s: string) => void = console.error,
)

Source from the content-addressed store, hash-verified

200}
201
202function reportErrorsAndExit(
203 allDiagnostics: ReadonlyArray<ts.Diagnostic>,
204 options?: api.CompilerOptions,
205 consoleError: (s: string) => void = console.error,
206): number {
207 const errorsAndWarnings = allDiagnostics.filter(
208 (d) => d.category !== ts.DiagnosticCategory.Message,
209 );
210 printDiagnostics(errorsAndWarnings, options, consoleError);
211 return exitCodeFromResult(allDiagnostics);
212}
213
214export function watchMode(
215 project: string,

Callers 1

mainFunction · 0.85

Calls 3

exitCodeFromResultFunction · 0.90
printDiagnosticsFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…