Skip to content
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

Fix Generate-Equals for VB when invoked on type header. #59548

Merged
merged 5 commits into from
Feb 15, 2022

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #45919

@@ -28,7 +28,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.LanguageServices
End If

Dim typeStatement = typeBlock.BlockStatement
typeDeclaration = typeStatement
typeDeclaration = typeBlock
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this it the fix. this VB helper doesn't match the rest (like "IsBetweenMembers") and returns teh type statement not the type block.

return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:'(

@CyrusNajmabadi CyrusNajmabadi merged commit a405d25 into dotnet:main Feb 15, 2022
@ghost ghost added this to the Next milestone Feb 15, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the vbGenEquals branch February 18, 2022 20:49
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VB Quick Action, Generate Equal(Object) crashes
4 participants