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

Remove capturing lambdas from the language parser. #39829

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

333fred
Copy link
Member

@333fred 333fred commented Nov 14, 2019

While working on function pointers parsing, I noticed a few lambdas in the LanguageParser that cannot be cached because they're not making use the parser passed as a parameter. This is a small update to make them use the parameter and cacheable instead. @dotnet/roslyn-compiler for a very quick review.

@333fred 333fred requested a review from a team November 14, 2019 18:55
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (iteration 1)

@333fred 333fred merged commit 69e2c2b into dotnet:master Nov 14, 2019
@333fred 333fred deleted the parser-captures branch November 14, 2019 21:01
Copy link
Member

@jaredpar jaredpar left a comment

Choose a reason for hiding this comment

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

Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants