dotnet/roslyn

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

Aberta

#63.365 aberto em 12 de ago. de 2022

 (3 comentários) (0 reação) (0 responsável)C# (4.257 forks)batch import
Area-AnalyzersBughelp wanted

Métricas do repositório

Stars
 (20.414 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador