21 references to CreateCompilationWithCSharp
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAwaitForeachTests.cs (1)
7472CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
CodeGen\CodeGenDynamicTests.cs (4)
15339var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15343comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe); 15384var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15388comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe);
CodeGen\CodeGenForEachTests.cs (1)
3684var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
13467var compilation = CreateCompilationWithCSharp(@"
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4419var compilation = CreateCompilationWithCSharp(new[] { tree, CSharpSyntaxTree.ParseText(IsExternalInitTypeDefinition) });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\InterpolationTests.cs (1)
17218var comp = CreateCompilationWithCSharp(new[] { code, handler });
Semantics\NullableReferenceTypesTests.cs (2)
2157var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable()); 2191var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable());
Semantics\RawInterpolationTests_Handler.cs (1)
12638var 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() });