dotnet/roslyn

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

Offen

#63.365 geöffnet am 12.08.2022

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-AnalyzersBughelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide