Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSharpMemberOrFunctionOrValue.DeclarationLocation returns wrong location for auto property #16056

Open
auduchinok opened this issue Sep 27, 2023 · 1 comment
Labels
Area-Compiler-Service Various compiler service issues which do not belong to other labels/areas. Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Regression
Milestone

Comments

@auduchinok
Copy link
Member

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.

@github-actions github-actions bot added this to the Backlog milestone Sep 27, 2023
@0101 0101 added Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Area-Compiler-Service Various compiler service issues which do not belong to other labels/areas. and removed Needs-Triage labels Oct 2, 2023
@auduchinok
Copy link
Member Author

This seems to have regressed in #15589.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compiler-Service Various compiler service issues which do not belong to other labels/areas. Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Regression
Projects
None yet
Development

No branches or pull requests

2 participants