Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

AlanLiu90
Copy link
Contributor

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.

@AArnott
Copy link
Collaborator

AArnott commented Jul 5, 2024

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!

@AArnott AArnott closed this Jul 5, 2024
@AArnott
Copy link
Collaborator

AArnott commented Jul 5, 2024

Ah, I see what you were fixing now. Thanks.

@AArnott AArnott reopened this Jul 5, 2024
AArnott
AArnott approved these changes Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants