MCPcopy Create free account
hub / github.com/angular/angular / getDiagnostics

Method getDiagnostics

packages/compiler-cli/src/ngtsc/tsc_plugin.ts:172–177  ·  view source on GitHub ↗
(file?: ts.SourceFile)

Source from the content-addressed store, hash-verified

170 }
171
172 getDiagnostics(file?: ts.SourceFile): ts.Diagnostic[] {
173 if (file === undefined) {
174 return this.compiler.getDiagnostics();
175 }
176 return this.compiler.getDiagnosticsForFile(file, OptimizeFor.WholeProgram);
177 }
178
179 getOptionDiagnostics(): ts.Diagnostic[] {
180 return this.compiler.getOptionDiagnostics();

Callers

nothing calls this directly

Calls 2

getDiagnosticsMethod · 0.65
getDiagnosticsForFileMethod · 0.65

Tested by

no test coverage detected