101 references to WithSource
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (101)
Emit\EditAndContinue\AssemblyReferencesTests.cs (9)
67var compilation1 = compilation0.WithSource(src2); 140var compilation1 = compilation0.WithSource(src2); 212var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.ToMetadataReference() }); 213var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.ToMetadataReference() }); 316var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.ToMetadataReference() }); 317var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.ToMetadataReference() }); 399var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.EmitToImageReference() }); 400var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.EmitToImageReference() }); 483var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, ref02, ref12 });
Emit\EditAndContinue\EditAndContinueClosureTests.cs (4)
2465var compilation2 = compilation1.WithSource(source2); 2582var compilation2 = compilation1.WithSource(source2); 2715var compilation2 = compilation1.WithSource(source2); 2716var compilation3 = compilation2.WithSource(source3);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
46var compilation1 = compilation0.WithSource(source1); 110var compilation1 = compilation0.WithSource(source1); 174var compilation1 = compilation0.WithSource(source1); 238var compilation1 = compilation0.WithSource(source1); 302var compilation1 = compilation0.WithSource(source1);
Emit\EditAndContinue\EditAndContinueTests.cs (7)
260var compilation1 = compilation0.WithSource(source1); 309var compilation1 = compilation0.WithSource(source1); 342var compilation1 = compilation0.WithSource(source1); 501var compilation1 = compilation0.WithSource(source1); 562var compilation1 = compilation0.WithSource(source1); 563var compilation2 = compilation1.WithSource(source2); 795var compilation1 = compilation0.WithSource(source1);
Emit\EditAndContinue\LocalSlotMappingTests.cs (35)
48var compilation1 = compilation0.WithSource(source0); 123var compilation1 = compilation0.WithSource(source); 427var compilation1 = compilation0.WithSource(source); 1209var compilation1 = compilation0.WithSource(source); 1317var compilation1 = compilation0.WithSource(source); 1481var compilation1 = compilation0.WithSource(source); 1664var compilation1 = compilation0.WithSource(source); 1849var compilation1 = compilation0.WithSource(source); 2009var compilation1 = compilation0.WithSource(source); 2042var compilation1 = compilation0.WithSource(source); 2419var compilation2 = compilation0.WithSource(source2); 2599var compilation1 = compilation0.WithSource(source1); 2737var compilation1 = compilation0.WithSource(source); 2882var compilation1 = compilation0.WithSource(source1); 2991var compilation1 = compilation0.WithSource(source1); 3118var compilation1 = compilation0.WithSource(source); 3332var compilation1 = compilation0.WithSource(source1); 3439var compilation1 = compilation0.WithSource(source1); 3552var compilation1 = compilation0.WithSource(source1); 3660var compilation1 = compilation0.WithSource(source1); 3752var compilation1 = compilation0.WithSource(source); 3971var compilation1 = compilation0.WithSource(source); 4080var compilation1 = compilation0.WithSource(source); 4234var compilation1 = compilation0.WithSource(source); 4281var compilation1 = compilation0.WithSource(source); 4337var compilation1 = compilation0.WithSource(source); 4392var compilation1 = compilation0.WithSource(source); 4444var compilation1 = compilation0.WithSource(source); 4500var compilation1 = compilation0.WithSource(source); 4569var compilation1 = compilation0.WithSource(source); 4649var compilation1 = compilation0.WithSource(source); 4742var compilation1 = compilation0.WithSource(source); 4803var compilation1 = compilation0.WithSource(source); 4863var compilation1 = compilation0.WithSource(source); 4952var compilation1 = compilation0.WithSource(source);
Emit\EditAndContinue\SymbolMatcherTests.cs (41)
78var compilation1 = compilation0.WithSource(source); 141var compilation1 = compilation0.WithSource(source); 167var compilation1 = compilation0.WithSource(source); 191var compilation1 = compilation0.WithSource(source); 232var compilation1 = compilation0.WithSource(source1); 276var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll).WithSource(source1); 308var compilation1 = compilation0.WithSource(source).WithReferences(MscorlibRef, lib1.ToMetadataReference()); 342var compilation1 = compilation0.WithSource(source1); 373var compilation1 = compilation0.WithSource(source1); 405var compilation1 = compilation0.WithSource(source1); 440var compilation1 = compilation0.WithSource(source1); 601var compilation1 = compilation0.WithSource(source1); 625var compilation1 = compilation0.WithSource(source1); 649var compilation1 = compilation0.WithSource(source1); 673var compilation1 = compilation0.WithSource(source1); 697var compilation1 = compilation0.WithSource(source1); 721var compilation1 = compilation0.WithSource(source1); 745var compilation1 = compilation0.WithSource(source1); 769var compilation1 = compilation0.WithSource(source1); 793var compilation1 = compilation0.WithSource(source1); 817var compilation1 = compilation0.WithSource(source1); 855var compilation1 = compilation0.WithSource(source1); 903var compilation1 = compilation0.WithSource(source1); 984var compilation1 = compilation0.WithSource(source1); 1009var compilation1 = compilation0.WithSource(source1); 1034var compilation1 = compilation0.WithSource(source1); 1057var compilation1 = compilation0.WithSource(source1); 1163var compilation1 = compilation0.WithSource(source); 1212var compilation1 = compilation0.WithSource(source); 1246var compilation1 = compilation0.WithSource(source2); 1297var compilation1 = compilation0.WithSource(source2); 1320var compilation1 = compilation0.WithSource(source1); 1342var compilation1 = compilation0.WithSource(source1); 1365var compilation1 = compilation0.WithSource(source1); 1386var compilation1 = compilation0.WithSource(source1); 1412var compilation1 = compilation0.WithSource(source1); 1716var compilation1 = compilation0.WithSource(source); 1758var compilation1 = compilation0.WithSource(source1); 1810var compilation1 = compilation0.WithSource(source1); 1857var compilation1 = compilation0.WithSource(source1); 1902var compilation1 = compilation0.WithSource(source1);