562 references to CSharpCompilationReference
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1187
return new
CSharpCompilationReference
(this, aliases, embedInteropTypes);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (3)
63
var comp2 = (Compilation)CreateCompilation(src2, new MetadataReference[] { new
CSharpCompilationReference
(comp1) });
330
var comp40 = CreateCompilation(src2, new[] { new
CSharpCompilationReference
(comp20) });
412
var comp40 = CreateCompilation(src2, new[] { new
CSharpCompilationReference
(comp20) });
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (170)
BreakingChanges.cs (1)
92
var comp = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) });
CodeGen\CodeGenDynamicTests.cs (2)
7466
new[] { new
CSharpCompilationReference
(lib), SystemCoreRef, CSharpRef });
7563
new[] { new
CSharpCompilationReference
(lib), SystemCoreRef, CSharpRef },
CodeGen\CodeGenExplicitImplementationTests.cs (7)
222
new
CSharpCompilationReference
(comp1)
378
references: new MetadataReference[] { asm01, new
CSharpCompilationReference
(comp1) },
996
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libComp, aliases: ImmutableArray.Create("Q")) });
1045
var comp1 = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libComp1, aliases: ImmutableArray.Create("A")), new
CSharpCompilationReference
(libComp1, aliases: ImmutableArray.Create("B")) });
1061
var comp2 = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libComp1, aliases: ImmutableArray.Create("A")), new
CSharpCompilationReference
(libComp2, aliases: ImmutableArray.Create("B")) });
CodeGen\CodeGenFieldInitTests.cs (1)
701
CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) }, assemblyName: "2110a705-cc34-430b-9450-ca37031aa828")
CodeGen\CodeGenImplicitImplementationTests.cs (1)
2296
var exeComp = CreateCompilation(exeSource, options: TestOptions.ReleaseExe, references: new[] { new
CSharpCompilationReference
(libComp) });
CodeGen\CodeGenInterfaceImplementation.cs (2)
370
references: new MetadataReference[] { asmRef, new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) },
CodeGen\CodeGenOverridingAndHiding.cs (17)
2260
var comp = CompileAndVerify(source2, new[] { new
CSharpCompilationReference
(compilation1) }, expectedSignatures: new[]
2541
new[] { new
CSharpCompilationReference
(referencedCompilation) },
2831
refs.Add(new
CSharpCompilationReference
(comp1));
2924
refs.Add(new
CSharpCompilationReference
(comp1));
2989
references: new MetadataReference[] { asm01, asm02, new
CSharpCompilationReference
(comp1) },
3165
refs.Add(new
CSharpCompilationReference
(comp1));
3170
refs.Add(new
CSharpCompilationReference
(comp2));
3378
references: new MetadataReference[] { asm01, asm02, new
CSharpCompilationReference
(comp1) },
3383
references: new MetadataReference[] { asm01, asm02, new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) },
3487
references: new MetadataReference[] { asmfile, new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) },
4175
var comp = CompileAndVerify(source2, references: new[] { new
CSharpCompilationReference
(compref) }, expectedOutput: "M");
4380
var B = CreateCompilation(@"public interface B { void M(A a); }", references: new[] { new
CSharpCompilationReference
(A) }, assemblyName: "B");
4381
var C = CreateCompilation(@"public class C { public void M(A a) { } }", references: new[] { new
CSharpCompilationReference
(A) }, assemblyName: "C");
4383
var D = CreateCompilation(@"public class D : C, B { }", references: new[] { new
CSharpCompilationReference
(B), new
CSharpCompilationReference
(C) }, assemblyName: "D");
CodeGen\CodeGenTests.cs (1)
11784
CompileAndVerify(source2, new[] { new
CSharpCompilationReference
(compilation1) }).VerifyIL("Test.Main", @"
CodeGen\CodeGenTupleTest.cs (13)
4227
new
CSharpCompilationReference
(comp1),
4228
new
CSharpCompilationReference
(comp2),
4271
var comp = CreateCompilation(source, references: new[] { new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) }, options: TestOptions.ReleaseExe);
4314
var comp = CreateCompilationWithMscorlib40(source, references: new[] { new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) });
4337
var comp = CreateCompilationWithMscorlib40(source, references: new[] { new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) });
4361
references: new[] { new
CSharpCompilationReference
(comp1),
4362
new
CSharpCompilationReference
(comp2) });
4421
var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"1 1 2 2 3 3 4 4 5 5 6 6 True", references: new[] { new
CSharpCompilationReference
(comp1), new
CSharpCompilationReference
(comp2) });
19778
var comp3 = CreateCompilationWithMscorlib46(source2, references: new[] { new
CSharpCompilationReference
(comp2) });
Emit\CompilationEmitTests.cs (4)
4676
var compRef = new
CSharpCompilationReference
(refCompilation);
4806
var compRef = new
CSharpCompilationReference
(refCompilation);
4893
var compRef = new
CSharpCompilationReference
(refCompilation);
4970
var compRef = new
CSharpCompilationReference
(refCompilation);
Emit\DeterministicTests.cs (3)
300
var forwardedToReference1 = new
CSharpCompilationReference
(forwardedToCompilation1);
318
var forwardingReference = new
CSharpCompilationReference
(forwardingCompilation);
353
var forwardedToReference2 = new
CSharpCompilationReference
(forwardedToCompilation2);
Emit\EmitErrorTests.cs (4)
117
new[] { new
CSharpCompilationReference
(compilation1) },
151
new[] { new
CSharpCompilationReference
(compilation1) },
190
new[] { new
CSharpCompilationReference
(compilation1) },
237
var compilation2 = CreateCompilation(source2, new MetadataReference[] { new
CSharpCompilationReference
(compilation1) });
Emit\NoPiaEmbedTypes.cs (89)
71
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
116
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
193
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
262
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
322
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
373
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
423
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
472
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
522
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
572
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
622
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
672
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
722
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
821
var compilation = CreateEmptyCompilation(consumer, new MetadataReference[] { MscorlibRef_v20, new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) }, options: TestOptions.ReleaseExe);
871
var compilation = CreateEmptyCompilation(consumer, new MetadataReference[] { MscorlibRef_v20, new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) }, options: TestOptions.DebugExe);
1162
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
1721
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
1826
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
1913
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2000
new MetadataReference[] { MscorlibRef_v4_0_30316_17626, new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) },
2064
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2131
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2189
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2305
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2390
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2471
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2534
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2698
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2770
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2834
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2895
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
2961
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3027
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3092
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3157
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3225
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3375
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3440
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3497
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3544
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3625
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true),
3626
new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
3690
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
3766
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: false) }, assemblyName: "Consumer1");
3772
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true),
3773
new
CSharpCompilationReference
(compilation1, embedInteropTypes: false) });
3778
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true),
3785
new
CSharpCompilationReference
(compilation1, embedInteropTypes: false) });
3862
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: false) }, assemblyName: "Consumer1");
3868
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true),
3869
new
CSharpCompilationReference
(compilation1, embedInteropTypes: false) });
3874
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true),
3881
new
CSharpCompilationReference
(compilation1, embedInteropTypes: false) });
3942
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
4026
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
4103
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
4168
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
4233
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true), CSharpRef });
4293
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true), CSharpRef });
4353
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true), CSharpRef });
4419
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true), CSharpRef });
4477
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4500
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4546
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4571
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4589
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2) });
4646
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4672
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4680
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2) });
4727
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4750
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4798
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4822
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4866
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4914
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4965
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
4988
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
4996
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2) });
5123
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation1, embedInteropTypes: true) });
5149
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2, embedInteropTypes: true) });
5157
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation2) });
5314
var NetImpl_1_Compilation = CreateCompilation(NetImpl_cs, new[] { new
CSharpCompilationReference
(IEvent_Compilation, embedInteropTypes: true) }, options: TestOptions.ReleaseDll, assemblyName: "NetImpl");
5364
MetadataReference[] NetImpl_refs = new MetadataReference[] { new
CSharpCompilationReference
(NetImpl_1_Compilation),
5365
new
CSharpCompilationReference
(NetImpl_2_Compilation),
5369
MetadataReference[] IEvent_refs = new MetadataReference[] { new
CSharpCompilationReference
(IEvent_Compilation),
5370
new
CSharpCompilationReference
(IEvent_Compilation, embedInteropTypes: true),
5421
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
5489
var piaRef1 = new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true);
5605
references: new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) });
Emit\OptionalArgumentsTests.cs (1)
175
references: new[] { new
CSharpCompilationReference
(comp1) },
PDB\PDBUsingTests.cs (19)
577
new
CSharpCompilationReference
(dummyCompilation1, ImmutableArray.Create("P")) ,
578
new
CSharpCompilationReference
(dummyCompilation2, ImmutableArray.Create("Q")),
579
new
CSharpCompilationReference
(dummyCompilation3, ImmutableArray.Create("R"))
793
new
CSharpCompilationReference
(dummyCompilation, ImmutableArray.Create("A", "A")),
873
new
CSharpCompilationReference
(dummyCompilation1, ImmutableArray.Create("global", "A")),
874
new
CSharpCompilationReference
(dummyCompilation2, ImmutableArray.Create("B", "global"))
944
references: new[] { new
CSharpCompilationReference
(libComp, ImmutableArray.Create("P")) });
1020
new
CSharpCompilationReference
(dummyCompilation1, ImmutableArray.Create("P")) ,
1021
new
CSharpCompilationReference
(dummyCompilation2, ImmutableArray.Create("Q")),
1022
new
CSharpCompilationReference
(dummyCompilation3, ImmutableArray.Create("R"))
1176
new
CSharpCompilationReference
(compilation1, ImmutableArray.Create("A", "B"))
1244
new
CSharpCompilationReference
(compilation1, ImmutableArray.Create("global", "B", "A", "A", "global"))
1326
new
CSharpCompilationReference
(dummyCompilation1, ImmutableArray.Create("P")),
1327
new
CSharpCompilationReference
(dummyCompilation2, ImmutableArray.Create("Q")),
1328
new
CSharpCompilationReference
(dummyCompilation3, ImmutableArray.Create("R")),
1504
new
CSharpCompilationReference
(dummyCompilation1, ImmutableArray.Create("P")),
1505
new
CSharpCompilationReference
(dummyCompilation2, ImmutableArray.Create("Q")),
1506
new
CSharpCompilationReference
(dummyCompilation3, ImmutableArray.Create("R")),
1507
new
CSharpCompilationReference
(dummyCompilation4, ImmutableArray.Create("S")),
PrivateProtected.cs (5)
138
references: new[] { new
CSharpCompilationReference
(baseCompilation) },
241
references: new[] { new
CSharpCompilationReference
(baseCompilation) },
708
references: new[] { new
CSharpCompilationReference
(compilation1) })
734
references: new[] { new
CSharpCompilationReference
(compilation1) })
761
references: new[] { new
CSharpCompilationReference
(compilation1) })
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (46)
Attributes\AttributeTests.cs (4)
9652
var compilation2 = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) });
9671
var compilation3 = CreateCompilation(source3, new[] { new
CSharpCompilationReference
(compilation1) });
9734
var compilation2 = CreateCompilationWithMscorlib40(source2, new[] { new
CSharpCompilationReference
(compilation1) }, options: TestOptions.DebugDll, assemblyName: "Test.dll");
9745
var compilation3 = CreateCompilationWithMscorlib45(source2, new[] { new
CSharpCompilationReference
(compilation1) }, options: TestOptions.DebugDll);
Attributes\AttributeTests_Assembly.cs (3)
377
var neutralRef = new
CSharpCompilationReference
(neutral);
387
var deRef = new
CSharpCompilationReference
(de);
397
var en_usRef = new
CSharpCompilationReference
(en_us);
Attributes\AttributeTests_Experimental.cs (1)
104
var comp2B = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(comp1) });
Attributes\AttributeTests_WellKnownAttributes.cs (10)
565
var libCompRef = new
CSharpCompilationReference
(libComp);
977
", new[] { new
CSharpCompilationReference
(c1) });
5184
var compref1 = new
CSharpCompilationReference
(comp1);
5186
var comp3 = CreateCompilation(text3, references: new[] { compref1, new
CSharpCompilationReference
(comp2) }, options: opt, assemblyName: "Child2");
5190
comp3 = CreateCompilation(text3, references: new[] { compref1, new
CSharpCompilationReference
(comp2) }, options: opt, assemblyName: "Child2");
6673
CreateCompilation(s, new[] { new
CSharpCompilationReference
(other) }).VerifyDiagnostics(
9756
var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new
CSharpCompilationReference
(compilation1) }), TestOptions.ReleaseDll);
9892
var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new
CSharpCompilationReference
(compilation1) });
9975
var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new
CSharpCompilationReference
(compilation1) });
10126
var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new
CSharpCompilationReference
(compilation1) }), TestOptions.ReleaseDll);
Attributes\InternalsVisibleToAndStrongNameTests.cs (24)
758
new[] { new
CSharpCompilationReference
(other) },
782
new[] { new
CSharpCompilationReference
(other) },
863
new MetadataReference[] { new
CSharpCompilationReference
(other) },
892
references: new[] { new
CSharpCompilationReference
(other) },
1051
new[] { new
CSharpCompilationReference
(other) },
1081
new[] { new
CSharpCompilationReference
(other) },
1110
new[] { new
CSharpCompilationReference
(other) },
1141
new MetadataReference[] { new
CSharpCompilationReference
(other) },
1176
new MetadataReference[] { new
CSharpCompilationReference
(other) },
1216
new MetadataReference[] { new
CSharpCompilationReference
(other) },
1248
new MetadataReference[] { new
CSharpCompilationReference
(other) },
1284
new MetadataReference[] { new
CSharpCompilationReference
(other) },
1329
new MetadataReference[] { new
CSharpCompilationReference
(giver) },
2034
var ref1 = new
CSharpCompilationReference
(comp1);
2038
var ref2 = new
CSharpCompilationReference
(comp2);
2152
var ref1 = new
CSharpCompilationReference
(comp1);
2156
var ref2 = new
CSharpCompilationReference
(comp2);
2160
var ref3 = new
CSharpCompilationReference
(comp3);
2318
var ref1 = new
CSharpCompilationReference
(comp1);
2360
CompileAndVerify(other.WithReferences(new[] { other.References.ElementAt(0), new
CSharpCompilationReference
(unsigned) })).VerifyDiagnostics();
2388
var comps = new[] {other.WithReferences(new []{other.References.ElementAt(0), new
CSharpCompilationReference
(unsigned)}),
2670
references: new[] { new
CSharpCompilationReference
(ca) },
2700
var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new
CSharpCompilationReference
(ca) }, parseOptions: parseOptions);
2728
var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new
CSharpCompilationReference
(ca) }, parseOptions: parseOptions);
FlowAnalysis\StructTests.cs (4)
234
var sourceReference = new
CSharpCompilationReference
(comp1);
294
var sourceReference = new
CSharpCompilationReference
(comp1);
327
var sourceReference = new
CSharpCompilationReference
(comp1);
372
var sourceReference = new
CSharpCompilationReference
(comp1);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\AccessCheckTests.cs (4)
630
}", new List<MetadataReference>() { new
CSharpCompilationReference
(other) });
680
}", new[] { new
CSharpCompilationReference
(other) });
994
}", new MetadataReference[] { new
CSharpCompilationReference
(other) }, assemblyName: "AccessCheckCrossAssemblyParameterProtectedMethod2");
1014
}", new MetadataReference[] { new
CSharpCompilationReference
(other) }, assemblyName: "AccessCheckCrossAssemblyParameterProtectedMethod2");
Semantics\AmbiguousOverrideTests.cs (2)
131
var comp1ref = new
CSharpCompilationReference
(comp1);
135
var comp2ref = new
CSharpCompilationReference
(comp2);
Semantics\BindingTests.cs (12)
1562
CSharpCompilation comp2 = CreateCompilationWithMscorlib45(source2, new MetadataReference[] { new
CSharpCompilationReference
(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_1");
1573
CSharpCompilation comp3 = CreateCompilationWithMscorlib45(source3, new MetadataReference[] { new
CSharpCompilationReference
(comp2), new
CSharpCompilationReference
(comp1, embedInteropTypes: true) });
1615
CSharpCompilation comp2 = CreateCompilationWithMscorlib45(source2, new MetadataReference[] { new
CSharpCompilationReference
(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_2");
1626
CSharpCompilation comp3 = CreateCompilationWithMscorlib45(source3, new MetadataReference[] { new
CSharpCompilationReference
(comp2), new
CSharpCompilationReference
(comp1, embedInteropTypes: true) });
1671
CSharpCompilation comp2 = CreateCompilationWithMscorlib45(source2, new MetadataReference[] { new
CSharpCompilationReference
(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_3");
1680
CSharpCompilation comp3 = CreateCompilationWithMscorlib45(source3, new MetadataReference[] { new
CSharpCompilationReference
(comp2), new
CSharpCompilationReference
(comp1, embedInteropTypes: true) });
1719
CSharpCompilation comp2 = CreateCompilationWithMscorlib45(source2, new MetadataReference[] { new
CSharpCompilationReference
(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_4");
1728
CSharpCompilation comp3 = CreateCompilationWithMscorlib45(source3, new MetadataReference[] { new
CSharpCompilationReference
(comp2), new
CSharpCompilationReference
(comp1, embedInteropTypes: true) });
Semantics\ColorColorTests.cs (2)
2104
new
CSharpCompilationReference
(refLib),
2147
new
CSharpCompilationReference
(refLib),
Semantics\ConstantTests.cs (4)
2845
var compilation2 = CreateCompilation(source2, new MetadataReference[] { new
CSharpCompilationReference
(compilation1) });
2886
var reference1 = new
CSharpCompilationReference
(compilation1);
2888
var reference2 = new
CSharpCompilationReference
(compilation2);
2890
var reference3 = new
CSharpCompilationReference
(compilation3);
Semantics\ImplicitObjectCreationTests.cs (3)
4402
new[] { new
CSharpCompilationReference
(libBv1) },
4418
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libAv1), new
CSharpCompilationReference
(libBv2) },
Semantics\InheritanceBindingTests.cs (3)
6217
CreateCompilation(text2, new[] { new
CSharpCompilationReference
(comp1) }).VerifyDiagnostics(
6255
var comp = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) });
8237
var refs = new List<MetadataReference>(baseCompilations.Select(c => new
CSharpCompilationReference
(c)));
Semantics\InitOnlyMemberTests.cs (1)
4600
new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) },
Semantics\LambdaTests.cs (2)
385
new[] { new
CSharpCompilationReference
(comp1) });
434
new
CSharpCompilationReference
(comp1),
Semantics\NamedAndOptionalTests.cs (1)
1679
var exeComp = CreateCompilation(main, new[] { new
CSharpCompilationReference
(libComp) }, options: TestOptions.ReleaseExe, assemblyName: "Main");
Semantics\NullableReferenceTypesTests.cs (10)
8801
var compRefs0 = new MetadataReference[] { new
CSharpCompilationReference
(comp0) };
8824
compRefs0 = new MetadataReference[] { new
CSharpCompilationReference
(comp0) };
8854
compRefs0 = new MetadataReference[] { new
CSharpCompilationReference
(comp0) };
8933
var comp1A = CreateCompilation(source1, references: new MetadataReference[] { new
CSharpCompilationReference
(comp0) });
8983
var comp1A = CreateCompilation(source1, references: new[] { new
CSharpCompilationReference
(comp0) });
9147
references: new MetadataReference[] { new
CSharpCompilationReference
(comp0) });
9415
var comp1 = CreateCompilation(source1, references: new MetadataReference[] { new
CSharpCompilationReference
(comp0) });
73275
new MetadataReference[] { new
CSharpCompilationReference
(piaCompilation, embedInteropTypes: true) },
107922
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { new
CSharpCompilationReference
(comp0) });
107940
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { new
CSharpCompilationReference
(comp0) });
Semantics\OverloadResolutionTests.cs (2)
2308
", new MetadataReference[] { new
CSharpCompilationReference
(cCommon) }, assemblyName: "cCS");
2332
new MetadataReference[] { new
CSharpCompilationReference
(cCommon) });
Semantics\StructsTests.cs (2)
382
new[] { MscorlibRef, new
CSharpCompilationReference
(c1) },
385
var c1AsmRef = c2.GetReferencedAssemblySymbol(new
CSharpCompilationReference
(c1));
Semantics\UseSiteErrorTests.cs (8)
1050
new[] { MscorlibRef, new
CSharpCompilationReference
(lib1) },
1083
var main = CreateCompilation(mainSource, new[] { new
CSharpCompilationReference
(lib) }, assemblyName: "Main");
1115
var main = CreateCompilation(mainSource, new[] { new
CSharpCompilationReference
(lib) }, assemblyName: "Main");
1144
var main = CreateCompilation(mainSource, new[] { new
CSharpCompilationReference
(lib) }, assemblyName: "Main");
1241
var derivedLib = CreateCompilation(derivedSource, assemblyName: "DerivedAssembly", references: new[] { new
CSharpCompilationReference
(baseLib) });
1257
CreateCompilation(programSource, references: new[] { new
CSharpCompilationReference
(derivedLib) }).VerifyDiagnostics(
2185
CSharpCompilation comp2 = CreateCompilation(source2, new MetadataReference[] { new
CSharpCompilationReference
(comp1) });
2203
CSharpCompilation comp3 = CreateCompilation(source3, new MetadataReference[] { new
CSharpCompilationReference
(comp2) });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (284)
BadSymbolReference.cs (12)
464
var compilation3 = CreateCompilation(a_cs, new MetadataReference[] { new
CSharpCompilationReference
(cl3Compilation) });
470
var compilation4 = CreateCompilation(a_cs, new MetadataReference[] { new
CSharpCompilationReference
(cl3BadCompilation1) });
601
var compilation5 = CreateCompilation(a_cs, new MetadataReference[] { new
CSharpCompilationReference
(cl3BadCompilation2) });
842
var lib1Ref = new
CSharpCompilationReference
(lib1);
852
var lib2Ref = new
CSharpCompilationReference
(lib2);
867
var lib3Ref = new
CSharpCompilationReference
(lib3);
1031
var lib1Ref = new
CSharpCompilationReference
(lib1);
1053
var lib2Ref = new
CSharpCompilationReference
(lib2);
1079
var lib3Ref = new
CSharpCompilationReference
(lib3);
1316
var lib1Ref = new
CSharpCompilationReference
(lib1);
1325
var lib2Ref = new
CSharpCompilationReference
(lib2);
1334
var lib3Ref = new
CSharpCompilationReference
(lib3);
Compilation\GetUnusedImportDirectivesTests.cs (1)
347
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(lib, aliases: ImmutableArray.Create("A")) });
Compilation\ReferenceManagerTests.cs (49)
70
var testRefV1 = CreateCompilation("public class E : D { }", new MetadataReference[] { new
CSharpCompilationReference
(refV1), v2 }, assemblyName: "testRefV1");
73
var testRefV2 = CreateCompilation("public class E : D { }", new MetadataReference[] { new
CSharpCompilationReference
(refV2), v1 }, assemblyName: "testRefV2");
112
var testRefV1 = CreateCompilation("public class E { }", new MetadataReference[] { new
CSharpCompilationReference
(refV1), v2 });
115
var testRefV2 = CreateCompilation("public class E { }", new MetadataReference[] { new
CSharpCompilationReference
(refV2), v1 });
165
references: new[] { new
CSharpCompilationReference
(libV2) },
185
new
CSharpCompilationReference
(libV1),
186
new
CSharpCompilationReference
(libV3),
187
new
CSharpCompilationReference
(refLibV2)
205
new
CSharpCompilationReference
(libV3),
206
new
CSharpCompilationReference
(libV1),
207
new
CSharpCompilationReference
(refLibV2)
297
references: new[] { new
CSharpCompilationReference
(libV1) },
310
references: new[] { new
CSharpCompilationReference
(refLibV1), new
CSharpCompilationReference
(libV1) },
346
references: new[] { new
CSharpCompilationReference
(refLibV1), new
CSharpCompilationReference
(libV2), new
CSharpCompilationReference
(x) });
452
references: new[] { new
CSharpCompilationReference
(a1), new
CSharpCompilationReference
(b2) },
469
references: new[] { new
CSharpCompilationReference
(refA1B2), new
CSharpCompilationReference
(a2), new
CSharpCompilationReference
(b1) });
559
references: new MetadataReference[] { MinCorlibRef, new
CSharpCompilationReference
(libV1) },
573
references: new MetadataReference[] { MinCorlibRef, new
CSharpCompilationReference
(refLibV1), new
CSharpCompilationReference
(libV2) });
617
references: new[] { new
CSharpCompilationReference
(libV1) },
632
references: new[] { new
CSharpCompilationReference
(refLibV1), new
CSharpCompilationReference
(libV2) });
689
references: new[] { new
CSharpCompilationReference
(libV1) },
707
references: new MetadataReference[] { MetadataReference.CreateFromImage(refLibV1.EmitToArray()), new
CSharpCompilationReference
(libV2) },
1095
new[] { new
CSharpCompilationReference
(libV1) },
1099
new[] { new
CSharpCompilationReference
(libV1), new
CSharpCompilationReference
(refLibV1), new
CSharpCompilationReference
(libV2) },
1393
var b = CreateCompilation(sourceB, new[] { new
CSharpCompilationReference
(a) }, assemblyName: "B");
1440
var b = CreateCompilation("public class B : A { } ", new[] { new
CSharpCompilationReference
(a) }, assemblyName: "B");
1889
var r1 = new
CSharpCompilationReference
(pl);
1927
new[] { new
CSharpCompilationReference
(libBv1) },
1942
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libAv1), new
CSharpCompilationReference
(libBv2) });
1971
new[] { new
CSharpCompilationReference
(libBv1) },
1986
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libAv1), new
CSharpCompilationReference
(libBv2) });
2013
var libAv1 = CreateCompilation(libASource, new[] { new
CSharpCompilationReference
(libBv1) }, assemblyName: "A", options: s_signedDll);
2026
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libAv1), new
CSharpCompilationReference
(libBv2) });
2087
var libAv1 = CreateCompilation(libASource, new[] { new
CSharpCompilationReference
(libBv1) }, assemblyName: "A", options: s_signedDll);
2101
var comp = CreateCompilation(source, new[] { new
CSharpCompilationReference
(libAv1), new
CSharpCompilationReference
(libBv2) });
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
3100
var ref1 = new
CSharpCompilationReference
(comp1);
3964
var c2 = CreateCompilation(tree2, references: new[] { new
CSharpCompilationReference
(c1) });
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
14989
}", references: new[] { new
CSharpCompilationReference
(pia, embedInteropTypes: true) });
DocumentationComments\CrefTests.cs (9)
2000
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib1), new
CSharpCompilationReference
(lib2) });
2042
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib1), new
CSharpCompilationReference
(lib2) });
2093
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib1), new
CSharpCompilationReference
(lib2) });
2135
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib, aliases: ImmutableArray.Create("LibAlias")) });
2165
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib, aliases: ImmutableArray.Create("LibAlias")) });
2195
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new
CSharpCompilationReference
(lib, aliases: ImmutableArray.Create("LibAlias")) });
SymbolDisplay\SymbolDisplayTests.cs (1)
4424
var compref = new
CSharpCompilationReference
(complib);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (3)
199
var comp1ref = new
CSharpCompilationReference
(comp1);
203
var comp2ref = new
CSharpCompilationReference
(comp2);
860
var compref = new
CSharpCompilationReference
(comp0);
Symbols\AssemblyAndNamespaceTests.cs (6)
119
var compRef = new
CSharpCompilationReference
(comp1);
162
var compRef = new
CSharpCompilationReference
(comp1);
205
var compRef1 = new
CSharpCompilationReference
(comp1);
206
var compRef2 = new
CSharpCompilationReference
(comp2);
254
var compRef1 = new
CSharpCompilationReference
(comp1);
255
var compRef2 = new
CSharpCompilationReference
(comp2);
Symbols\CompilationCreationTests.cs (29)
1434
new
CSharpCompilationReference
(varC_MTTestLib2)
1473
new
CSharpCompilationReference
(varC_MTTestLib2),
1490
new
CSharpCompilationReference
(varC_MTTestLib2),
1491
new
CSharpCompilationReference
(varC_MTTestLib3)
1558
new
CSharpCompilationReference
(varC_MTTestLib2),
1559
new
CSharpCompilationReference
(varC_MTTestLib3),
1577
new
CSharpCompilationReference
(varC_MTTestLib2),
1578
new
CSharpCompilationReference
(varC_MTTestLib3),
1579
new
CSharpCompilationReference
(varC_MTTestLib4)
1681
new
CSharpCompilationReference
(varC_MTTestLib3)
1693
new
CSharpCompilationReference
(varC_MTTestLib2)
1705
new
CSharpCompilationReference
(varC_MTTestLib2),
1706
new
CSharpCompilationReference
(varC_MTTestLib3),
1707
new
CSharpCompilationReference
(varC_MTTestLib4)
1782
new
CSharpCompilationReference
(varC_MTTestLib4),
1783
new
CSharpCompilationReference
(varC_MTTestLib2),
1784
new
CSharpCompilationReference
(varC_MTTestLib3)
1801
new
CSharpCompilationReference
(varC_MTTestLib4)
1814
new
CSharpCompilationReference
(varC_MTTestLib2),
1815
new
CSharpCompilationReference
(varC_MTTestLib3),
1816
new
CSharpCompilationReference
(varC_MTTestLib4)
2234
new
CSharpCompilationReference
(localC1_V1),
2235
new
CSharpCompilationReference
(localC4_V1),
2236
new
CSharpCompilationReference
(c7)
2255
new
CSharpCompilationReference
(c3),
2256
new
CSharpCompilationReference
(localC1_V2),
2257
new
CSharpCompilationReference
(localC4_V2),
2258
new
CSharpCompilationReference
(c7)
2561
new
CSharpCompilationReference
(c1)
Symbols\CorLibrary\Choosing.cs (2)
49
", new[] { new
CSharpCompilationReference
(corLib) }, options: TestOptions.ReleaseDll);
70
", new[] { new
CSharpCompilationReference
(corLib) }, options: TestOptions.ReleaseDll);
Symbols\CustomModifiersTests.cs (1)
1525
var compilation2 = CreateCompilationWithMscorlib45(new SyntaxTree[] { }, references: new[] { new
CSharpCompilationReference
(compilation1) });
Symbols\ExtensionMethodTests.cs (3)
2848
var compilation2 = CreateCompilation(source2, references: new[] { new
CSharpCompilationReference
(compilation1) }, parseOptions: TestOptions.Regular8);
2867
compilation2 = CreateCompilation(source2, references: new[] { new
CSharpCompilationReference
(compilation1) }, parseOptions: TestOptions.Regular7);
3109
var libReference = new
CSharpCompilationReference
(libCompilation);
Symbols\GenericConstraintTests.cs (4)
3079
var compilation2 = CreateCompilation(source2, assemblyName: "d03a3229-eb22-4682-88df-77efaa348e3b", references: new MetadataReference[] { new
CSharpCompilationReference
(compilation1) });
3095
var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new
CSharpCompilationReference
(compilation2) });
6442
var compilation2 = CreateCompilation(source2, references: new MetadataReference[] { new
CSharpCompilationReference
(compilation1) });
6446
var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new
CSharpCompilationReference
(compilation2) });
Symbols\IndexerTests.cs (1)
2833
var comp2 = CreateCompilation(src2, new[] { new
CSharpCompilationReference
(comp1) });
Symbols\InterfaceImplementationTests.cs (8)
234
var comp1ref = new
CSharpCompilationReference
(comp1);
238
var comp2ref = new
CSharpCompilationReference
(comp2);
306
var comp1ref = new
CSharpCompilationReference
(comp1);
310
var comp2ref = new
CSharpCompilationReference
(comp2);
420
var comp1ref = new
CSharpCompilationReference
(comp1);
424
var comp2ref = new
CSharpCompilationReference
(comp2);
973
references: new MetadataReference[] { new
CSharpCompilationReference
(comp1) },
1894
var ref1 = new
CSharpCompilationReference
(comp1);
Symbols\Metadata\PE\NoPia.cs (16)
654
new
CSharpCompilationReference
(localTypes1)
667
new
CSharpCompilationReference
(localTypes1));
1108
var pia5Link = new
CSharpCompilationReference
(varC_Pia5, embedInteropTypes: true);
1109
var pia5Ref = new
CSharpCompilationReference
(varC_Pia5, embedInteropTypes: false);
1116
var pia1Link = new
CSharpCompilationReference
(varC_Pia1, embedInteropTypes: true);
1117
var pia1Ref = new
CSharpCompilationReference
(varC_Pia1, embedInteropTypes: false);
1124
var library2Ref = new
CSharpCompilationReference
(varC_Library2, embedInteropTypes: false);
1125
var library2Link = new
CSharpCompilationReference
(varC_Library2, embedInteropTypes: true);
1269
var varALink = new
CSharpCompilationReference
(varC_A, embedInteropTypes: true);
1270
var varARef = new
CSharpCompilationReference
(varC_A, embedInteropTypes: false);
1274
var varBLink = new
CSharpCompilationReference
(varC_B, embedInteropTypes: true);
1275
var varBRef = new
CSharpCompilationReference
(varC_B, embedInteropTypes: false);
1279
var varCLink = new
CSharpCompilationReference
(varC_C, embedInteropTypes: true);
1280
var varCRef = new
CSharpCompilationReference
(varC_C, embedInteropTypes: false);
1284
var varDLink = new
CSharpCompilationReference
(varC_D, embedInteropTypes: true);
1285
var varDRef = new
CSharpCompilationReference
(varC_D, embedInteropTypes: false);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (1)
561
new
CSharpCompilationReference
(localType)
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (7)
83
new
CSharpCompilationReference
(localType1)
90
new
CSharpCompilationReference
(localType2),
91
new
CSharpCompilationReference
(localType1)
426
references: new List<MetadataReference>() { new
CSharpCompilationReference
(localType1, embedInteropTypes: true) });
432
new
CSharpCompilationReference
(localType2),
433
new
CSharpCompilationReference
(localType1)
473
new
CSharpCompilationReference
(localType)
Symbols\Metadata\PE\TypeForwarders.cs (15)
1612
var modCompilation = CreateCompilation(mod, references: new[] { new
CSharpCompilationReference
(forwardedTypesCompilation) }, options: TestOptions.ReleaseModule);
1622
var appCompilation = CreateCompilation(app, references: new[] { modRef1, new
CSharpCompilationReference
(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll);
1678
appCompilation = CreateCompilation(app, references: new MetadataReference[] { modRef2, new
CSharpCompilationReference
(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll);
1700
appCompilation = CreateCompilation(app, references: new[] { modRef1, new
CSharpCompilationReference
(forwardedTypesCompilation) }, options: TestOptions.ReleaseModule);
1827
", new[] { new
CSharpCompilationReference
(cA_v1) }, options: TestOptions.ReleaseDll, assemblyName: "B");
1841
", new[] { new
CSharpCompilationReference
(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A");
1847
", new[] { new
CSharpCompilationReference
(cC_v1) }, options: TestOptions.ReleaseModule, assemblyName: "D");
1851
var cA_v3 = CreateCompilation(@"", new[] { cD_ImageRef, new
CSharpCompilationReference
(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A");
1862
new
CSharpCompilationReference
(cA_v2),
1863
new
CSharpCompilationReference
(cA_v3)
1868
new
CSharpCompilationReference
(cB),
1874
new
CSharpCompilationReference
(cC_v1),
1875
new
CSharpCompilationReference
(cC_v2),
1955
comp = CreateCompilation(sourceProgram, references: new[] { refA1, new
CSharpCompilationReference
(compB2, aliases: ImmutableArray.Create("B")), refBImpl });
2019
comp = CreateCompilation(sourceProgram, references: new[] { refA1, new
CSharpCompilationReference
(compB2, aliases: ImmutableArray.Create("B")), refBImpl });
Symbols\OverriddenOrHiddenMembersTests.cs (4)
735
var comp1ref = new
CSharpCompilationReference
(comp1);
739
var comp2ref = new
CSharpCompilationReference
(comp2);
2195
", new MetadataReference[] { new
CSharpCompilationReference
(c1) });
2238
", new MetadataReference[] { new
CSharpCompilationReference
(c1) });
Symbols\Retargeting\NoPia.cs (32)
954
references: new MetadataReference[] { new
CSharpCompilationReference
(Pia1, embedInteropTypes: true) });
959
references: new MetadataReference[] { new
CSharpCompilationReference
(Pia1, embedInteropTypes: true) });
1260
var localTypes1Ref = new
CSharpCompilationReference
(LocalTypes1);
1286
var localTypes1Ref = new
CSharpCompilationReference
(LocalTypes1);
1310
var piaRef = new
CSharpCompilationReference
(Pia1);
1313
references: new MetadataReference[] { new
CSharpCompilationReference
(Pia1, embedInteropTypes: true) });
1316
var localTypes1Ref = new
CSharpCompilationReference
(LocalTypes1);
1849
references: new MetadataReference[] { new
CSharpCompilationReference
(pia).WithEmbedInteropTypes(true) });
1937
references: new MetadataReference[] { new
CSharpCompilationReference
(Pia1, embedInteropTypes: true) });
2046
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2047
new
CSharpCompilationReference
(pia)});
2062
new
CSharpCompilationReference
(pia)});
2076
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2171
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2172
new
CSharpCompilationReference
(pia)});
2187
new
CSharpCompilationReference
(pia)});
2201
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2296
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2297
new
CSharpCompilationReference
(pia)});
2312
new
CSharpCompilationReference
(pia)});
2326
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2403
references: new MetadataReference[] { new
CSharpCompilationReference
(pia, embedInteropTypes: true) });
2408
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2409
new
CSharpCompilationReference
(pia)});
2423
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2504
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2505
new
CSharpCompilationReference
(pia)});
2520
new
CSharpCompilationReference
(pia)});
2534
references: new MetadataReference[] {new
CSharpCompilationReference
(localTypes2),
2599
references: new[] { new
CSharpCompilationReference
(pia1, embedInteropTypes: true) });
2617
references: new[] { new
CSharpCompilationReference
(multiModule),
2618
new
CSharpCompilationReference
(pia1)});
Symbols\Retargeting\RetargetCustomAttributes.cs (3)
69
c1 = new
CSharpCompilationReference
(compilation1);
74
c2 = new
CSharpCompilationReference
(compilation2);
298
var c2 = CreateEmptyCompilation(source2, new MetadataReference[] { NewMsCorLib, new
CSharpCompilationReference
(c1) });
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
36
CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { newMsCorLib, new
CSharpCompilationReference
(c1) });
150
var r1 = new
CSharpCompilationReference
(c1);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (2)
118
new
CSharpCompilationReference
(comp1)
382
new
CSharpCompilationReference
(comp1)
Symbols\Retargeting\RetargetingTests.cs (4)
260
var compilation2 = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1_v1) }, assemblyName: "assembly2");
262
var compilation2Ref = new
CSharpCompilationReference
(compilation2);
264
var compilation3 = CreateCompilation("", new[] { compilation2Ref, new
CSharpCompilationReference
(compilation1_v2) }, assemblyName: "assembly3");
735
var comp2 = CreateEmptyCompilation("", new[] { MscorlibRef_v4_0_30316_17626, new
CSharpCompilationReference
(comp1) }, TestOptions.ReleaseDll);
Symbols\Source\BaseClassTests.cs (7)
1031
var comp2 = CreateCompilation(text, new MetadataReference[] { ClassAv2, new
CSharpCompilationReference
(comp) });
1090
new
CSharpCompilationReference
(comp)
1159
new
CSharpCompilationReference
(comp),
1216
new
CSharpCompilationReference
(comp)
1614
CSharpCompilation c2 = CreateCompilation(textB, new[] { new
CSharpCompilationReference
(c1) });
1651
var compilation2 = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) }, assemblyName: "Two");
1843
var compilation2 = CreateCompilation(source2, new[] { new
CSharpCompilationReference
(compilation1) }, assemblyName: "Two");
Symbols\Source\EventTests.cs (1)
507
var libCompRef = new
CSharpCompilationReference
(libComp);
Symbols\Source\ExternAliasTests.cs (1)
471
var libRef = new
CSharpCompilationReference
(CreateCompilation(libSource, assemblyName: "lib"), aliases: ImmutableArray.Create("A"));
Symbols\Source\MethodTests.cs (4)
756
var compRef1 = new
CSharpCompilationReference
(comp1);
762
var compRef2 = new
CSharpCompilationReference
(comp2);
1045
var compRef1 = new
CSharpCompilationReference
(comp1);
1051
var compRef2 = new
CSharpCompilationReference
(comp2);
Symbols\SymbolDistinguisherTests.cs (4)
77
var libRef = new
CSharpCompilationReference
(CreateCompilation(Parse(source, "file1.cs"), assemblyName: "Metadata"));
117
var libRef = new
CSharpCompilationReference
(CreateCompilation(tree, assemblyName: "Metadata"));
579
var libRef = new
CSharpCompilationReference
(CreateCompilation(Parse(libSource, "file.cs"), assemblyName: "Metadata"));
781
var ref0 = new
CSharpCompilationReference
(comp0);
Symbols\SymbolEqualityTests.cs (1)
341
var comp2 = (Compilation)CreateCompilation(source2, new[] { new
CSharpCompilationReference
((CSharpCompilation)comp1) });
Symbols\SymbolErrorTests.cs (34)
5600
new
CSharpCompilationReference
(lib)
5661
new
CSharpCompilationReference
(lib)
5721
new
CSharpCompilationReference
(lib)
5782
new
CSharpCompilationReference
(lib)
5841
new
CSharpCompilationReference
(lib)
5898
new
CSharpCompilationReference
(lib)
5957
new
CSharpCompilationReference
(lib)
6016
new
CSharpCompilationReference
(lib)
6214
new
CSharpCompilationReference
(lib)
6275
new
CSharpCompilationReference
(lib)
6336
new
CSharpCompilationReference
(lib)
6397
new
CSharpCompilationReference
(lib)
6461
new
CSharpCompilationReference
(lib)
6524
new
CSharpCompilationReference
(lib)
6588
new
CSharpCompilationReference
(lib)
6658
new
CSharpCompilationReference
(lib)
6721
new
CSharpCompilationReference
(lib)
6791
new
CSharpCompilationReference
(lib)
7190
var forwardedTypes1Ref = new
CSharpCompilationReference
(forwardedTypes1);
7193
var forwardedTypes2Ref = new
CSharpCompilationReference
(forwardedTypes2);
7267
new
CSharpCompilationReference
(forwardedTypes1, aliases: ImmutableArray.Create("FT1"))
7286
new
CSharpCompilationReference
(forwardedTypes1, ImmutableArray.Create("FT1"))
13729
var compRef1 = new
CSharpCompilationReference
(comp1);
16115
var ref1 = new
CSharpCompilationReference
(comp1);
16183
var ref1 = new
CSharpCompilationReference
(comp, embedInteropTypes: true);
16211
var ref1 = new
CSharpCompilationReference
(comp);
16249
var ref1 = new
CSharpCompilationReference
(comp, embedInteropTypes: true);
16452
var ref1 = new
CSharpCompilationReference
(comp, embedInteropTypes: true);
17652
new
CSharpCompilationReference
(ref1),
17653
new
CSharpCompilationReference
(ref2),
17733
new
CSharpCompilationReference
(ref1),
17734
new
CSharpCompilationReference
(ref2),
20294
", new[] { new
CSharpCompilationReference
(comp1) }, options: TestOptions.ReleaseDll);
20308
var comp3 = CreateCompilation(source3, new[] { new
CSharpCompilationReference
(comp2) }, options: TestOptions.ReleaseDll);
Symbols\TypeResolutionTests.cs (6)
68
new
CSharpCompilationReference
(c1),
78
new
CSharpCompilationReference
(c2),
91
new
CSharpCompilationReference
(c1),
92
new
CSharpCompilationReference
(c2),
172
new
CSharpCompilationReference
(c1),
173
new
CSharpCompilationReference
(c2)
Symbols\TypeTests.cs (8)
190
var compRef1 = new
CSharpCompilationReference
(comp1);
194
var compRef2 = new
CSharpCompilationReference
(comp2);
378
var compRef1 = new
CSharpCompilationReference
(comp1);
397
compRef1 = new
CSharpCompilationReference
(comp1);
416
compRef1 = new
CSharpCompilationReference
(comp1);
439
compRef1 = new
CSharpCompilationReference
(comp1);
781
var compilation3 = CreateCompilation(testText, new[] { new
CSharpCompilationReference
(compilation1), new
CSharpCompilationReference
(compilation2) });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
MetadataTestHelpers.cs (1)
54
refs.Add(new
CSharpCompilationReference
(c));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
CodeGen\WinMdEventTests.cs (1)
626
var comp2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new MetadataReference[] { new
CSharpCompilationReference
(comp1), serializationRef, SystemXmlRef }), TestOptions.ReleaseExe);