Skip to content

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