GeezerVison is showing github.com — Fix issues about the equality of AnalyzerOptions and FormatterDescriptor by AlanLiu90 · Pull Request #1874 · MessagePack-CSharp/MessagePack-CSharp
Conversation
IncrementalSourceGenerator requires objects can be compared by content, so it can use cached value if nothing changes.
Currently, AnalyzerOptions uses default Equals implementation which doesn't meet the requirement and FormatterDescriptor doesn't compare its all members.
Thie PR fixes these two issues.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks. But if you test it, I think you'll find there is no bug to fix. C# record types come with an override of Equals that is implement with by-value equality semantics!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Ah, I see what you were fixing now. Thanks.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
AArnott
approved these changes
Jul 5, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 4, 2025
This was referenced Nov 3, 2025
This was referenced Dec 2, 2025
This was referenced Jan 28, 2026
This was referenced Feb 20, 2026
This was referenced Nov 9, 2026
This was referenced Nov 16, 2026
This was referenced Nov 23, 2026
Reviewers
AArnott
AArnott approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|