MCPcopy Create free account
hub / github.com/angular/components / formatDiagnostics

Function formatDiagnostics

src/cdk/schematics/update-tool/utils/diagnostics.ts:14–17  ·  view source on GitHub ↗
(diagnostics: ts.Diagnostic[], fileSystem: FileSystem)

Source from the content-addressed store, hash-verified

12
13/** Formats the specified diagnostics with respect to the given file system. */
14export function formatDiagnostics(diagnostics: ts.Diagnostic[], fileSystem: FileSystem): string {
15 const formatHost = createFormatDiagnosticHost(fileSystem);
16 return ts.formatDiagnosticsWithColorAndContext(diagnostics, formatHost);
17}

Callers 1

parseTsconfigFileFunction · 0.90

Calls 1

Tested by

no test coverage detected