84 references to ReloadableAttributeSrc
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (84)
EditAndContinue\ActiveStatementTests.cs (4)
108
var src1 =
ReloadableAttributeSrc
+ @"
122
var src2 =
ReloadableAttributeSrc
+ @"
228
var src1 =
ReloadableAttributeSrc
+ @"
242
var src2 =
ReloadableAttributeSrc
+ @"
EditAndContinue\LineEditTests.cs (4)
1447
var src1 =
ReloadableAttributeSrc
+ @"
1454
var src2 =
ReloadableAttributeSrc
+ @"
1647
var src1 =
ReloadableAttributeSrc
+ @"
1654
var src2 =
ReloadableAttributeSrc
+ @"
EditAndContinue\TopLevelEditingTests.cs (76)
658
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]" + oldKeyword + " C { }";
659
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]" + newKeyword + " C { }";
753
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]public class C { }";
754
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]internal class C { }";
1035
var attribute =
ReloadableAttributeSrc
+ "namespace System.Runtime.CompilerServices { public class InlineArrayAttribute : Attribute { public InlineArrayAttribute(int n) { } } } ";
1164
var src1 =
ReloadableAttributeSrc
+ attributeSrc + "[CreateNewOnMetadataUpdate, A1, A2]class C { }";
1165
var src2 =
ReloadableAttributeSrc
+ attributeSrc + "[CreateNewOnMetadataUpdate, A2, A3]class C { }";
1180
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
1181
var src2 =
ReloadableAttributeSrc
+ "class C { }";
1193
var src1 =
ReloadableAttributeSrc
+ "class C { }";
1194
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
1207
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class B { } class C : B { }";
1208
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class B { } class C : B { void F() {} }";
1243
var attributes =
ReloadableAttributeSrc
+
1397
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
1398
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class D { }";
1413
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { int x = 1; }";
1414
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class D { void F() { } }";
1796
var src1 =
ReloadableAttributeSrc
+ @"
1802
var src2 =
ReloadableAttributeSrc
+ @"
1866
var src1 =
ReloadableAttributeSrc
+ "";
1867
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { void F() {} }";
2376
var src1 =
ReloadableAttributeSrc
+ @"
2388
var src2 =
ReloadableAttributeSrc
+ @"
2473
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]public class C<T> { void F() { } }";
2474
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]internal class C<T, S> { int x = 1; }";
2501
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { void F() {} }";
2502
var src2 =
ReloadableAttributeSrc
;
2569
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { void F() {} }";
2571
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { void F() {} }";
2618
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { void F() {} }";
2621
var srcA2 =
ReloadableAttributeSrc
;
4569
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]enum Color { Red = 1 }";
4570
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]enum Color { Red = 2 }";
4948
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]public delegate int D();";
4949
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]internal delegate bool D(int a);";
5070
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]public delegate int D<out T>();";
5071
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]internal delegate bool D<in T, out S>(int a);";
5316
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int N() => 1; }";
5318
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int N() => 2; }";
5342
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int N() => 1; } partial class C { class D { int M() => 1; } }";
5343
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int N() => 2; } partial class C { class D { int M() => 2; } }";
5360
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { int N() => 1; class D { int M() => 1; } }";
5361
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { int N() => 2; class D { int M() => 2; } }";
5493
var src1 =
ReloadableAttributeSrc
+ "class N { [CreateNewOnMetadataUpdate]class C {} } class M { }";
5494
var src2 =
ReloadableAttributeSrc
+ "class N { } class M { [CreateNewOnMetadataUpdate]class C {} }";
5572
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
5573
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { [CreateNewOnMetadataUpdate]class D { } }";
5585
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
5586
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { [CreateNewOnMetadataUpdate]class D { [CreateNewOnMetadataUpdate]class E { } } }";
5598
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
5599
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { class D { [CreateNewOnMetadataUpdate]class E { } } }";
5611
var src1 =
ReloadableAttributeSrc
+ "class C { }";
5612
var src2 =
ReloadableAttributeSrc
+ "class C { [CreateNewOnMetadataUpdate]class D { [CreateNewOnMetadataUpdate]class E { } } }";
5623
var src1 =
ReloadableAttributeSrc
+ "class C { [CreateNewOnMetadataUpdate]class D { } }";
5624
var src2 =
ReloadableAttributeSrc
+ "class C { [CreateNewOnMetadataUpdate]class D { int x; } }";
10326
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { }";
10329
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { partial void F(); }";
10509
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { public static implicit operator int (C c) => 0; }";
10510
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { public static explicit operator int (C c) => 0; }";
14381
var srcB1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int x = 1; void F() { } }";
14384
var srcB2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int x = 2; }";
14431
var src1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { static C() { } }";
14432
var src2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]class C { }";
16492
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int x = 1; }";
16495
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { int x = 2; }";
16846
var src1 =
ReloadableAttributeSrc
+ """
16857
var src2 =
ReloadableAttributeSrc
+ """
18149
var src1 =
ReloadableAttributeSrc
+ """
18160
var src2 =
ReloadableAttributeSrc
+ """
19366
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { }";
19369
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C { partial int P { get; } }";
21429
var src1 = "using System;" +
ReloadableAttributeSrc
+ """
21440
var src2 = "using System;" +
ReloadableAttributeSrc
+ """
22599
var srcA1 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C<T> { }" + attributes;
22602
var srcA2 =
ReloadableAttributeSrc
+ "[CreateNewOnMetadataUpdate]partial class C<[A]T> { }" + attributes;