2 writes to DiagnosticId
Microsoft.DotNet.ApiCompatibility (2)
Logging\Suppression.cs (2)
39
DiagnosticId
= string.Empty;
48
DiagnosticId
= diagnosticId;
12 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)
55
if (_noWarn.Contains(error.
DiagnosticId
) || _suppressions.Contains(error))
67
if (error.
DiagnosticId
.StartsWith("cp", StringComparison.InvariantCultureIgnoreCase))
70
Suppression globalTargetSuppression = new(error.
DiagnosticId
, error.Target, isBaselineSuppression: error.IsBaselineSuppression);
76
Suppression globalDiagnosticIdLeftRightSuppression = new(error.
DiagnosticId
, left: error.Left, right: error.Right, isBaselineSuppression: error.IsBaselineSuppression);
126
.OrderBy(suppression => suppression.
DiagnosticId
)
Microsoft.DotNet.ApiCompatibility.Tests (1)
Logging\SuppressionEngineTests.cs (1)
117
<DiagnosticId>{usedSuppression.
DiagnosticId
}</DiagnosticId>