63 references to CreateCompilationWithSpan
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenForEachTests.cs (1)
3298var comp = CreateCompilationWithSpan(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenFunctionPointersTests.cs (6)
5017var comp = CreateCompilationWithSpan(@" 10987var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 10994comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11021var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11037comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11283var comp = CreateCompilationWithSpan(@"
Emit\EmitMetadataTests.cs (2)
3399CreateCompilationWithSpan(source, 3436CreateCompilationWithSpan(source,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PatternMatchingTests.cs (4)
8490CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 8519CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 10090CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 10119CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview)
Semantics\PatternMatchingTests2.cs (1)
3613var comp = CreateCompilationWithSpan(source);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IConversionExpression.cs (2)
3434var comp = CreateCompilationWithSpan(source); 3450comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular12);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\DelegateTypeTests.cs (1)
12237var comp = CreateCompilationWithSpan(source, options: TestOptions.ReleaseExe);
Semantics\IndexAndRangeTests.cs (2)
1907var comp = CreateCompilationWithSpan(src); 2093var comp = CreateCompilationWithSpan(src);
Semantics\NullableReferenceTypesTests.cs (2)
145048var comp = CreateCompilationWithSpan(src + @" 145066comp = CreateCompilationWithSpan(src + @"
Semantics\RefEscapingTests.cs (19)
47var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2633var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2666var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2797var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2918var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2947var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3041var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3195var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3277var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3447var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3784var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3829var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3994var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4184var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 6860var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 9010var comp = CreateCompilationWithSpan(source); 9040var comp = CreateCompilationWithSpan(source); 10275var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 10362var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll);
Semantics\RefFieldTests.cs (9)
16916var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30318var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30374var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 30406var comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseDll); 30666var comp = CreateCompilationWithSpan(source); 30692var comp = CreateCompilationWithSpan(source); 30719var comp = CreateCompilationWithSpan(source); 30744var comp = CreateCompilationWithSpan(source); 30761var comp = CreateCompilationWithSpan(source);
Semantics\SemanticErrorTests.cs (1)
24906var comp = CreateCompilationWithSpan(source);
Semantics\SimpleLambdaParametersWithModifiersTests.cs (7)
212var compilation = CreateCompilationWithSpan(""" 240var compilation = CreateCompilationWithSpan(""" 268var compilation = CreateCompilationWithSpan(""" 299var compilation = CreateCompilationWithSpan(""" 334var compilation = CreateCompilationWithSpan($$""" 1139var compilation = CreateCompilationWithSpan($$""" 1168var compilation = CreateCompilationWithSpan($$"""
Semantics\SpanStackSafetyTests.cs (3)
1827CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1834var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular13); 1837comp = CreateCompilationWithSpan(source);
Semantics\StructConstructorTests.cs (3)
3696var comp = CreateCompilationWithSpan(source); 3745var comp = CreateCompilationWithSpan(source); 3770var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));