1 write to SuppressedDiagnostic
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\Suppression.cs (1)
20
SuppressedDiagnostic
= suppressedDiagnostic ?? throw new ArgumentNullException(nameof(suppressedDiagnostic));
8 references to SuppressedDiagnostic
Microsoft.CodeAnalysis (8)
Diagnostic\SuppressionInfo.cs (1)
36
Debug.Assert(programmaticSuppressions.All(suppression => id == suppression.
SuppressedDiagnostic
.Id));
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1158
if (!programmaticSuppressionsBuilder.TryGetValue(programmaticSuppression.
SuppressedDiagnostic
, out var array))
1161
programmaticSuppressionsBuilder.Add(programmaticSuppression.
SuppressedDiagnostic
, array);
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1937
if (!ReportedDiagnostics.Contains(suppression.
SuppressedDiagnostic
))
1940
var message = string.Format(CodeAnalysisResources.NonReportedDiagnosticCannotBeSuppressed, suppression.
SuppressedDiagnostic
.Id);
DiagnosticAnalyzer\Suppression.cs (3)
73
&& EqualityComparer<Diagnostic>.Default.Equals(
SuppressedDiagnostic
, other.
SuppressedDiagnostic
);
80
EqualityComparer<Diagnostic>.Default.GetHashCode(
SuppressedDiagnostic
));