47 references to DifferenceType
Microsoft.DotNet.ApiCompatibility (47)
CompatDifference.cs (10)
16
/// <param name="type"><see cref="
DifferenceType
"/> to describe the type of the difference.</param>
19
public readonly struct CompatDifference(MetadataInformation left, MetadataInformation right, string diagnosticId, string message,
DifferenceType
type, string? memberId, DifferenceSeverity severity) : IDiagnostic, IEquatable<CompatDifference>
25
/// The <see cref="
DifferenceType
"/>.
27
public
DifferenceType
Type { get; } = type;
61
/// <param name="type"><see cref="
DifferenceType
"/> to describe the type of the difference.</param>
63
public CompatDifference(MetadataInformation left, MetadataInformation right, string diagnosticId, string message,
DifferenceType
type, string? memberId)
75
/// <param name="type"><see cref="
DifferenceType
"/> to describe the type of the difference.</param>
77
public CompatDifference(MetadataInformation left, MetadataInformation right, string diagnosticId, string message,
DifferenceType
type, ISymbol member)
88
private CompatDifference(MetadataInformation left, MetadataInformation right, string diagnosticId, string message,
DifferenceType
type, string? memberId, DifferenceSeverity severity, ApiStability? leftStability, ApiStability? rightStability)
98
public static CompatDifference CreateWithDefaultMetadata(string diagnosticId, string message,
DifferenceType
type, string? memberId) =>
Rules\AssemblyIdentityMustMatch.cs (3)
47
DifferenceType
.Removed,
66
DifferenceType
.Added,
180
DifferenceType
.Changed,
Rules\AttributesMustMatch.cs (12)
27
DifferenceType
dt,
34
if (!_settings.StrictMode && dt ==
DifferenceType
.Added)
42
DifferenceType
.Changed => new CompatDifference(
47
DifferenceType
.Changed,
49
DifferenceType
.Added => new CompatDifference(
54
DifferenceType
.Added,
56
DifferenceType
.Removed => new CompatDifference(
61
DifferenceType
.Removed,
125
AddDifference(differences,
DifferenceType
.Changed, leftMetadata, rightMetadata, leftContaining, itemRef, leftAttribute);
142
AddDifference(differences,
DifferenceType
.Changed, leftMetadata, rightMetadata, leftContaining, itemRef, rightGroup.Attributes[i]);
164
AddDifference(differences,
DifferenceType
.Removed, leftMetadata, rightMetadata, leftContaining, itemRef, leftAttribute);
192
AddDifference(differences,
DifferenceType
.Added, leftMetadata, rightMetadata, leftContaining, itemRef, rightAttribute);
Rules\CannotAddAbstractMember.cs (1)
41
DifferenceType
.Added,
Rules\CannotAddMemberToInterface.cs (1)
44
DifferenceType
.Added,
Rules\CannotAddOrRemoveVirtualKeyword.cs (4)
43
DifferenceType
.Added,
67
DifferenceType
.Removed,
85
DifferenceType
.Added,
100
DifferenceType
.Removed,
Rules\CannotChangeGenericConstraints.cs (2)
113
DifferenceType
.Added,
135
DifferenceType
.Removed,
Rules\CannotChangeParameterName.cs (1)
45
DifferenceType
.Changed,
Rules\CannotChangeVisibility.cs (2)
79
DifferenceType
.Changed,
88
DifferenceType
.Changed,
Rules\CannotRemoveBaseTypeOrInterface.cs (2)
67
DifferenceType
.Changed,
91
DifferenceType
.Changed,
Rules\CannotSealType.cs (2)
38
DifferenceType
.Changed,
48
DifferenceType
.Changed,
Rules\EnumsMustMatch.cs (2)
49
DifferenceType
.Changed,
81
DifferenceType
.Changed,
Rules\ExperimentalApiBecomesStable.cs (1)
72
DifferenceType
.Changed,
Rules\MembersMustExist.cs (4)
42
DifferenceType
.Removed,
52
DifferenceType
.Added,
71
DifferenceType
.Removed,
84
DifferenceType
.Added,