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

No references found for record parameters #244

Open
cesar-d2l opened this issue May 27, 2024 · 0 comments
Open

No references found for record parameters #244

cesar-d2l opened this issue May 27, 2024 · 0 comments

Comments

@cesar-d2l
Copy link
Contributor

Given the following record:

public record SomeRecord(string First) {
    public string Second => "FOO";
}

Clicking on Second SourceBrowser will happily find all references to it. But clicking on First it will find no references.

Debugging it, I noticed that it classified First as "parameter name" and Second as a "property name". I wonder if this is an issue with Roslyn? Tough for me to say (or even if that is the issue)

Interestingly, if I navigate to some code that does call First and click on it, it will link back to SomeRecord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant