21 references to CreateCompilationWithCSharp
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAwaitForeachTests.cs (1)
6537CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
CodeGen\CodeGenDynamicTests.cs (4)
14972var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 14976comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe); 15017var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15021comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe);
CodeGen\CodeGenForEachTests.cs (1)
3677var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
13330var compilation = CreateCompilationWithCSharp(@"
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
DynamicTests.cs (1)
1041var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\InterpolationTests.cs (1)
16251var comp = CreateCompilationWithCSharp(new[] { code, handler });
Semantics\NullableReferenceTypesTests.cs (2)
2145var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable()); 2179var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable());
Semantics\RawInterpolationTests_Handler.cs (1)
12619var comp = CreateCompilationWithCSharp(new[] { code, handler });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\CheckedUserDefinedOperatorsTests.cs (9)
6306var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6316compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6327var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6411var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6421compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6432var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6526var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6538compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6551var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() });