-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Refact select fix foreach & PullMemberUp #36729
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
src/Features/CSharp/Portable/ConvertLinq/CSharpConvertLinqQueryToForEachProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/ConvertLinq/CSharpConvertLinqQueryToForEachProvider.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Shared/Extensions/SyntaxTreeExtensions.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Shared/Extensions/SyntaxTreeExtensions.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Shared/Extensions/SyntaxTreeExtensions.cs
Outdated
Show resolved
Hide resolved
|
I see how the helpers aren't syntax facts but they're sort of something similar so I could imagine them being in "similar" thing. They can't be in RefactoringHelpers directly because that one doesn't reference language spacific packages and the helpers need language specific SyntaxNode types. And I doubt we want to create new dependency just for that. PS: I know we wanted to do one refactoring at a time but both of these changed the surface of the helper so I didn't see the benefit of doing one review and then reworking what has been reviewed. |
68f192d to
9f17237
Compare
|
Ok, so I've moved the PullMemberUp to the new helper which required some changes but I feel like now it's way more robust while not being all that much more complex. I'll look into moving the stuff to to a ILanguageService now. |
src/Features/Core/Portable/CodeRefactorings/IRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/CSharp/Portable/CodeRefactorings/CSharpRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
|
Moved to ILanguageService, please review |
src/Features/Core/Portable/ConvertLinq/AbstractConvertLinqQueryToForEachProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/RefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/IRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/CSharp/Portable/ConvertLinq/CSharpConvertLinqQueryToForEachProvider.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
|
Done with review. Notes:
Cheers! |
...s/CSharp/Portable/CodeRefactorings/PullMemberUp/CSharpPullMemberUpCodeRefactoringProvider.cs
Show resolved
Hide resolved
13b9423 to
59a78d7
Compare
|
Added docs, ready to merge. |
FWIW, this completely breaks my review flow. Can you avoid force-pushing until you merge? |
|
Yep sure, it's a bad habit anyway. |
src/Features/CSharp/Portable/CodeRefactorings/CSharpRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Outdated
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/IRefactoringHelpersService.cs
Show resolved
Hide resolved
src/Features/Core/Portable/CodeRefactorings/AbstractRefactoringHelpersService.cs
Show resolved
Hide resolved
CyrusNajmabadi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nits.
Approve
Submit feedback approving these changes.
|
Woohoo! Awesome job :) |
Further work on #35180
Based on #36592 that can't be merged due to conflicts described in #36697.
Only the last commit is new.