Fix parsing of lambda parameter named "scoped"#64085
Conversation
Yes, it's fixed, except the last of my tests ( (scoped scoped) => { }The tree also does not contain N(SyntaxKind.ParenthesizedLambdaExpression);
{
N(SyntaxKind.ParameterList);
{
N(SyntaxKind.OpenParenToken);
N(SyntaxKind.Parameter);
{
N(SyntaxKind.IdentifierName);
{
N(SyntaxKind.IdentifierToken, "scoped");
}
N(SyntaxKind.IdentifierToken, "scoped");
}
N(SyntaxKind.CloseParenToken);
}
N(SyntaxKind.EqualsGreaterThanToken);
N(SyntaxKind.Block);
{
N(SyntaxKind.OpenBraceToken);
N(SyntaxKind.CloseBraceToken);
}
}
EOF();Also feel free to just copy my tests into your branch and close this PR if that would be simpler. |
This matches my expectations and the syntax tree looks good to me a s well. |
AlekseyTs
left a comment
There was a problem hiding this comment.
LGTM (commit 4). This is a test only change, this means it can be merged with a single sign-off. Please squash commits and adjust the comment to accurately reflect the nature of the change (an addition of tests) while merging.
Fixes #63469