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

Classify pattern variables #59735

Merged
merged 5 commits into from
Dec 8, 2022
Merged

Conversation

alrz
Copy link
Contributor

@alrz alrz commented Feb 24, 2022

Fixes #59484

@alrz alrz requested a review from a team as a code owner February 24, 2022 10:38
@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Feb 24, 2022
Copy link
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

@alrz Can you merge the latest main and run this test locally:

[Theory]
[CombinatorialData]
[WorkItem(18956, "https://github.com/dotnet/roslyn/issues/18956")]
public async Task TestVarPattern(TestHost testHost)
{
await TestInMethodAsync(@"
_ = 1 is var x;
",
testHost,
Identifier("_"),
Operators.Equals,
Number("1"),
Keyword("is"),
Keyword("var"),
Identifier("x"),
Punctuation.Semicolon);
}

I think it will fail (Identifier("x") should be Local("x")), then you need to update it.

This test didn't exist when you first opened the PR.

Copy link
Member

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

I don't see an issue here but @CyrusNajmabadi should double check

@alrz
Copy link
Contributor Author

alrz commented Jun 7, 2022

@alrz Can you merge the latest main and run this test locally

Thanks for the pointer. I'll take a look.

@dotnet dotnet deleted a comment from azure-pipelines bot Jun 15, 2022
@dotnet dotnet deleted a comment from azure-pipelines bot Jun 15, 2022
@alrz alrz closed this Jun 16, 2022
@alrz alrz reopened this Jun 16, 2022
@alrz
Copy link
Contributor Author

alrz commented Jun 16, 2022

Failures seem to be unrelated. @CyrusNajmabadi

@alrz
Copy link
Contributor Author

alrz commented Jun 18, 2022

ping @CyrusNajmabadi (looks like one check is still blocking)

@CyrusNajmabadi
Copy link
Member

We're having issues with ci. Likely won't be able to merge until Monday unless someone can fix that.

@alrz alrz closed this Oct 20, 2022
auto-merge was automatically disabled October 20, 2022 16:09

Pull request was closed

@alrz alrz reopened this Oct 20, 2022
@alrz
Copy link
Contributor Author

alrz commented Oct 20, 2022

@CyrusNajmabadi Should I sync this with main? Yeah I do.. Didn't see the conflict on my phone.

# Conflicts:
#	src/EditorFeatures/CSharpTest/Classification/TotalClassifierTests.cs
@alrz

This comment was marked as off-topic.

@alrz
Copy link
Contributor Author

alrz commented Dec 8, 2022

We're having issues with ci. Likely won't be able to merge until Monday unless someone can fix that.

It's been quite a few Mondays since the last time, still not green. :(

@Youssef1313
Copy link
Member

@alrz The current failure is roslyn-integration-corehost which isn't required for merge. It should be okay to merge as is now.

@CyrusNajmabadi Can you merge please?

@CyrusNajmabadi CyrusNajmabadi merged commit 92d2ddd into dotnet:main Dec 8, 2022
@CyrusNajmabadi
Copy link
Member

Thanks!

@ghost ghost added this to the Next milestone Dec 8, 2022
@Cosifne Cosifne modified the milestones: Next, 17.5 P3 Jan 4, 2023
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.

Variables in list, recursive and var patterns are not colorized as local
5 participants