dotnet/roslyn

Find All References does not count usages from the Implicit Range support

Open

#41,310 opened on Jan 30, 2020

View on GitHub
 (4 comments) (0 reactions) (1 assignee)C# (4,257 forks)batch import
Area-CompilersBlockedConcept-Continuous ImprovementFeature - RangeIDE-Navigationhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

Version Used: 16.4.3

Steps to Reproduce:

public class T
{
    public int Length => 42;
    public int Slice(int start, int length) => start + length;
    public static void M()
    {
        var t = new T();
        var o = t[0..^1];
    }
}

Run Find All References on Length or Slice or look at CodeLense

Expected Behavior: Both Length and Slice should have one reference from using the implicit range in M().

Actual Behavior: The implicit usage is not reported.

image

Contributor guide