Skip to content

Add embedded classification for field initializers#61522

Merged
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:regexFieldClassification
May 26, 2022
Merged

Add embedded classification for field initializers#61522
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:regexFieldClassification

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Reported by @stephentoub

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 26, 2022 01:48
@ghost ghost added the Area-IDE label May 26, 2022
@stephentoub
Copy link
Copy Markdown
Member

Thanks :)

Copy link
Copy Markdown
Member

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Is the following already supported?

[StringSyntax("regex")]
private string goo;

void M()
{
    goo = "\d";
}

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@davidwengier Yup! Suppoted and tested. THat's actually the initial case that worked. This is expanding things to the field/prop level as stephen was refactoring to that.

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge May 26, 2022 02:29
@CyrusNajmabadi CyrusNajmabadi merged commit 254d2aa into dotnet:main May 26, 2022
@ghost ghost added this to the Next milestone May 26, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the regexFieldClassification branch May 26, 2022 05:30
@Cosifne Cosifne modified the milestones: Next, 17.3 P2 May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants