dotnet/roslyn

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

Open

#63.365 aperta il 12 ago 2022

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

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

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