dotnet/roslyn

'Add argument name' refactoring works only at very beginning of attribute argument

开放

#63,365 创建于 2022年8月12日

 (3 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-AnalyzersBughelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Invoke lightbulb on the four locations indicated by $$

[My($$nu$$ll, null)]
class MyAttribute : System.Attribute
{
    public MyAttribute(string x, string y) { _ = new MyAttribute($$nu$$ll, null); }
}

Only 3 locations shows the refactoring. The one that doesn't work is invoking from middle of attribute argument.

贡献者指南