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

Include paren pattern range in tuple simple pat #10162

Merged
merged 1 commit into from
Sep 20, 2020

Conversation

auduchinok
Copy link
Member

@auduchinok auduchinok commented Sep 20, 2020

For tuple patterns like the following, include parens in lambda SimplePat range.

fun (a, b) -> ()

@cartermp
Copy link
Contributor

I don't have any issues with this, but what was the motivation?

@auduchinok
Copy link
Member Author

We use these ranges across the tree, and in this particular case parens were outside of top level lambda pattern range, effectively making it not possible to reason about parens as a part of the pattern.

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

Thanks!

@cartermp cartermp merged commit 120f1e8 into dotnet:main Sep 20, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants