dotnet/roslyn

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

Aperta

#63.365 aperta il 12 ago 2022

 (3 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-AnalyzersBughelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor