-
-
Notifications
You must be signed in to change notification settings - Fork 94
Add support for ExpandValueTuple in SymbolDisplayFormat for Roslyn 4.7+ #2827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…7+ to generate valid code for ValueTuples
|
Claude finished @thomhurst's task —— View job Pull Request Review ✅Reviewing PR #2827 that adds ValueTuple support for Roslyn 4.7+. Review Tasks:
Code Quality AnalysisDisplayFormats.cs Changes: ✅ Good Implementation
Test Coverage AnalysisTests.cs: ✅ Adequate Coverage
Technical ReviewPotential Issues: ✅ No Issues Found
Performance: ✅ No Impact
Security: ✅ No Concerns
Detailed AnalysisThe PR addresses an issue where ValueTuple types weren't properly expanded in generated code for Roslyn 4.7+. The fix:
The test case in Recommendations✅ Approve: This is a well-implemented fix that:
Minor Suggestions:
Overall, this is a solid fix that improves the developer experience by generating more readable tuple syntax in source-generated code. |
|
That looks like it worked a treat. Thanks @Brokolis ! |
|
Claude finished @thomhurst's task —— View job Pull Request Review ✅Reviewing PR #2827 that adds ValueTuple support for Roslyn 4.7+. Review Tasks:
Code Quality AnalysisDisplayFormats.cs Changes: ✅ Excellent Implementation
Test Coverage AnalysisTests.cs: ✅ Targeted and Effective
Verified Output Changes: ✅ Confirms Fix Works
Technical ReviewPotential Issues: ✅ No Issues Found
Performance: ✅ No Negative Impact
Security: ✅ No Concerns
Detailed Technical AnalysisThe PR addresses issue #2799 where ValueTuple types weren't properly expanded in generated code for Roslyn 4.7+. Root Cause: Without Solution: Adding Backward Compatibility: Uses conditional compilation to ensure compatibility with older Roslyn versions that don't support this flag. The test case in Recommendations✅ Approve: This is a well-implemented fix that:
Optional Enhancement: Consider adding a comment in Overall Assessment: Excellent implementation that resolves the reported issue cleanly and safely. The generated code will now properly handle ValueTuple scenarios as demonstrated by the author's confirmation that it produces the expected |
Fixes #2799