Skip to content

Find all references doesn't work with private fields #35883

@DanielRosenwasser

Description

@DanielRosenwasser

https://www.typescriptlang.org/play/index.html?ts=3.8.0-pr-30829-97&ssl=1&ssc=1&pln=6&pc=2#code/MYGwhgzhAEDC0G8BQ1XQMQDMD23oF5oBGABgG4U1hsA7CAFwCcBXYe7RgCgEpFK009ABYBLCADosuCgIC+SWUA

class C {
    [|#foo|] = 10;
    constructor() {
        this.[|#foo|] = 20;
    }
}

Expected: Find all references on each range contains all ranges.
Actual: Find all references returns no results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".FixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions