dotnet/roslyn

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

Open

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

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)C# (4,257 fork)batch import
Area-AnalyzersBughelp wanted

仓库指标

Star
 (20,414 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 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.

贡献者指南