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