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

Disable extract method on pattern matching features #9251

Merged
merged 1 commit into from
Feb 28, 2016

Conversation

jaredpar
Copy link
Member

This addresses #9104 in the following ways:

In order to fill in the data flow gaps I used commit 9d36a64 as a guide. This change removed declaration expressions from the code base and hence gave a good outline of where data flow would be affected by pattern declaration expressions.

closes #9104

This addresses dotnet#9104 in the following ways:

- Fixes the gaps in data flow analysis that were causing the original assert in the bug.
- Disables extract method on pattern matching for now.  Filed dotnet#9244 to design scenarios here.

In order to fill in the data flow gaps I used commit 9d36a64 as a guide.  This change removed declaration expressions from the code base and hence gave a good outline of where data flow would be affected by pattern declaration expressions.

closes dotnet#9104
@jaredpar
Copy link
Member Author

CC @gafter, @AlekseyTs, @CyrusNajmabadi

@CyrusNajmabadi
Copy link
Member

👍 For the IDE parts.

@gafter
Copy link
Member

gafter commented Feb 27, 2016

Compiler parts look good.

@balajikris
Copy link
Member

👍 for Extract Method changes.

@gafter
Copy link
Member

gafter commented Feb 28, 2016

I think that ultimately this behavior should fall out of the standard definite assignment rules for pattern-matching - pattern variables are assigned inside, but not always assigned inside. The fact that it did not work that way out of the box suggests that the region analysis code isn't properly handling the situation.

I'll open an issue for it.

jaredpar added a commit that referenced this pull request Feb 28, 2016
Disable extract method on pattern matching features
@jaredpar jaredpar merged commit 61c4a5b into dotnet:features/patterns Feb 28, 2016
@jaredpar jaredpar deleted the fix-9104 branch August 21, 2018 15:05
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.

5 participants