We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfd23f commit 78b6af1Copy full SHA for 78b6af1
src/Workspaces/VisualBasic/Portable/CaseCorrection/VisualBasicCaseCorrectionService.Rewriter.vb
@@ -126,8 +126,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CaseCorrection
126
End If
127
Else
128
' Named tuple expression
129
- Dim simpleArgument = token.GetAncestor(Of SimpleArgumentSyntax)()
130
- If simpleArgument IsNot Nothing AndAlso TypeOf simpleArgument.Parent Is TupleExpressionSyntax AndAlso simpleArgument.NameColonEquals?.Name.Identifier = token Then
+ Dim nameColonEquals = TryCast(token.Parent?.Parent, NameColonEqualsSyntax)
+ If nameColonEquals IsNot Nothing AndAlso TypeOf nameColonEquals.Parent?.Parent Is TupleExpressionSyntax Then
131
Return newToken
132
133
0 commit comments