dotnet/roslyn

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

Open

#63 365 ouverte le 12 août 2022

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)C# (4 257 forks)batch import
Area-AnalyzersBughelp wanted

Métriques du dépôt

Stars
 (20 414 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

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.

Guide contributeur