dotnet/roslyn

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

开放

#41,310 创建于 2020年1月30日

 (4 条评论) (0 个反应) (1 位负责人)C# (4,257 个派生)batch import
Area-CompilersBlockedConcept-Continuous ImprovementFeature - RangeIDE-Navigationhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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

贡献者指南