1 write to HasDiagnosticSuppressors
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
380
HasDiagnosticSuppressors
= this.Analyzers.Any(static a => a is DiagnosticSuppressor);
6 references to HasDiagnosticSuppressors
Microsoft.CodeAnalysis (6)
CommandLine\CommonCompiler.cs (1)
1228
if (analyzerDriver == null || !analyzerDriver.
HasDiagnosticSuppressors
|| !HasSuppressableWarningsOrErrors(diagnostics))
DiagnosticAnalyzer\AnalyzerDriver.cs (5)
381
_programmaticSuppressions =
HasDiagnosticSuppressors
? new ConcurrentSet<Suppression>() : null;
382
_diagnosticsProcessedForProgrammaticSuppressions =
HasDiagnosticSuppressors
? new ConcurrentSet<Diagnostic>(ReferenceEqualityComparer.Instance) : null;
1015
if (!
HasDiagnosticSuppressors
)
1028
!
HasDiagnosticSuppressors
)
1038
Debug.Assert(
HasDiagnosticSuppressors
);