DiagnosticFilter Delegate
Decides whether a diagnostic can be reported by a DiagnosticReporter.
internal delegate bool DiagnosticFilter(Diagnostic diagnostic, AnalyzerOptions options, CancellationToken cancellationToken)Parameters
diagnosticDiagnostic- The diagnostic about to be reported.
diagnostic.Descriptoranddiagnostic.Location.SourceTreegive access to the descriptor and the syntax tree. optionsAnalyzerOptions- The analyzer options of the context the diagnostic is reported from.
cancellationTokenCancellationToken- The cancellation token of the context the diagnostic is reported from.