Fix EventHookupCommandHandler for top-level statements#50726
Closed
Youssef1313 wants to merge 7 commits intodotnet:mainfrom
Closed
Fix EventHookupCommandHandler for top-level statements#50726Youssef1313 wants to merge 7 commits intodotnet:mainfrom
Youssef1313 wants to merge 7 commits intodotnet:mainfrom
Conversation
Member
Author
|
I'm going to close for now and will re-open in case I could fix it. The issue #44425 seems very related. When the following part is fixed to have the GlobalStatementSyntax when there is no ancestor of type TypeDeclarationSyntax, the code should go to the path in #44425. However, my preference is to have any method generation process relying on the same code path. For example, ExtractMethod feature was fixed to support top-level statements. But this one doesn't depend on the same API. Unless there is a good reason for this separation, depending on a single API for this process is much more maintainable. |
Youssef1313
commented
Jan 24, 2021
src/EditorFeatures/CSharpTest/EventHookup/EventHookupCommandHandlerTests.cs
Show resolved
Hide resolved
Youssef1313
commented
Jan 24, 2021
src/EditorFeatures/CSharpTest/EventHookup/EventHookupCommandHandlerTests.cs
Outdated
Show resolved
Hide resolved
Member
Author
|
@sharwell or @CyrusNajmabadi for small fix |
Member
Author
|
Already fixed in #58475. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #49325