85 references to CreateCompilation
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
OverloadResolutionPriorityTests.cs (6)
663
var comp1_1 =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
664
var comp1_2 =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
711
var comp1_1 =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
712
var comp1_2 =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
772
var comp1_1 =
CreateCompilation
(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
773
var comp1_2 =
CreateCompilation
(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
Semantics\ExperimentalAttributeTests.cs (8)
924
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
925
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
961
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
962
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
989
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
990
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
1026
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
1027
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InheritanceBindingTests.cs (2)
2995
var comp11 =
CreateCompilation
(new AssemblyIdentity("lib1", new Version("4.2.1.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true),
2998
var comp12 =
CreateCompilation
(new AssemblyIdentity("lib1", new Version("4.1.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true),
Semantics\NativeIntegerTests.cs (8)
845
var comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
883
comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null);
956
var comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
1000
comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null);
1049
var comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { sourceA }, references: references);
1052
comp =
CreateCompilation
(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { sourceA }, references: references);
1137
var comp =
CreateCompilation
(new AssemblyIdentity("9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e", new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
1217
var comp =
CreateCompilation
(new AssemblyIdentity("c804cc09-8f73-44a1-9cfe-9567bed1def6", new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
Semantics\RefFieldTests.cs (4)
26591
var comp =
CreateCompilation
(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
26648
var comp =
CreateCompilation
(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
26652
comp =
CreateCompilation
(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
26716
var comp =
CreateCompilation
(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (57)
Symbols\CompilationCreationTests.cs (35)
685
var varC_MTTestLib1_V1 =
CreateCompilation
(varMTTestLib1_V1_Name,
700
var varC_MTTestLib2 =
CreateCompilation
(varMTTestLib2_Name,
723
var c2 =
CreateCompilation
(new AssemblyIdentity("c2"),
757
var varC_MTTestLib1_V2 =
CreateCompilation
(varMTTestLib1_V2_Name,
776
var varC_MTTestLib3 =
CreateCompilation
(varMTTestLib3_Name,
816
var c3 =
CreateCompilation
(new AssemblyIdentity("c3"),
879
var varC_MTTestLib1_V3 =
CreateCompilation
(varMTTestLib1_V3_Name,
902
var varC_MTTestLib4 =
CreateCompilation
(varMTTestLib4_Name,
952
var c4 =
CreateCompilation
(new AssemblyIdentity("c4"),
1057
var c5 =
CreateCompilation
(new AssemblyIdentity("c5"),
1066
var c6 =
CreateCompilation
(new AssemblyIdentity("c6"),
1075
var c7 =
CreateCompilation
(new AssemblyIdentity("c7"),
1143
var c8 =
CreateCompilation
(new AssemblyIdentity("c8"),
1157
var c9 =
CreateCompilation
(new AssemblyIdentity("c9"),
1166
var c10 =
CreateCompilation
(new AssemblyIdentity("c10"),
1421
var varC_MTTestLib2 =
CreateCompilation
(varMTTestLib2_Name, (string[])null,
1430
var c2 =
CreateCompilation
(new AssemblyIdentity("c2"),
1468
var varC_MTTestLib3 =
CreateCompilation
(varMTTestLib3_Name,
1485
var c3 =
CreateCompilation
(new AssemblyIdentity("c3"),
1553
var varC_MTTestLib4 =
CreateCompilation
(varMTTestLib4_Name,
1573
var c4 =
CreateCompilation
(new AssemblyIdentity("c4"),
1678
var c5 =
CreateCompilation
(new AssemblyIdentity("c5"),
1690
var c6 =
CreateCompilation
(new AssemblyIdentity("c6"),
1702
var c7 =
CreateCompilation
(new AssemblyIdentity("c7"),
1779
var c8 =
CreateCompilation
(new AssemblyIdentity("c8"),
1798
var c9 =
CreateCompilation
(new AssemblyIdentity("c9"),
1810
var c10 =
CreateCompilation
(new AssemblyIdentity("c10"),
2069
var localC1_V1 =
CreateCompilation
(localC1_V1_Name,
2091
var localC1_V2 =
CreateCompilation
(localC1_V2_Name,
2113
var localC4_V1 =
CreateCompilation
(localC4_V1_Name,
2128
var localC4_V2 =
CreateCompilation
(localC4_V2_Name,
2141
var c7 =
CreateCompilation
(new AssemblyIdentity("C7"),
2156
var c3 =
CreateCompilation
(new AssemblyIdentity("C3"),
2245
var c5 =
CreateCompilation
(new AssemblyIdentity("C5"),
2558
var c2 =
CreateCompilation
(c2_Name, null, new MetadataReference[]
Symbols\GenericConstraintTests.cs (2)
7325
var remappedComp11 =
CreateCompilation
(
7331
var remappedComp12 =
CreateCompilation
(
Symbols\RequiredMembersTests.cs (10)
2193
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2205
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2242
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2270
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2288
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2300
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2548
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2558
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2579
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2589
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
23
var comp1 =
CreateCompilation
(
104
var comp2 =
CreateCompilation
(
317
var comp1 =
CreateCompilation
(
362
var comp2 =
CreateCompilation
(
Symbols\Retargeting\RetargetingTests.cs (6)
935
var retargeted1 =
CreateCompilation
(retargetedIdentity, new[] { retargetedSource }, references: standardReference);
937
var retargeted2 =
CreateCompilation
(retargetedIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { retargetedSource }, references: standardReference);
1048
var beforeRetargeting =
CreateCompilation
(originalIdentity, new[] { corlibSource }, new MetadataReference[0]);
1062
var afterRetargeting =
CreateCompilation
(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]);
1126
var beforeRetargeting =
CreateCompilation
(originalIdentity, new[] { corlibSource }, new MetadataReference[0]);
1139
var afterRetargeting =
CreateCompilation
(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]);