-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 completion lists in primary constructor parameter lists #75266
Fix completion lists in primary constructor parameter lists #75266
Conversation
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.
@@ -1095,10 +1096,10 @@ token.Parent is ParameterListSyntax parameterList && | |||
if (token.IsKind(SyntaxKind.CloseBracketToken) && | |||
token.Parent.IsKind(SyntaxKind.AttributeList) && | |||
token.Parent.Parent is ParameterSyntax parameter2 && |
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.
token.Parent.Parent is ParameterSyntax parameter2 && | |
token.Parent.Parent is ParameterSyntax parameter3 && |
@@ -1095,10 +1096,10 @@ token.Parent is ParameterListSyntax parameterList && | |||
if (token.IsKind(SyntaxKind.CloseBracketToken) && | |||
token.Parent.IsKind(SyntaxKind.AttributeList) && | |||
token.Parent.Parent is ParameterSyntax parameter2 && | |||
parameter2.Parent is ParameterListSyntax parameterList2 && | |||
parameterList2.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) | |||
parameter2.Parent is ParameterListSyntax parameterList3 && |
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.
parameter2.Parent is ParameterListSyntax parameterList3 && | |
parameter3.Parent is ParameterListSyntax parameterList3 && |
{ | ||
parameterIndex = parameterList2.Parameters.IndexOf(parameter2); | ||
parameterIndex = parameterList3.Parameters.IndexOf(parameter2); |
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.
parameterIndex = parameterList3.Parameters.IndexOf(parameter2); | |
parameterIndex = parameterList3.Parameters.IndexOf(parameter3); |
Fixes #73120