Delen via


DiagnosticSuppressor.ReportSuppressions(SuppressionAnalysisContext) Method

Definition

Suppress analyzer and/or compiler non-error diagnostics reported for the compilation. This may be a subset of the full set of reported diagnostics, as an optimization for supporting incremental and partial analysis scenarios. A diagnostic is considered suppressible by a DiagnosticSuppressor if all of the following conditions are met: 1. Diagnostic is not already suppressed in source via pragma/suppress message attribute. 2. Diagnostic's DefaultSeverity is not Error. 3. Diagnostic is not tagged with NotConfigurable custom tag.

public abstract void ReportSuppressions (Microsoft.CodeAnalysis.Diagnostics.SuppressionAnalysisContext context);
abstract member ReportSuppressions : Microsoft.CodeAnalysis.Diagnostics.SuppressionAnalysisContext -> unit
Public MustOverride Sub ReportSuppressions (context As SuppressionAnalysisContext)

Parameters

Applies to