File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
61
61
62
62
return Execute . GetInfo ( typeSymbol , interfaceSymbols ) ;
63
63
} )
64
- . Where ( static item => item is not null ) !
65
- . WithComparer ( RecipientInfo . Comparer . Default ) ;
64
+ . Where ( static item => item is not null ) ! ;
66
65
67
66
// Check whether the header file is needed
68
67
IncrementalValueProvider < bool > isHeaderFileNeeded =
Original file line number Diff line number Diff line change @@ -22,10 +22,16 @@ internal sealed record RecipientInfo(
22
22
string TypeName ,
23
23
ImmutableArray < string > MessageTypes )
24
24
{
25
+ /// <inheritdoc/>
26
+ public bool Equals ( RecipientInfo ? obj ) => Comparer . Default . Equals ( this , obj ) ;
27
+
28
+ /// <inheritdoc/>
29
+ public override int GetHashCode ( ) => Comparer . Default . GetHashCode ( this ) ;
30
+
25
31
/// <summary>
26
32
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="RecipientInfo"/>.
27
33
/// </summary>
28
- public sealed class Comparer : Comparer < RecipientInfo , Comparer >
34
+ private sealed class Comparer : Comparer < RecipientInfo , Comparer >
29
35
{
30
36
/// <inheritdoc/>
31
37
protected override void AddToHashCode ( ref HashCode hashCode , RecipientInfo obj )
You can’t perform that action at this time.
0 commit comments