compiler-plugin / arrow.meta.dsl.analysis / AnalysisSyntax / suppressDiagnostic

suppressDiagnostic

open fun suppressDiagnostic(f: (Diagnostic) -> Boolean): ExtensionPhase

The suppressDiagnostic function allows selectively determining whether a diagnostic emitted by the compiler affects compilation. As the compiler performs resolution, it will generate diagnostic of type Diagnostic with different Severity levels: Severity.INFO, Severity.ERROR, and Severity.WARNING. When the suppressDiagnostic returns true, the emitted diagnostic is suppressed and removed from the BindingTrace. This will cause the Diagnostic to not be considered in further compilation phases.

Do you like Arrow?

Arrow Org
<