Skip to content

FSharpMemberOrFunctionOrValue.DeclarationLocation returns wrong location for auto property #16056

Open
@auduchinok

Description

@auduchinok

Consider this example:

module Module

type T() =
    member val Prop int = 1 with get, set

T().Prop

Get GetAllUsesOfAllSymbolsInFile and find the symbol for the Prop usage on the last line. This symbol reports get range as its declaration range instead of Prop range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-ServiceVarious compiler service issues which do not belong to other labels/areas.BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.Regression

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions