406 references to CreateCompilationWithMscorlibAndSpan
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (84)
CodeGen\CodeGenAsyncSpillTests.cs (5)
3708var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3715comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 3750var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3757comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 3789var comp = CreateCompilationWithMscorlibAndSpan(source, options: options);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2697CreateCompilationWithMscorlibAndSpan(@"
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (45)
173var comp = CreateCompilationWithMscorlibAndSpan(@$" 235var comp = CreateCompilationWithMscorlibAndSpan(@" 289var comp = CreateCompilationWithMscorlibAndSpan(@" 346var comp = CreateCompilationWithMscorlibAndSpan(@" 403var comp = CreateCompilationWithMscorlibAndSpan(@" 461var comp = CreateCompilationWithMscorlibAndSpan(@" 518var comp = CreateCompilationWithMscorlibAndSpan(@" 628var comp = CreateCompilationWithMscorlibAndSpan(@" 705var comp = CreateCompilationWithMscorlibAndSpan(@" 764var compilation = CreateCompilationWithMscorlibAndSpan(csharp, compilationOptions, parseOptions); 803var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 925compilation = CreateCompilationWithMscorlibAndSpan(csharp); 945var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1026var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1050var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1093var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1172var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1314var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1367var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1478var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1515var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1548var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1616var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 2013var compilation = CreateCompilationWithMscorlibAndSpan(@" 2406var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 2540compilation = CreateCompilationWithMscorlibAndSpan(csharp); 2731var compilation = CreateCompilationWithMscorlibAndSpan(src); 2800var compilation = CreateCompilationWithMscorlibAndSpan(src); 2872var compilation = CreateCompilationWithMscorlibAndSpan(src); 2919var compilation = CreateCompilationWithMscorlibAndSpan(src); 2962var compilation = CreateCompilationWithMscorlibAndSpan(src); 2986var compilation = CreateCompilationWithMscorlibAndSpan(src); 3036var compilation = CreateCompilationWithMscorlibAndSpan(src); 3079var compilation = CreateCompilationWithMscorlibAndSpan(src); 3129var compilation = CreateCompilationWithMscorlibAndSpan(src); 3169var compilation = CreateCompilationWithMscorlibAndSpan(src); 3238var compilation = CreateCompilationWithMscorlibAndSpan(src); 3286var compilation = CreateCompilationWithMscorlibAndSpan(src); 3317var compilation = CreateCompilationWithMscorlibAndSpan(src); 3351var compilation = CreateCompilationWithMscorlibAndSpan(src); 3368var compilation = CreateCompilationWithMscorlibAndSpan(src); 3410var compilation = CreateCompilationWithMscorlibAndSpan(src); 3433var compilation = CreateCompilationWithMscorlibAndSpan(src); 3457var comp = CreateCompilationWithMscorlibAndSpan($$""" 3527var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll);
CodeGen\CodeGenReadonlyStructTests.cs (7)
1076var comp = CreateCompilationWithMscorlibAndSpan(@" 1098var comp = CreateCompilationWithMscorlibAndSpan(@" 1130var comp = CreateCompilationWithMscorlibAndSpan(@" 1188var comp = CreateCompilationWithMscorlibAndSpan(@" 1221var comp = CreateCompilationWithMscorlibAndSpan(@" 1274var comp = CreateCompilationWithMscorlibAndSpan(@" 1304var comp = CreateCompilationWithMscorlibAndSpan(@"
CodeGen\CodeGenStackAllocInitializerTests.cs (1)
203var comp = CreateCompilationWithMscorlibAndSpan(@"
CodeGen\CodeGenTests.cs (16)
16289var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16291comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16312comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16334comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16388var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16421comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16481var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16500comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16537var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16559comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16602var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16657comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16746var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16748comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16770var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16772comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe);
CodeGen\ForeachTest.cs (8)
314var comp = CreateCompilationWithMscorlibAndSpan(@" 367var comp = CreateCompilationWithMscorlibAndSpan(@" 431var comp = CreateCompilationWithMscorlibAndSpan(@" 532var comp = CreateCompilationWithMscorlibAndSpan(@" 581var comp = CreateCompilationWithMscorlibAndSpan(@" 726var comp = CreateCompilationWithMscorlibAndSpan(@" 780var comp = CreateCompilationWithMscorlibAndSpan(@" 852var comp = CreateCompilationWithMscorlibAndSpan(@"
CodeGen\PatternTests.cs (1)
4951var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
RefStructInterfacesTests.cs (3)
3600CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics(); 3635CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 3676CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics();
Semantics\PatternMatchingTests.cs (10)
6725CreateCompilationWithMscorlibAndSpan(@" 6749CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, 6778CreateCompilationWithMscorlibAndSpan(@" 6805CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 6832CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" 6928CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 7024CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" 7106CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 7208CreateCompilationWithMscorlibAndSpan(@" 7248CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @"
Semantics\PatternMatchingTests3.cs (3)
501var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 522var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 540var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll);
Semantics\RecordTests.cs (1)
9705CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (295)
Semantics\ForEachTests.cs (5)
3646var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseDebugExe).VerifyDiagnostics(); 3750CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 3768CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 3786CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 3803CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics(
Semantics\NullableReferenceTypesTests.cs (4)
1285var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 1368var comp = CreateCompilationWithMscorlibAndSpan(@" 2211var comp = CreateCompilationWithMscorlibAndSpan(@" 91330var comp = CreateCompilationWithMscorlibAndSpan(source, options: WithNullableEnable());
Semantics\RecordStructTests.cs (3)
7941CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7979var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8013CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\RefEscapingTests.cs (105)
79var comp = CreateCompilationWithMscorlibAndSpan(@" 102var comp = CreateCompilationWithMscorlibAndSpan(@" 128var comp = CreateCompilationWithMscorlibAndSpan(@" 150var comp = CreateCompilationWithMscorlibAndSpan(@" 174var comp = CreateCompilationWithMscorlibAndSpan(@" 235var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 285CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 335var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 351comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 417var comp = CreateCompilationWithMscorlibAndSpan(text); 469var comp = CreateCompilationWithMscorlibAndSpan(text); 514CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 518CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 612CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 670CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 711CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 759CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 799CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 807CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 835var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 885CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 899CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 950CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 958CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 1005var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1124var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1188var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1241var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1292var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1418var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }); 1450var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1587var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1650var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1726CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1740CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 1794var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 1804comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 1863var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1927var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1992CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2038CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2087CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 2138var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2153comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2221var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10); 2231comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 2304CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2323CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( 2398CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2470var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2486comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2569var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2585comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 3511CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3579CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3654CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3737CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4275CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4313CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 4364var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 4380comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 4443CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 4445CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4487CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4564var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4657var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4726CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4780var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4838CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4896CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4908CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4955CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4985var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5009var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5033var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5083var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5133var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5185var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5212var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5279CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5318var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5368CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5412CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5442CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5470CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 5500var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5633CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5688var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5773var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5888var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5944CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 5975var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6014CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6052var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6089var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6126CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6156CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6199CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6552CreateCompilationWithMscorlibAndSpan(@" 6716CreateCompilationWithMscorlibAndSpan(@" 6733CreateCompilationWithMscorlibAndSpan(@" 6751CreateCompilationWithMscorlibAndSpan(@" 6811CreateCompilationWithMscorlibAndSpan(@" 8295var comp = CreateCompilationWithMscorlibAndSpan(source);
Semantics\RefLocalsAndReturnsTests.cs (5)
224var comp = CreateCompilationWithMscorlibAndSpan(@" 276var comp = CreateCompilationWithMscorlibAndSpan(@" 585var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4965var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion)); 5018var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion));
Semantics\SpanStackSafetyTests.cs (64)
24var comp = CreateCompilationWithMscorlibAndSpan(@" 46var comp = CreateCompilationWithMscorlibAndSpan(@" 65var comp = CreateCompilationWithMscorlibAndSpan(@" 91var comp = CreateCompilationWithMscorlibAndSpan(@" 116var comp = CreateCompilationWithMscorlibAndSpan(@" 141var comp = CreateCompilationWithMscorlibAndSpan(@" 169var comp = CreateCompilationWithMscorlibAndSpan(@" 192var comp = CreateCompilationWithMscorlibAndSpan(@" 215var comp = CreateCompilationWithMscorlibAndSpan(@" 230var comp = CreateCompilationWithMscorlibAndSpan(@" 254var comp = CreateCompilationWithMscorlibAndSpan(@" 278var comp = CreateCompilationWithMscorlibAndSpan(@" 300var comp = CreateCompilationWithMscorlibAndSpan(@" 322var comp = CreateCompilationWithMscorlibAndSpan(@" 358CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 411CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 441CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 473CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 529var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 548comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }); 588CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 658CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 728CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 792CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 853CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 911CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 990CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1006CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1007CreateCompilationWithMscorlibAndSpan(text).VerifyEmitDiagnostics(expectedDiagnostics); 1054CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1061var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1064comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe); 1132CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1147CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1148CreateCompilationWithMscorlibAndSpan(text).VerifyEmitDiagnostics(expectedDiagnostics); 1201CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular12).VerifyDiagnostics( 1208var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1211comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe); 1239CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1272CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1302CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1390CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1394comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1439CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1744CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1755comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1794CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1805comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1863CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1900CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 2141var comp = CreateCompilationWithMscorlibAndSpan(@" 2202var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2238var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2248CompileAndVerify(CreateCompilationWithMscorlibAndSpan(@" 2294CompileAndVerify(CreateCompilationWithMscorlibAndSpan(@" 2340var comp = CreateCompilationWithMscorlibAndSpan(@" 2447CreateCompilationWithMscorlibAndSpan(@" 2533CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 2586CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 2621CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2646CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2671CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2701CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2724CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe);
Semantics\StackAllocInitializerTests.cs (62)
23var comp = CreateCompilationWithMscorlibAndSpan(@" 110var comp = CreateCompilationWithMscorlibAndSpan(@" 175var comp = CreateCompilationWithMscorlibAndSpan(@" 237var comp = CreateCompilationWithMscorlibAndSpan(@" 290var comp = CreateCompilationWithMscorlibAndSpan(@" 343var comp = CreateCompilationWithMscorlibAndSpan(@" 416var comp = CreateCompilationWithMscorlibAndSpan(@" 492var comp = CreateCompilationWithMscorlibAndSpan(@" 531var comp = CreateCompilationWithMscorlibAndSpan(@" 570var comp = CreateCompilationWithMscorlibAndSpan(@" 597CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 618CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 646CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 658CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 695CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 707CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 724var comp = CreateCompilationWithMscorlibAndSpan(@" 746var comp = CreateCompilationWithMscorlibAndSpan(@" 767var comp = CreateCompilationWithMscorlibAndSpan(""" 786var comp = CreateCompilationWithMscorlibAndSpan(@" 805var comp = CreateCompilationWithMscorlibAndSpan(@" 824var comp = CreateCompilationWithMscorlibAndSpan(@" 843var comp = CreateCompilationWithMscorlibAndSpan(@" 870var comp = CreateCompilationWithMscorlibAndSpan(@" 897var comp = CreateCompilationWithMscorlibAndSpan(@" 919var comp = CreateCompilationWithMscorlibAndSpan(@" 942var comp = CreateCompilationWithMscorlibAndSpan(@" 965var comp = CreateCompilationWithMscorlibAndSpan(@" 993var comp = CreateCompilationWithMscorlibAndSpan(@" 1095var comp = CreateCompilationWithMscorlibAndSpan(@" 1198CreateCompilationWithMscorlibAndSpan(@" 1309CreateCompilationWithMscorlibAndSpan(@" 1324CreateCompilationWithMscorlibAndSpan(@" 1340CreateCompilationWithMscorlibAndSpan(@" 1366CreateCompilationWithMscorlibAndSpan(@" 1386CreateCompilationWithMscorlibAndSpan(@" 1413CreateCompilationWithMscorlibAndSpan(@" 1436CreateCompilationWithMscorlibAndSpan(@" 1463CreateCompilationWithMscorlibAndSpan(@" 1535CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1564CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1593CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1648CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1685CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1716CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1727CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1749CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1769CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll).VerifyDiagnostics( 1793CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1804CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 1852CreateCompilationWithMscorlibAndSpan(@" 1894CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1905CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 1931CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1942CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1959CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1979CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 1995CreateCompilationWithMscorlibAndSpan(@" 2344var comp = CreateCompilationWithMscorlibAndSpan(@" 2450var comp = CreateCompilationWithMscorlibAndSpan(@" 2538var comp = CreateCompilationWithMscorlibAndSpan(@" 2628var comp = CreateCompilationWithMscorlibAndSpan(@"
Semantics\StackAllocSpanExpressionsTests.cs (35)
26var comp = CreateCompilationWithMscorlibAndSpan(@" 100var comp = CreateCompilationWithMscorlibAndSpan(@" 175CreateCompilationWithMscorlibAndSpan(@" 236CreateCompilationWithMscorlibAndSpan(@" 249CreateCompilationWithMscorlibAndSpan(@" 263CreateCompilationWithMscorlibAndSpan(@" 280CreateCompilationWithMscorlibAndSpan(@" 295CreateCompilationWithMscorlibAndSpan(@" 314CreateCompilationWithMscorlibAndSpan(@" 345CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 353CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 365CreateCompilationWithMscorlibAndSpan(@" 384CreateCompilationWithMscorlibAndSpan(@" 432CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 453CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 490CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 512CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 517CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 540CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 545CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 561CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 588CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 593CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 620CreateCompilationWithMscorlibAndSpan(@" 648CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 653CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 671CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 676CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 691CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 699CreateCompilationWithMscorlibAndSpan(source).VerifyDiagnostics( 709CreateCompilationWithMscorlibAndSpan(@" 729CreateCompilationWithMscorlibAndSpan(@" 810CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 836CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\TopLevelStatementsTests.cs (2)
8707var comp = CreateCompilationWithMscorlibAndSpan(@" 8725var comp = CreateCompilationWithMscorlibAndSpan(@"
Semantics\UnsafeTests.cs (10)
9824CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 9828CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11166CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11176CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11197CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11202CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11220CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11250CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11264CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11277CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (1)
216var comp = CreateCompilationWithMscorlibAndSpan(@"
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
26var comp = CreateCompilationWithMscorlibAndSpan(@"
Symbols\Source\PropertyTests.cs (1)
2896CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (1)
2915CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\ParserErrorMessageTests.cs (1)
4759CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
Parsing\RefStructs.cs (5)
220CreateCompilationWithMscorlibAndSpan(@" 236CreateCompilationWithMscorlibAndSpan(@" 253CreateCompilationWithMscorlibAndSpan(@" 268CreateCompilationWithMscorlibAndSpan(@" 282CreateCompilationWithMscorlibAndSpan(@"