Skip to content

Field-backed properties: support field references in speculative SemanticModel #75398

@cston

Description

@cston

Support field references in speculative SemanticModel for property accessors, including for auto-properties and partial properties.

This may require public API support to indicate that a statement or expression should be parsed in the context of an accessor, so that field is treated as keyword.

See related tests PropertyFieldKeywordTests.SpeculativeSemanticModel_* in earlier feature branch features/semi-auto-props.

See also #75904 (comment).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions