dotnet/roslyn

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

Ouverte

#41 310 ouverte le 30 janv. 2020

 (4 commentaires) (0 réaction) (1 personne assignée)C# (4 257 forks)batch import
Area-CompilersBlockedConcept-Continuous ImprovementFeature - RangeIDE-Navigationhelp wanted

Métriques du dépôt

Stars
 (20 414 étoiles)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

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

Guide contributeur