Skip to content

Update SA1504 to handle expression-bodied accessors #2402

Open
@sharwell

Description

@sharwell

I left out this update during the work on #2395. Currently expression-bodied accessors are treated the same way as auto-properties (both have a SemicolonToken), which means no diagnostics are ever reported. There are many edge cases to implement and test related to mixing and matching expression-bodied and full accessor syntax, where each can be either single- or multi-line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions