DiagnosticFilter Delegate

Decides whether a diagnostic can be reported by a DiagnosticReporter.

internal delegate bool DiagnosticFilter(Diagnostic diagnostic, AnalyzerOptions options, CancellationToken cancellationToken)

Parameters

diagnostic Diagnostic
The diagnostic about to be reported. diagnostic.Descriptor and diagnostic.Location.SourceTree give access to the descriptor and the syntax tree.
options AnalyzerOptions
The analyzer options of the context the diagnostic is reported from.
cancellationToken CancellationToken
The cancellation token of the context the diagnostic is reported from.