Skip to content

FSharpMemberOrFunctionOrValue.DeclarationLocation returns wrong location for auto property #16056

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-thinks-issue-fixedArea-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