Skip to content

No references found for record parameters #244

@cesar-d2l

Description

@cesar-d2l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions