Skip to content

Review c# 10 feature: extended property patterns #159

Open

Description

@bjornhellander

Review how the analyzers and code fixes handle extended property patterns, e.g. { Prop.Nested: 1 }.
See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/patterns#1126-property-pattern

Things to check:

  • SA1101: the members in the pattern must not get a this. prefix.
  • Spacing around . and : in the pattern (SA1019, SA1024).
  • Rules that inspect property subpatterns via SubpatternSyntax: C# 10 adds ExpressionColon next to NameColon, which may need lightup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions