Skip to content

Get all symbols: all symbols in SynPat.Or patterns considered bindings #5546

@auduchinok

Description

@auduchinok

Consider following code:

match 123 with
| x
| x -> ()

GetAllUsesOfAllSymbolsInFile returns following symbols:

screen shot 2018-08-22 at 22 42 01

Ranges of x symbols uses are (2,2-2,3) and (3,2-3,3) respectively.
Both x uses considered bindings and both items claim their declaration range is (2,2-2,3) which doesn't look right for the second one. I suppose the second use should be ItemOccurence.Use instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-FindAllReferencesFind all references across projects and solutionsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions