dotnet/roslyn

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

Offen

#41.310 geöffnet am 30.01.2020

 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C# (4.257 Forks)batch import
Area-CompilersBlockedConcept-Continuous ImprovementFeature - RangeIDE-Navigationhelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

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