@@ -582,10 +582,7 @@ public virtual int RenamedReadOnlyProperty
582
582
}
583
583
}
584
584
585
- int IClass.ReadOnlyProp // Comment moves because this line gets split
586
- {
587
- get => RenamedReadOnlyProperty;
588
- }
585
+ int IClass.ReadOnlyProp { get => RenamedReadOnlyProperty; } // Comment moves because this line gets split
589
586
590
587
public virtual int get_RenamedWriteOnlyPropParam(int i)
591
588
{
@@ -610,10 +607,7 @@ public virtual int RenamedWriteOnlyProperty
610
607
}
611
608
}
612
609
613
- int IClass.WriteOnlyProp // Comment moves because this line gets split
614
- {
615
- set => RenamedWriteOnlyProperty = value;
616
- }
610
+ int IClass.WriteOnlyProp { set => RenamedWriteOnlyProperty = value; } // Comment moves because this line gets split
617
611
}" ) ;
618
612
}
619
613
@@ -1896,11 +1890,7 @@ private int doFoo()
1896
1890
int IFoo.DoFoo() => doFoo();
1897
1891
1898
1892
private int prop { get; set; }
1899
- int IFoo.Prop
1900
- {
1901
- get => prop;
1902
- set => prop = value;
1903
- }
1893
+ int IFoo.Prop { get => prop; set => prop = value; }
1904
1894
1905
1895
private int Consumer()
1906
1896
{
@@ -1971,11 +1961,7 @@ protected internal virtual int doFoo()
1971
1961
int IFoo.DoFoo() => doFoo();
1972
1962
1973
1963
protected internal virtual int prop { get; set; }
1974
- int IFoo.Prop
1975
- {
1976
- get => prop;
1977
- set => prop = value;
1978
- }
1964
+ int IFoo.Prop { get => prop; set => prop = value; }
1979
1965
}
1980
1966
1981
1967
public partial class Foo : BaseFoo
@@ -2053,10 +2039,7 @@ public partial interface IFoo
2053
2039
public abstract partial class BaseFoo : IUserContext
2054
2040
{
2055
2041
protected internal string ConnectedGroupID { get; private set; }
2056
- string IUserContext.GroupID
2057
- {
2058
- get => ConnectedGroupID;
2059
- }
2042
+ string IUserContext.GroupID { get => ConnectedGroupID; }
2060
2043
}
2061
2044
2062
2045
public partial class Foo : BaseFoo, IFoo
@@ -2069,10 +2052,7 @@ public partial class Foo : BaseFoo, IFoo
2069
2052
}
2070
2053
}
2071
2054
2072
- string IFoo.ConnectedGroupId // Comment moves because this line gets split
2073
- {
2074
- get => ConnectedGroupID;
2075
- }
2055
+ string IFoo.ConnectedGroupId { get => ConnectedGroupID; } // Comment moves because this line gets split
2076
2056
2077
2057
private string Consumer()
2078
2058
{
@@ -2161,17 +2141,9 @@ public partial interface IBar
2161
2141
public partial class FooBar : IFoo, IBar
2162
2142
{
2163
2143
public int Foo { get; set; }
2164
- int IFoo.FooBarProp
2165
- {
2166
- get => Foo;
2167
- set => Foo = value;
2168
- }
2144
+ int IFoo.FooBarProp { get => Foo; set => Foo = value; }
2169
2145
public int Bar { get; set; }
2170
- int IBar.FooBarProp
2171
- {
2172
- get => Bar;
2173
- set => Bar = value;
2174
- }
2146
+ int IBar.FooBarProp { get => Bar; set => Bar = value; }
2175
2147
}" ) ;
2176
2148
}
2177
2149
@@ -2236,11 +2208,7 @@ public partial interface IFoo
2236
2208
public partial class Foo : TestNamespace.IFoo
2237
2209
{
2238
2210
public int FooPropRenamed { get; set; }
2239
- int TestNamespace.IFoo.FooProp
2240
- {
2241
- get => FooPropRenamed;
2242
- set => FooPropRenamed = value;
2243
- }
2211
+ int TestNamespace.IFoo.FooProp { get => FooPropRenamed; set => FooPropRenamed = value; }
2244
2212
}" ) ;
2245
2213
}
2246
2214
@@ -2321,11 +2289,7 @@ public partial interface IFoo
2321
2289
public partial class Foo : IFoo
2322
2290
{
2323
2291
public int FooPropRenamed { get; set; }
2324
- int IFoo.FooProp
2325
- {
2326
- get => FooPropRenamed;
2327
- set => FooPropRenamed = value;
2328
- }
2292
+ int IFoo.FooProp { get => FooPropRenamed; set => FooPropRenamed = value; }
2329
2293
}
2330
2294
2331
2295
public partial class FooConsumer
@@ -2504,11 +2468,7 @@ public partial interface IFoo
2504
2468
public partial class Foo : IFoo
2505
2469
{
2506
2470
public int FooPropRenamed { get; set; }
2507
- int IFoo.FooProp
2508
- {
2509
- get => FooPropRenamed;
2510
- set => FooPropRenamed = value;
2511
- }
2471
+ int IFoo.FooProp { get => FooPropRenamed; set => FooPropRenamed = value; }
2512
2472
}
2513
2473
2514
2474
public partial class FooConsumer
@@ -2599,11 +2559,7 @@ public partial interface IFoo
2599
2559
public partial class Foo : IFoo
2600
2560
{
2601
2561
public int FooPropRenamed { get; set; }
2602
- int IFoo.FooProp
2603
- {
2604
- get => FooPropRenamed;
2605
- set => FooPropRenamed = value;
2606
- }
2562
+ int IFoo.FooProp { get => FooPropRenamed; set => FooPropRenamed = value; }
2607
2563
}
2608
2564
2609
2565
public partial class FooConsumer
@@ -2701,10 +2657,7 @@ public int MyClassDoFooRenamed
2701
2657
}
2702
2658
}
2703
2659
2704
- int IFoo.DoFoo
2705
- {
2706
- get => DoFooRenamed;
2707
- }
2660
+ int IFoo.DoFoo { get => DoFooRenamed; }
2708
2661
2709
2662
public virtual int DoFooRenamed // Comment ends up out of order, but attached to correct method
2710
2663
{
@@ -2722,10 +2675,7 @@ public int MyClassDoBarRenamed
2722
2675
}
2723
2676
}
2724
2677
2725
- int IFoo.DoBar
2726
- {
2727
- set => DoBarRenamed = value;
2728
- }
2678
+ int IFoo.DoBar { set => DoBarRenamed = value; }
2729
2679
2730
2680
public virtual int DoBarRenamed // Comment ends up out of order, but attached to correct method
2731
2681
{
@@ -2889,16 +2839,8 @@ public partial interface IBar
2889
2839
public partial class Foo : IFoo, IBar
2890
2840
{
2891
2841
private int ExplicitProp { get; set; }
2892
- int IFoo.ExplicitProp
2893
- {
2894
- get => ExplicitProp;
2895
- set => ExplicitProp = value;
2896
- }
2897
- int IBar.ExplicitProp
2898
- {
2899
- get => ExplicitProp;
2900
- set => ExplicitProp = value;
2901
- }
2842
+ int IFoo.ExplicitProp { get => ExplicitProp; set => ExplicitProp = value; }
2843
+ int IBar.ExplicitProp { get => ExplicitProp; set => ExplicitProp = value; }
2902
2844
}" ) ;
2903
2845
}
2904
2846
@@ -2933,17 +2875,9 @@ public partial interface IBar
2933
2875
public abstract partial class Foo : IFoo, IBar
2934
2876
{
2935
2877
protected abstract int ExplicitPropRenamed1 { get; set; }
2936
- int IFoo.ExplicitProp
2937
- {
2938
- get => ExplicitPropRenamed1;
2939
- set => ExplicitPropRenamed1 = value;
2940
- }
2878
+ int IFoo.ExplicitProp { get => ExplicitPropRenamed1; set => ExplicitPropRenamed1 = value; }
2941
2879
protected abstract int ExplicitPropRenamed2 { get; set; }
2942
- int IBar.ExplicitProp
2943
- {
2944
- get => ExplicitPropRenamed2;
2945
- set => ExplicitPropRenamed2 = value;
2946
- }
2880
+ int IBar.ExplicitProp { get => ExplicitPropRenamed2; set => ExplicitPropRenamed2 = value; }
2947
2881
}" ) ;
2948
2882
}
2949
2883
@@ -2999,11 +2933,7 @@ protected override void OnSave()
2999
2933
void IFoo.Save() => OnSave();
3000
2934
3001
2935
protected override int MyProp { get; set; } = 6;
3002
- int IFoo.Prop
3003
- {
3004
- get => MyProp;
3005
- set => MyProp = value;
3006
- }
2936
+ int IFoo.Prop { get => MyProp; set => MyProp = value; }
3007
2937
}" ) ;
3008
2938
}
3009
2939
@@ -3055,16 +2985,8 @@ public virtual void Save()
3055
2985
void IBar.OnSave() => Save();
3056
2986
3057
2987
public virtual int A { get; set; }
3058
- int IFoo.A
3059
- {
3060
- get => A;
3061
- set => A = value;
3062
- }
3063
- int IBar.B
3064
- {
3065
- get => A;
3066
- set => A = value;
3067
- }
2988
+ int IFoo.A { get => A; set => A = value; }
2989
+ int IBar.B { get => A; set => A = value; }
3068
2990
}" ) ;
3069
2991
}
3070
2992
@@ -3120,11 +3042,7 @@ public partial class Foo : BaseFoo, IFoo
3120
3042
void IFoo.Save() => OnSave();
3121
3043
3122
3044
public new int MyProp { get; set; } = 6;
3123
- int IFoo.Prop
3124
- {
3125
- get => MyProp;
3126
- set => MyProp = value;
3127
- }
3045
+ int IFoo.Prop { get => MyProp; set => MyProp = value; }
3128
3046
}" ) ;
3129
3047
}
3130
3048
@@ -3175,16 +3093,8 @@ private int ExplicitProp
3175
3093
}
3176
3094
}
3177
3095
3178
- int IFoo.ExplicitProp
3179
- {
3180
- get => ExplicitProp;
3181
- set => ExplicitProp = value;
3182
- }
3183
- int IBar.ExplicitProp // Comment moves because this line gets split
3184
- {
3185
- get => ExplicitProp;
3186
- set => ExplicitProp = value;
3187
- }
3096
+ int IFoo.ExplicitProp { get => ExplicitProp; set => ExplicitProp = value; }
3097
+ int IBar.ExplicitProp { get => ExplicitProp; set => ExplicitProp = value; } // Comment moves because this line gets split
3188
3098
}" ) ;
3189
3099
}
3190
3100
@@ -3275,16 +3185,8 @@ internal virtual int FriendProp
3275
3185
}
3276
3186
}
3277
3187
3278
- int IFoo.FriendProp
3279
- {
3280
- get => FriendProp;
3281
- set => FriendProp = value;
3282
- }
3283
- int IBar.FriendProp // Comment moves because this line gets split
3284
- {
3285
- get => FriendProp;
3286
- set => FriendProp = value;
3287
- }
3188
+ int IFoo.FriendProp { get => FriendProp; set => FriendProp = value; }
3189
+ int IBar.FriendProp { get => FriendProp; set => FriendProp = value; } // Comment moves because this line gets split
3288
3190
3289
3191
protected void ProtectedSub()
3290
3192
{
@@ -3355,16 +3257,9 @@ public partial interface IFoo
3355
3257
public partial class Foo : IFoo
3356
3258
{
3357
3259
public int ExplicitPropRenamed { get; set; }
3358
- int IFoo.ExplicitProp
3359
- {
3360
- get => ExplicitPropRenamed;
3361
- set => ExplicitPropRenamed = value;
3362
- }
3260
+ int IFoo.ExplicitProp { get => ExplicitPropRenamed; set => ExplicitPropRenamed = value; }
3363
3261
public int ExplicitRenamedReadOnlyProp { get; private set; }
3364
- int IFoo.ExplicitReadOnlyProp
3365
- {
3366
- get => ExplicitRenamedReadOnlyProp;
3367
- }
3262
+ int IFoo.ExplicitReadOnlyProp { get => ExplicitRenamedReadOnlyProp; }
3368
3263
3369
3264
private void Consumer()
3370
3265
{
@@ -3404,14 +3299,8 @@ public partial interface IBar
3404
3299
public partial class Foo : IFoo, IBar
3405
3300
{
3406
3301
public int ExplicitPropRenamed { get; private set; }
3407
- int IFoo.ExplicitProp
3408
- {
3409
- get => ExplicitPropRenamed;
3410
- }
3411
- int IBar.ExplicitProp
3412
- {
3413
- get => ExplicitPropRenamed;
3414
- }
3302
+ int IFoo.ExplicitProp { get => ExplicitPropRenamed; }
3303
+ int IBar.ExplicitProp { get => ExplicitPropRenamed; }
3415
3304
}" ) ;
3416
3305
}
3417
3306
@@ -3454,14 +3343,8 @@ public int ExplicitPropRenamed
3454
3343
}
3455
3344
}
3456
3345
3457
- int IFoo.ExplicitProp
3458
- {
3459
- set => ExplicitPropRenamed = value;
3460
- }
3461
- int IBar.ExplicitProp // Comment moves because this line gets split
3462
- {
3463
- set => ExplicitPropRenamed = value;
3464
- }
3346
+ int IFoo.ExplicitProp { set => ExplicitPropRenamed = value; }
3347
+ int IBar.ExplicitProp { set => ExplicitPropRenamed = value; } // Comment moves because this line gets split
3465
3348
}" ) ;
3466
3349
}
3467
3350
0 commit comments