2 writes to DiagnosticId
Microsoft.DotNet.ApiCompatibility (2)
Logging\Suppression.cs (2)
39DiagnosticId = string.Empty; 48DiagnosticId = diagnosticId;
12 references to DiagnosticId
Microsoft.DotNet.ApiCompatibility (11)
Logging\Suppression.cs (6)
17/// The target of where to suppress the <see cref="DiagnosticId"/> 69public bool ShouldSerializeDiagnosticId() => DiagnosticId != string.Empty; 78AreEqual(DiagnosticId, other.DiagnosticId) && 92hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(DiagnosticId.ToLowerInvariant()); 108stringBuilder.Append(DiagnosticId);
Logging\SuppressionEngine.cs (5)
55if (_noWarn.Contains(error.DiagnosticId) || _suppressions.Contains(error)) 67if (error.DiagnosticId.StartsWith("cp", StringComparison.InvariantCultureIgnoreCase)) 70Suppression globalTargetSuppression = new(error.DiagnosticId, error.Target, isBaselineSuppression: error.IsBaselineSuppression); 76Suppression 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>