dotnet/roslyn

Change signature adds unnecessary argument names

オープン

#40,489 opened on 2019/12/19

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

Version Used: 16.5.0 Preview 2.0 [29615.19.master]

Steps to Reproduce:

class Program
{
    static void F(int a, int b, int c)
    {
    }

    static void Main()
    {
        F(1, b: 2, 3);
    }
}
  1. Invoke change signature on F
  2. Move parameter a to the end of the signature.

image

Expected Behavior:

class Program
{
    static void F(int b, int c, int a)
    {
    }

    static void Main()
    {
        F(b: 2, 3, 1);
    }
}

Actual Behavior:

class Program
{
    static void F(int b, int c, int a)
    {
    }

    static void Main()
    {
        F(b: 2, c: 3, a: 1);
    }
}

コントリビューターガイド