Skip to content

Fixing when keyword recommender in recursive patterns branch #2#30870

Merged
gafter merged 3 commits intodotnet:features/recursive-patternsfrom
Neme12:varPatternWhenRecommender
Nov 6, 2018
Merged

Fixing when keyword recommender in recursive patterns branch #2#30870
gafter merged 3 commits intodotnet:features/recursive-patternsfrom
Neme12:varPatternWhenRecommender

Conversation

@Neme12
Copy link
Contributor

@Neme12 Neme12 commented Oct 31, 2018

Fixes #30848

cc @gafter

@Neme12 Neme12 requested a review from a team as a code owner October 31, 2018 20:07
}");

[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestForSwitchCase_SemanticCheck_AfterTypeAliasAndFieldConstantVar() =>
Copy link
Contributor Author

@Neme12 Neme12 Oct 31, 2018

Choose a reason for hiding this comment

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

This is not new behavior, it worked before the tests were skipped. Just adding an extra test case.

}");

[Fact(Skip = "https://github.com/dotnet/roslyn/issues/30848"), Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
Copy link
Contributor Author

@Neme12 Neme12 Oct 31, 2018

Choose a reason for hiding this comment

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

This is not new behavior, it worked before the tests were skipped. Just adding an extra test case because things that used to be handled by one code path are now split into 2 branches, so I'm doing this to preserve code coverage.

@Neme12
Copy link
Contributor Author

Neme12 commented Oct 31, 2018

@dpoeschl Would you please review this?

@CyrusNajmabadi
Copy link
Contributor

if (!(expression is TypeSyntax typeSyntax))
bool isVar;
ImmutableArray<ISymbol> symbols;
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it woudl be worth documenting these.

bool isVar;
ImmutableArray<ISymbol> symbols;

if (nodeOrToken.IsNode)
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it woudl be worth documenting which cases each part of the if is trying to handle.

Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

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

LGTM. But would prefer style be consistent with teh rest of the IDE, as well as some explanatory comments for the different cases being handle.d THanks!

@CyrusNajmabadi
Copy link
Contributor

@jinujoseph can this get an IDE buddy? Thanks!

@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Oct 31, 2018
@Neme12 Neme12 closed this Oct 31, 2018
@Neme12 Neme12 reopened this Oct 31, 2018
@Neme12
Copy link
Contributor Author

Neme12 commented Nov 1, 2018

retest windows_debug_vs-integration_prtest please

@gafter gafter merged commit 69c39ed into dotnet:features/recursive-patterns Nov 6, 2018
@gafter
Copy link
Member

gafter commented Nov 6, 2018

@Neme12 Thank you!!!!!

@Neme12 Neme12 deleted the varPatternWhenRecommender branch November 6, 2018 18:21
@TessenR TessenR mentioned this pull request Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants