2 writes to DiagnosticId
Microsoft.DotNet.ApiCompatibility (2)
Logging\Suppression.cs (2)
39
DiagnosticId
= string.Empty;
48
DiagnosticId
= diagnosticId;
11 references to DiagnosticId
Microsoft.DotNet.ApiCompatibility (11)
Logging\Suppression.cs (6)
17
/// The target of where to suppress the <see cref="
DiagnosticId
"/>
69
public bool ShouldSerializeDiagnosticId() =>
DiagnosticId
!= string.Empty;
78
AreEqual(
DiagnosticId
, other.
DiagnosticId
) &&
92
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(
DiagnosticId
.ToLowerInvariant());
108
stringBuilder.Append(
DiagnosticId
);
Logging\SuppressionEngine.cs (5)
56
if (_noWarn.Contains(error.
DiagnosticId
) || _suppressions.Contains(error))
68
if (error.
DiagnosticId
.StartsWith("cp", StringComparison.InvariantCultureIgnoreCase))
71
Suppression globalTargetSuppression = new(error.
DiagnosticId
, error.Target, isBaselineSuppression: error.IsBaselineSuppression);
77
Suppression globalDiagnosticIdLeftRightSuppression = new(error.
DiagnosticId
, left: error.Left, right: error.Right, isBaselineSuppression: error.IsBaselineSuppression);
127
.OrderBy(suppression => suppression.
DiagnosticId
)