82 references to CreateCompilation
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (11)
PseudoVariableTests.cs (3)
932
var compilationA1 =
CreateCompilation
(
938
var compilationB1 =
CreateCompilation
(
945
var compilationA2 =
CreateCompilation
(
ReferencedModulesTests.cs (8)
533
var compilationAS1 =
CreateCompilation
(
540
var compilationAS2 =
CreateCompilation
(
550
var compilationBN1 =
CreateCompilation
(
557
var compilationBN2 =
CreateCompilation
(
567
var compilationBS1 =
CreateCompilation
(
574
var compilationBS2 =
CreateCompilation
(
622
var compilationCN1 =
CreateCompilation
(
785
var compilation =
CreateCompilation
(identity, new[] { source }, references: references, options: options);
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)
25836
var comp =
CreateCompilation
(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
25893
var comp =
CreateCompilation
(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
25897
comp =
CreateCompilation
(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
25961
var comp =
CreateCompilation
(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (57)
Symbols\CompilationCreationTests.cs (35)
684
var varC_MTTestLib1_V1 =
CreateCompilation
(varMTTestLib1_V1_Name,
699
var varC_MTTestLib2 =
CreateCompilation
(varMTTestLib2_Name,
722
var c2 =
CreateCompilation
(new AssemblyIdentity("c2"),
756
var varC_MTTestLib1_V2 =
CreateCompilation
(varMTTestLib1_V2_Name,
775
var varC_MTTestLib3 =
CreateCompilation
(varMTTestLib3_Name,
815
var c3 =
CreateCompilation
(new AssemblyIdentity("c3"),
878
var varC_MTTestLib1_V3 =
CreateCompilation
(varMTTestLib1_V3_Name,
901
var varC_MTTestLib4 =
CreateCompilation
(varMTTestLib4_Name,
951
var c4 =
CreateCompilation
(new AssemblyIdentity("c4"),
1056
var c5 =
CreateCompilation
(new AssemblyIdentity("c5"),
1065
var c6 =
CreateCompilation
(new AssemblyIdentity("c6"),
1074
var c7 =
CreateCompilation
(new AssemblyIdentity("c7"),
1142
var c8 =
CreateCompilation
(new AssemblyIdentity("c8"),
1156
var c9 =
CreateCompilation
(new AssemblyIdentity("c9"),
1165
var c10 =
CreateCompilation
(new AssemblyIdentity("c10"),
1420
var varC_MTTestLib2 =
CreateCompilation
(varMTTestLib2_Name, (string[])null,
1429
var c2 =
CreateCompilation
(new AssemblyIdentity("c2"),
1467
var varC_MTTestLib3 =
CreateCompilation
(varMTTestLib3_Name,
1484
var c3 =
CreateCompilation
(new AssemblyIdentity("c3"),
1552
var varC_MTTestLib4 =
CreateCompilation
(varMTTestLib4_Name,
1572
var c4 =
CreateCompilation
(new AssemblyIdentity("c4"),
1677
var c5 =
CreateCompilation
(new AssemblyIdentity("c5"),
1689
var c6 =
CreateCompilation
(new AssemblyIdentity("c6"),
1701
var c7 =
CreateCompilation
(new AssemblyIdentity("c7"),
1778
var c8 =
CreateCompilation
(new AssemblyIdentity("c8"),
1797
var c9 =
CreateCompilation
(new AssemblyIdentity("c9"),
1809
var c10 =
CreateCompilation
(new AssemblyIdentity("c10"),
2068
var localC1_V1 =
CreateCompilation
(localC1_V1_Name,
2090
var localC1_V2 =
CreateCompilation
(localC1_V2_Name,
2112
var localC4_V1 =
CreateCompilation
(localC4_V1_Name,
2127
var localC4_V2 =
CreateCompilation
(localC4_V2_Name,
2140
var c7 =
CreateCompilation
(new AssemblyIdentity("C7"),
2155
var c3 =
CreateCompilation
(new AssemblyIdentity("C3"),
2244
var c5 =
CreateCompilation
(new AssemblyIdentity("C5"),
2557
var c2 =
CreateCompilation
(c2_Name, null, new MetadataReference[]
Symbols\GenericConstraintTests.cs (2)
7328
var remappedComp11 =
CreateCompilation
(
7334
var remappedComp12 =
CreateCompilation
(
Symbols\RequiredMembersTests.cs (10)
2176
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2188
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2225
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2253
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2271
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2283
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2449
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2459
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2480
var originalC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
2490
var retargetedC =
CreateCompilation
(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
24
var comp1 =
CreateCompilation
(
105
var comp2 =
CreateCompilation
(
318
var comp1 =
CreateCompilation
(
363
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]);