1 write to HasDiagnosticSuppressors
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
380HasDiagnosticSuppressors = this.Analyzers.Any(static a => a is DiagnosticSuppressor);
6 references to HasDiagnosticSuppressors
Microsoft.CodeAnalysis (6)
CommandLine\CommonCompiler.cs (1)
1228if (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; 1015if (!HasDiagnosticSuppressors) 1028!HasDiagnosticSuppressors) 1038Debug.Assert(HasDiagnosticSuppressors);