1 write to Descriptor
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\Suppression.cs (1)
19
Descriptor
= descriptor ?? throw new ArgumentNullException(nameof(descriptor));
11 references to Descriptor
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.cs (2)
567
var suppressionDiag = new SuppressionDiagnostic(diag, suppression.
Descriptor
.Id, suppression.
Descriptor
.Justification);
CommandLine\SarifV2ErrorLogger.cs (3)
90
.OrderBy(suppression => suppression.
Descriptor
.Id)
91
.Select(suppression => $"Suppression Id: {suppression.
Descriptor
.Id}, Suppression Justification: {suppression.
Descriptor
.Justification}")
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
1944
if (!_isSupportedSuppressionDescriptor(suppression.
Descriptor
))
1947
var message = string.Format(CodeAnalysisResources.UnsupportedSuppressionReported, suppression.
Descriptor
.Id);
1951
if (suppression.
Descriptor
.IsDisabled(Compilation.Options))
DiagnosticAnalyzer\Suppression.cs (3)
72
return EqualityComparer<SuppressionDescriptor>.Default.Equals(
Descriptor
, other.
Descriptor
)
79
EqualityComparer<SuppressionDescriptor>.Default.GetHashCode(
Descriptor
),