26091 references to CreateCompilation
InteractiveHost.UnitTests (6)
InteractiveHostDesktopTests.cs (6)
503var c1 = CreateCompilation(source1, assemblyName: "C"); 515var c2 = CreateCompilation(source2, assemblyName: "C"); 543var c1 = CreateCompilation(source1, assemblyName: "C"); 547var c2 = CreateCompilation(source2, assemblyName: "C"); 578var c1 = CreateCompilation(source1, assemblyName: "C"); 582var c2 = CreateCompilation(source2, assemblyName: "C");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineIVTTests.cs (4)
22var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 99var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 177var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 260var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
CommandLineTests.cs (2)
754var compilation = CreateCompilation(new SyntaxTree[0]); 878var compilation = CreateCompilation(new SyntaxTree[0]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (33)
SymbolKey\SymbolKeyCompilationsTests.cs (30)
74var comp1 = CreateCompilation(src1, assemblyName: "Test"); 75var comp2 = CreateCompilation(src2, assemblyName: "Test"); 95var comp1 = CreateCompilation(src1, assemblyName: "C2CErrorSymbolUnchanged01"); 96var comp2 = CreateCompilation(src2, assemblyName: "C2CErrorSymbolUnchanged01"); 128var comp = (Compilation)CreateCompilation(src, assemblyName: "Test"); 155var comp = (Compilation)CreateCompilation(src, assemblyName: "Test"); 183var comp = (Compilation)CreateCompilation(src, assemblyName: "Test"); 226var compilation = (Compilation)CreateCompilation(src, assemblyName: "Test"); 254var comp1 = CreateCompilation(src1); 255var comp2 = CreateCompilation(src1); 284var originalComp = CreateCompilation(src1, assemblyName: "Test"); 285var newComp = CreateCompilation(src1, assemblyName: "Test"); 305var originalComp = CreateCompilation(src1, assemblyName: "Test"); 306var newComp = CreateCompilation(src1, assemblyName: "Test"); 423var comp1 = CreateCompilation(src1, assemblyName: "Test"); 424var comp2 = CreateCompilation(src2, assemblyName: "Test"); 460var comp1 = (Compilation)CreateCompilation(src1, assemblyName: "Test"); 461var comp2 = (Compilation)CreateCompilation(src2, assemblyName: "Test"); 509var comp1 = CreateCompilation(src1, assemblyName: "Test"); 510var comp2 = CreateCompilation(src2, assemblyName: "Test"); 543var comp1 = (Compilation)CreateCompilation(src1, assemblyName: "Test"); 544var comp2 = (Compilation)CreateCompilation(src2, assemblyName: "Test"); 568var comp1 = (Compilation)CreateCompilation(src, assemblyName: "Assembly1"); 569var comp2 = (Compilation)CreateCompilation(src, assemblyName: "Assembly2"); 590var comp1 = (Compilation)CreateCompilation(src, assemblyName: "Assembly"); 591var comp2 = (Compilation)CreateCompilation(src, assemblyName: "Assembly"); 619var compilation1 = (Compilation)CreateCompilation(src, assemblyName: "Assembly1"); 620var compilation2 = (Compilation)CreateCompilation(src, assemblyName: "Assembly2"); 663var comp1 = (Compilation)CreateCompilation(src, assemblyName: "Assembly"); 664var comp2 = (Compilation)CreateCompilation(src2, assemblyName: "Assembly");
SymbolKey\SymbolKeyErrorTypeTests.cs (1)
373var sourceCompilation = (Compilation)CreateCompilation(source, options: new(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true));
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (2)
61var comp1 = CreateCompilation(src1); 145var comp1 = CreateCompilation(src1);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1795)
BreakingChanges.cs (29)
42var comp = CreateCompilation(text); 65var comp = CreateCompilation(text); 82var compilation1 = CreateCompilation(source1); 161var compilation = CreateCompilation(text); 251CreateCompilation(source).VerifyDiagnostics( 295var comp = CreateCompilation(text); 406var standardCompilation = CreateCompilation(source); 407var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()); 473CreateCompilation(text).VerifyDiagnostics(); 501CreateCompilation(source).VerifyDiagnostics( 579var comp = CreateCompilation(source); 640CreateCompilation(source).VerifyDiagnostics(); 733CreateCompilation(source).VerifyDiagnostics( 759CreateCompilation(text).VerifyDiagnostics(); 776CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 796CreateCompilation(text).VerifyDiagnostics( 826CreateCompilation(text).VerifyDiagnostics( 913CreateCompilation(source).VerifyDiagnostics(); 919CreateCompilation( 983var comp = CreateCompilation(text); 1061CreateCompilation(source).VerifyDiagnostics( 1082CreateCompilation(source).VerifyDiagnostics(); 1270CreateCompilation(source).VerifyDiagnostics( 1296CreateCompilation(source).VerifyDiagnostics( 1356CreateCompilation(source).VerifyDiagnostics( 1581var libRef = CreateCompilation(libSource, assemblyName: "lib").EmitToImageReference(); 1604var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1629var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1680var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncIteratorTests.cs (22)
1403var comp1 = CreateCompilation(_enumerable); 1411var comp2 = CreateCompilation(@" 1429var comp3 = CreateCompilation(_enumerator); 6496var comp = CreateCompilation(AsyncStreamsTypes, references: new[] { NetStandard20.ExtraReferences.SystemThreadingTasksExtensions }, targetFramework: TargetFramework.NetStandard20); 8521var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8556var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8597var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 8620var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 8661var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 8704var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8726comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8772var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8793comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8854var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9052var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9093var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9179var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9375var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9421var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 9876var libComp = CreateCompilation(libSrc, targetFramework: TargetFramework.Net80); 10494var missingLibS1 = CreateCompilation(@"
CodeGen\CodeGenAsyncMainTests.cs (3)
1566var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1808var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 2064var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (4)
659var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2007var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2098var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2135var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenAsyncSpillTests.cs (15)
3485CreateCompilation(@" 3910CreateCompilation(source, options: TestOptions.DebugDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics); 3911CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics); 4065var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4289var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4508var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4698var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5083var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5268var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5468var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5682var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5923var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6168var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6334var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncTests.cs (5)
5790var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5823var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5933var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseDll); 6057var comp = CSharpTestBase.CreateCompilation(source); 6106var libComp = CreateCompilation(libSrc, targetFramework: TargetFramework.Net90);
CodeGen\CodeGenAwaitForeachTests.cs (31)
2089CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2104CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2105CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 2180CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2195CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2196CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 2779CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2819CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2831CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2832CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 6243CreateCompilation(source, parseOptions: TestOptions.Regular9) 6367CreateCompilation(source, parseOptions: TestOptions.Regular9) 6400CreateCompilation(source, parseOptions: TestOptions.Regular9) 6604CreateCompilation(source, parseOptions: TestOptions.Regular9) 6640CreateCompilation(source, parseOptions: TestOptions.Regular9) 6676CreateCompilation(source, parseOptions: TestOptions.Regular9) 6713CreateCompilation(source, parseOptions: TestOptions.Regular9) 6918CreateCompilation(source, parseOptions: TestOptions.Regular9) 7549CreateCompilation(source, parseOptions: TestOptions.Regular9) 7589CreateCompilation(source, parseOptions: TestOptions.Regular9) 7663CreateCompilation(source, parseOptions: TestOptions.Regular9) 7707CreateCompilation(source, parseOptions: TestOptions.Regular9) 7785CreateCompilation(source, parseOptions: TestOptions.Regular9) 7859CreateCompilation(source, parseOptions: TestOptions.Regular9) 7926CreateCompilation(source, parseOptions: TestOptions.Regular9) 8254CreateCompilation(source, parseOptions: TestOptions.Regular9) 8298CreateCompilation(source, parseOptions: TestOptions.Regular9) 8838CreateCompilation(source, parseOptions: TestOptions.Regular9) 8892CreateCompilation(source, parseOptions: TestOptions.Regular9) 8998CreateCompilation(source, parseOptions: TestOptions.Regular9) 9481var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAwaitUsingTests.cs (13)
2292var comp = CreateCompilation(source); 3075var comp = CreateCompilation(source); 3098var comp = CreateCompilation(source); 3125CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3137CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3138CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 3169CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 3170CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3171CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 3244CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3283CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3720var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3749var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenCapturing.cs (1)
461CreateCompilation(methodsText.ToString()).VerifyEmitDiagnostics();
CodeGen\CodeGenCheckedTests.cs (6)
1990var comp = CreateCompilation(source); 2122var comp = CreateCompilation(source); 2160var comp = CreateCompilation(source); 2849var comp = CreateCompilation(source); 2912var comp = CreateCompilation(source); 2944var comp = CreateCompilation(source);
CodeGen\CodeGenClosureLambdaTests.cs (1)
4223CreateCompilation(source).VerifyEmitDiagnostics(
CodeGen\CodeGenConditionalOperatorTests.cs (2)
713var comp = CreateCompilation(source); 3920var comp = CreateCompilation(source);
CodeGen\CodeGenConstructorInitTests.cs (4)
1272var comp = CreateCompilation(source); 1306var comp = CreateCompilation(source); 1331var comp = CreateCompilation(source); 1356var comp = CreateCompilation(source);
CodeGen\CodeGenConversionTests.cs (4)
284var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 382var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 681CreateCompilation(text).VerifyDiagnostics(); 750CreateCompilation(source).VerifyEmitDiagnostics(
CodeGen\CodeGenDeconstructTests.cs (95)
161var comp = CreateCompilation(source); 299var comp = CreateCompilation(source); 341var comp = CreateCompilation(source); 800var comp = CreateCompilation(source); 1556var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1607var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1635var comp = CreateCompilation(source, 1708var comp = CreateCompilation(source); 1745var comp = CreateCompilation(source); 1793var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1837var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1870var comp = CreateCompilation(source); 2343var comp = CreateCompilation(source); 2463CreateCompilation(source).VerifyDiagnostics( 2521var comp = CreateCompilation(source); 2620var comp = CreateCompilation(source); 4401var compilation = CreateCompilation(source); 4960var comp = CreateCompilation(source); 5901var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5972var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5992var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6025var comp = CreateCompilation(source); 6078var comp = CreateCompilation(source); 6127var comp = CreateCompilation(source); 6172var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6199var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6231var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6277var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6298var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6330var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6360var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6387var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6474var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6503var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6555var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6586var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6702var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6727var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6746var compCSharp9 = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6762var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 6790var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6816var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6836var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6968var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7034var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7058var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7089var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7114var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7147var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7198var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7260var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7291var compilation = CreateCompilation(source); 7339var compilation = CreateCompilation(source); 7384var compilation = CreateCompilation(source); 7420var compilation = CreateCompilation(source); 7460var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7541var compilation = CreateCompilation(source); 7588var compilation = CreateCompilation(source); 7661var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7724var compilation = CreateCompilation(source); 7748var compilation = CreateCompilation(source); 7952var compilation = CreateCompilation(source); 7980var compilation = CreateCompilation(source); 8708var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8730var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 8775var comp = CreateCompilation( 8780comp = CreateCompilation( 8800var comp = CreateCompilation( 8805comp = CreateCompilation( 8826var comp = CreateCompilation( 8831comp = CreateCompilation( 8861var comp = CreateCompilation( 8866comp = CreateCompilation( 8887var comp = CreateCompilation( 8892comp = CreateCompilation( 8929var comp = CreateCompilation( 8936comp = CreateCompilation( 8984var comp = CreateCompilation( 8990comp = CreateCompilation( 9007var comp = CreateCompilation(source); 9038var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9063var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9436var comp = CreateCompilation(source); 9491var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9683CreateCompilation(source).VerifyDiagnostics( 9713CreateCompilation(source).VerifyDiagnostics( 9751CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 9785CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 10004CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 10114CreateCompilation(source, parseOptions: TestOptions.RegularPreview) 10163CreateCompilation(source, parseOptions: TestOptions.RegularPreview)
CodeGen\CodeGenDynamicTests.cs (4)
7486var lib = CreateCompilation(sourceLib); 7580var lib = CreateCompilation(sourceLib); 8851CreateCompilation(source).VerifyDiagnostics( 14056CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenExplicitImplementationTests.cs (10)
124var comp1 = CreateCompilation(text1, assemblyName: "OHI_ExplicitImplProp1"); 126var comp = CreateCompilation( 211var comp1 = CreateCompilation( 217var comp = CreateCompilation( 254var comp = CreateCompilation( 370var comp1 = CreateCompilation( 376var comp = CreateCompilation( 993var libComp = CreateCompilation(libSource); 1038var libComp1 = CreateCompilation(libSource, assemblyName: "lib1"); 1041var libComp2 = CreateCompilation(libSource, assemblyName: "lib2");
CodeGen\CodeGenExprLambdaTests.cs (5)
1841var comp = CreateCompilation(src); 1875var comp = CreateCompilation(src); 3789CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 3839CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 3895CreateCompilation(source).VerifyDiagnostics(
CodeGen\CodeGenFieldInitTests.cs (8)
435var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 462var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 511var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 565var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 592var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 676CreateCompilation(source).VerifyDiagnostics( 690var compilation1 = CreateCompilation(source1, assemblyName: "1110a705-cc34-430b-9450-ca37031aa828");
CodeGen\CodeGenForEachTests.cs (46)
1394var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1749var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 2412CreateCompilation(source, parseOptions: TestOptions.Regular9) 2436CreateCompilation(source, parseOptions: TestOptions.Regular9) 2462CreateCompilation(source, parseOptions: TestOptions.Regular9) 2485CreateCompilation(source, parseOptions: TestOptions.Regular9) 2631CreateCompilation(source, parseOptions: TestOptions.Regular9) 2663CreateCompilation(source, parseOptions: TestOptions.Regular9) 2805CreateCompilation(source, parseOptions: TestOptions.Regular9) 2840CreateCompilation(source, parseOptions: TestOptions.Regular9) 2875CreateCompilation(source, parseOptions: TestOptions.Regular9) 2910CreateCompilation(source, parseOptions: TestOptions.Regular9) 2947CreateCompilation(source, parseOptions: TestOptions.Regular9) 3074CreateCompilation(source, parseOptions: TestOptions.Regular9) 3412CreateCompilation(source, parseOptions: TestOptions.Regular9) 3443CreateCompilation(source, parseOptions: TestOptions.Regular9) 3478CreateCompilation(source, parseOptions: TestOptions.Regular9) 3514CreateCompilation(source, parseOptions: TestOptions.Regular9) 3591CreateCompilation(source, parseOptions: TestOptions.Regular9) 3717CreateCompilation(source, parseOptions: TestOptions.Regular9) 3756CreateCompilation(source, parseOptions: TestOptions.Regular9) 3795CreateCompilation(source, parseOptions: TestOptions.Regular9) 3865CreateCompilation(source, parseOptions: TestOptions.Regular9) 3908CreateCompilation(source, parseOptions: TestOptions.Regular9) 3982CreateCompilation(source, parseOptions: TestOptions.Regular9) 4052CreateCompilation(source, parseOptions: TestOptions.Regular9) 4143CreateCompilation(source, parseOptions: TestOptions.Regular9) 4177CreateCompilation(source, parseOptions: TestOptions.Regular9) 4209CreateCompilation(source, parseOptions: TestOptions.Regular9) 4241CreateCompilation(source, parseOptions: TestOptions.Regular9) 4342CreateCompilation(source).VerifyDiagnostics( 4400CreateCompilation(source).VerifyDiagnostics( 4531CreateCompilation(source, parseOptions: TestOptions.Regular9) 4573CreateCompilation(source, parseOptions: TestOptions.Regular9) 4998CreateCompilation(source, parseOptions: TestOptions.Regular9) 5136CreateCompilation(source, parseOptions: TestOptions.Regular9) 5189CreateCompilation(source, parseOptions: TestOptions.Regular9) 5290CreateCompilation(source, parseOptions: TestOptions.Regular9) 5492CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 5574CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 5592var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5623var comp = CreateCompilation(source); 5693var comp = CreateCompilation(source); 5750var comp = CreateCompilation(source); 5780var comp = CreateCompilation(source); 5816var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenFunctionPointersTests.cs (85)
36var comp = CreateCompilation( 48return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50); 56return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty); 2526var nopiaReference = CreateCompilation(NoPiaInterfaces).EmitToImageReference(embedInteropTypes: true); 2559var nopiaReference = CreateCompilation(NoPiaInterfaces).EmitToImageReference(embedInteropTypes: true); 2586var nopiaReference = CreateCompilation(NoPiaInterfaces).EmitToImageReference(embedInteropTypes: true); 2588var intermediate = CreateCompilation(@" 2619var aRef = CreateCompilation(@" 2624var bRef = CreateCompilation(@" 2632var cComp = CreateCompilation(@" 2650var aRef = CreateCompilation(@" 2654var bRef = CreateCompilation(@" 2662var cComp = CreateCompilation(@" 7736var reference = CreateCompilation(source1); 7823var comp = CreateCompilation(new[] { @" 7852var comp = CreateCompilation(new[] { @" 7959var comp = CreateCompilation(new[] { @" 7985var comp = CreateCompilation(new[] { @" 8075var comp = CreateCompilation(new[] { @" 8094var comp = CreateCompilation(new[] { @" 8167var comp = CreateCompilation(new[] { @" 8210var comp = CreateCompilation(new[] { @" 8245var comp = CreateCompilation(new[] { @" 8340var comp = CreateCompilation(new[] { @" 8474var comp = CreateCompilation(new[] { @" 8493var comp = CreateCompilation(new[] { @" 8521var comp = CreateCompilation(new[] { @" 8657var comp0 = CreateCompilation(new[] { @" 8836var comp = CreateCompilation(new[] { @" 8871var comp = CreateCompilation(new[] { @" 8961var comp = CreateCompilation(new[] { @" 9096var comp = CreateCompilation(new[] { @" 9181var comp = CreateCompilation(new[] { @" 9243var comp = CreateCompilation(new[] { @" 9342var comp = CreateCompilation(new[] { @" 9373var comp = CreateCompilation(new[] { @" 9404var comp = CreateCompilation(new[] { @" 9439var comp = CreateCompilation(new[] { @" 9470var comp = CreateCompilation(new[] { @" 9510var comp = CreateCompilation(new[] { @" 9537var comp = CreateCompilation(new[] { @" 9568var comp = CreateCompilation(new[] { @" 9614var comp = CreateCompilation(new[] { @" 9651var comp = CreateCompilation(new[] { @" 9684var comp = CreateCompilation(new[] { @" 9720var comp = CreateCompilation(new[] { @" 9739var comp = CreateCompilation(new[] { @" 9765var comp = CreateCompilation(new[] { @" 9784var comp = CreateCompilation(new[] { @" 9820var comp = CreateCompilation(new[] { @" 9850var comp = CreateCompilation(new[] { @" 9874var comp = CreateCompilation(new[] { @" 9903var comp = CreateCompilation(new[] { @" 9926var comp = CreateCompilation(@" 9952var comp = CreateCompilation(@" 9978var comp = CreateCompilation(new[] { @" 9997var comp = CreateCompilation(new[] { @" 10018var comp = CreateCompilation(new[] { @" 10147var comp = CreateCompilation(@" 10218var definitionComp = CreateCompilation(definition); 10272var definitionComp = CreateCompilation(definition); 10325var refComp = CreateCompilation(source1); 10390var refComp = CreateCompilation(source1); 11512CreateCompilation(source).VerifyEmitDiagnostics( 11540CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11564CreateCompilation(source).VerifyEmitDiagnostics( 11592CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11617CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11641CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11704CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 11768CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11830CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11916CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11942CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11967CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11994CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12017CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12044CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12069CreateCompilation(source).VerifyEmitDiagnostics( 12101CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12166CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12192CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12217CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12244CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12400CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics(
CodeGen\CodeGenImplicitImplementationTests.cs (2)
821CreateCompilation(source) 2293var libComp = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "OtherAssembly");
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (4)
128var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended); 936var comp = CreateCompilation(testSrc); 961var comp = CreateCompilation(testSrc); 996CreateCompilation(text).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (24)
2773var reference = CreateCompilation(@" 2804var reference = CreateCompilation(@" 2835var reference = CreateCompilation(@" 2866var reference = CreateCompilation(@" 2896var reference = CreateCompilation(@" 3773var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3824var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3882var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3946var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4008var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4087var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4143var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4201var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4337var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4394var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4782var libOrig = CreateCompilation(libOrig_cs, assemblyName: "lib"); 4792var libChanged = CreateCompilation(libChanged_cs, assemblyName: "lib"); 4803var libUser = CreateCompilation(libUser_cs, references: new[] { libOrig.EmitToImageReference() }); 4828var comp = CreateCompilation(src, references: new[] { libChanged.EmitToImageReference(), libUser.EmitToImageReference() }); 4842var libOrig = CreateCompilation(libOrig_cs, assemblyName: "lib"); 4852var libChanged = CreateCompilation(libChanged_cs, assemblyName: "lib"); 4869var libUser = CreateCompilation(libUser_cs, references: new[] { libOrig.EmitToImageReference() }); 4908var comp = CreateCompilation(src, references: new[] { libChanged.EmitToImageReference(), libUser.EmitToImageReference() });
CodeGen\CodeGenInterfaceImplementation.cs (3)
358var comp1 = CreateCompilation( 363var comp2 = CreateCompilation( 368var comp3 = CreateCompilation(
CodeGen\CodeGenInterpolatedString.cs (1)
32var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenIterators.cs (5)
1971var comp = CreateCompilation(parsed); 3132var comp = CreateCompilation(source); 3700var libComp = CreateCompilation(libSrc); 4030var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 4086var missingLibS1 = CreateCompilation(@"
CodeGen\CodeGenLocalFunctionTests.cs (14)
92var comp = CreateCompilation(@" 136var comp = CreateCompilation(@" 206var comp = CreateCompilation(@" 240var comp = CreateCompilation(@" 759var comp = CreateCompilation(@" 1149var comp = CreateCompilation(@" 1707var comp = CreateCompilation(src); 5452var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5565CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(); 5567CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 5590CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5595CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 6157var comp = CreateCompilation(source);
CodeGen\CodeGenLockTests.cs (6)
1902var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1944var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2001var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2037var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (27)
654CreateCompilation(@" 750CreateCompilation(@" 938CreateCompilation(@" 978CreateCompilation(@" 1275CreateCompilation(source2).VerifyDiagnostics( 1357CreateCompilation(source2).VerifyDiagnostics( 1496var compilation = CreateCompilation(@" 1627CreateCompilation(@" 1673CreateCompilation(@" 2076CreateCompilation(@" 2121CreateCompilation(@" 2139CreateCompilation(@" 2285CreateCompilation(@" 2341CreateCompilation(source).VerifyDiagnostics( 2447var compilation = CreateCompilation(source); 2490CreateCompilation(source).VerifyDiagnostics( 2579var compilation = CreateCompilation(source); 2599CreateCompilation(source).VerifyDiagnostics( 2634var compilation = CreateCompilation(source); 2658CreateCompilation(source).VerifyDiagnostics( 2669var aRef = CreateCompilation(aSource).EmitToImageReference(); 2671var bRef = CreateCompilation(bSource, new[] { aRef }).EmitToImageReference(); 2683var compilation = CreateCompilation(testSource, new[] { bRef }); 2722CreateCompilation(@" 2744CreateCompilation(@" 2771var c1 = CreateCompilation(source); 2778var c2 = CreateCompilation(source);
CodeGen\CodeGenOperators.cs (17)
1592CreateCompilation(source).VerifyDiagnostics( 5440var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5499var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5607var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5692var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5730var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6080var comp = CreateCompilation(source); 6112var comp = CreateCompilation(source); 6136var comp = CreateCompilation(source); 6175var comp = CreateCompilation(source); 6198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 6301var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6563var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6613var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6971var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 7027var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60);
CodeGen\CodeGenOverridingAndHiding.cs (23)
1194var compilation = CreateCompilation(substitutedSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 2243var compilation1 = CreateCompilation(source1); 2535CreateCompilation(source, 2654var referencedCompilation = CreateCompilation(source, assemblyName: "OHI_CodeGen_TestHideWithInaccessibleMember"); 2759var referencedCompilation = CreateCompilation(source, assemblyName: "OHI_CodeGen_TestHideSealedMember"); 2829var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_DeriveOverrideNewVirtualOverload001", 2833var comp = CreateCompilation(text2, references: refs, assemblyName: "OHI_DeriveOverrideNewVirtualOverload002", 2922var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_DeriveOverrideVirtualProp001", 2926var comp = CreateCompilation(text2, references: refs, assemblyName: "OHI_DeriveOverrideVirtualProp002", 2982var comp1 = CreateCompilation( 2987var comp2 = CreateCompilation( 3160var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata001", 3167var comp2 = CreateCompilation(text2, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata002", 3172var comp = CreateCompilation(text3, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata003", 3219var comp = CreateCompilation( 3371var comp1 = CreateCompilation( 3376var comp2 = CreateCompilation( 3381var comp = CreateCompilation( 3475var comp1 = CreateCompilation( 3480var comp2 = CreateCompilation( 3485var comp = CreateCompilation( 4180var compref = CreateCompilation(source, assemblyName: "XNoDefaultForParams_Dev10781558_Library"); 4385var A = CreateCompilation(@"public class A {}", assemblyName: "A");
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (6)
110var comp = CreateCompilation(@" 591var comp = CreateCompilation(@" 2566var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2614var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2665var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 3385var compilation = CreateCompilation(src, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenReadonlyStructTests.cs (14)
107var comp1 = CreateCompilation(text1, assemblyName: "A"); 325var comp1 = CreateCompilation(text1, assemblyName: "A"); 638var comp = CreateCompilation(text); 710var comp = CreateCompilation(text); 824var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 909var clientComp = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 995var comp1 = CreateCompilation(text1, assemblyName: "A"); 998var comp = CreateCompilation("//NO CODE HERE", new[] { ref1 }, parseOptions: TestOptions.Regular); 1557var externalComp = CreateCompilation(external); 1561var comp = CreateCompilation("", references: new[] { externalComp.EmitToImageReference() }); 1564var comp2 = CreateCompilation("", references: new[] { externalComp.ToMetadataReference() }); 1673var comp = CreateCompilation("", references: new[] { ilRef }); 1831var image = CreateCompilation(external).EmitToImageReference(); 1907var image = CreateCompilation(external).EmitToImageReference();
CodeGen\CodeGenRefConditionalOperatorTests.cs (3)
1267var comp = CreateCompilation(code, options: options); 1354var comp = CreateCompilation(code, options: options); 2293var comp = CreateCompilation(source);
CodeGen\CodeGenRefLocalTests.cs (10)
515var comp = CreateCompilation(@" 4003var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 4027var comp = CreateCompilation(text); 4060var comp = CreateCompilation(text); 4098var comp = CreateCompilation(text); 4140var c = CreateCompilation(source); 4241var comp = CreateCompilation(code, options: options); 4375var comp = CreateCompilation(code, options: options); 4427var comp = CreateCompilation(code, options: options); 4483var comp = CreateCompilation(code, options: options);
CodeGen\CodeGenRefOutTests.cs (5)
542var comp = CreateCompilation(code, options: options); 629var comp = CreateCompilation(code, options: options); 691var comp = CreateCompilation(code, options: options); 777var comp = CreateCompilation(code, options: options); 829var comp = CreateCompilation(code, options: options);
CodeGen\CodeGenRefReturnTests.cs (15)
2304var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2339var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2381var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2402var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2431var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2480var compilation = CreateCompilation("", options: TestOptions.DebugDll, references: new[] { ref1 }); 2520var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2553var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2617CreateCompilation(text).VerifyDiagnostics( 2669CreateCompilation(source).VerifyDiagnostics( 2745CreateCompilation(source).VerifyDiagnostics( 2825CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2833CreateCompilation(source).VerifyDiagnostics( 2877CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2885CreateCompilation(source).VerifyDiagnostics(
CodeGen\CodeGenShortCircuitOperatorTests.cs (5)
5357var compilation = CreateCompilation(source); 5487var compilation = CreateCompilation(source); 5616var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 5753var compilation = CreateCompilation(source); 7548var compilation = CreateCompilation(source);
CodeGen\CodeGenStackAllocInitializerTests.cs (3)
849var comp = CreateCompilation(@" 1024var comp = CreateCompilation(@" 1526var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenStructsAndEnum.cs (1)
1594CreateCompilation(@"
CodeGen\CodeGenTests.cs (18)
38var comp = CreateCompilation(src, parseOptions: parseOptions, options: options); 4460var comp = CreateCompilation(@" 10448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10841CreateCompilation(source).VerifyDiagnostics(); 10845CreateCompilation(source).VerifyDiagnostics( 11786var compilation1 = CreateCompilation(source1); 12928CreateCompilation(source).VerifyDiagnostics( 12950CreateCompilation(source).VerifyDiagnostics( 13270var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithConcurrentBuild(false)); 13477var reference = CreateCompilation(@" 13509var comp = CreateCompilation(code, references: new[] { reference.ToMetadataReference() }); 13516comp = CreateCompilation(code, references: new[] { reference.EmitToImageReference() }); 13579var comp = CreateCompilation(code, references: new[] { reference }); 13612var compRelease = CreateCompilation(source, options: TestOptions.ReleaseExe); 13613var compDebug = CreateCompilation(source, options: TestOptions.DebugExe); 13656var comp = CreateCompilation(source, options: TestOptions.DebugExe); 14656compilation = CreateCompilation(text); 17311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe);
CodeGen\CodeGenThrowTests.cs (2)
335CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 399CreateCompilation(source).VerifyDiagnostics(
CodeGen\CodeGenTryFinally.cs (4)
3086CreateCompilation(text).VerifyDiagnostics( 3108CreateCompilation(text).VerifyDiagnostics(); 4021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4053var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenTupleEqualityTests.cs (110)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 66var comp = CreateCompilation(source, options: TestOptions.DebugExe, assemblyName: name); 82var comp = CreateCompilation(source); 103var comp = CreateCompilation(source); 124var comp = CreateCompilation(source); 172var comp = CreateCompilation(source); 751var comp = CreateCompilation(source); 785var comp = CreateCompilation(source, options: TestOptions.DebugExe); 830var comp = CreateCompilation(source, options: TestOptions.DebugExe); 847var comp = CreateCompilation(source, options: TestOptions.DebugExe); 895var comp = CreateCompilation(source, options: TestOptions.DebugExe); 944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1048var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1082var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1114var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1145var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1177var comp = CreateCompilation(source); 1205var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1234var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1259var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1281var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1305var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1335var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1348comp = CreateCompilation(source); 1376var comp = CreateCompilation(source); 1437var comp = CreateCompilation(source); 1489var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1550var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1587var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1612var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1662comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1741var comp = CreateCompilation(source); 1763var comp = CreateCompilation(source); 1806var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1822var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1840var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1860var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1911var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1943var comp = CreateCompilation(source); 1971var comp = CreateCompilation(source); 1995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2008comp = CreateCompilation(source); 2175var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2219var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2266var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2297var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2320var comp = CreateCompilation(source); 2414var comp = CreateCompilation(source.Replace("EXPRESSION", expression), options: TestOptions.DebugExe); 2502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2548var comp = CreateCompilation(source); 2732var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2819var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2858var comp = CreateCompilation(source); 2891var comp = CreateCompilation(source); 2917var comp = CreateCompilation(source); 2944var comp = CreateCompilation(source); 2983var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3013var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3032var comp = CreateCompilation(source); 3057var comp = CreateCompilation(source); 3085var comp = CreateCompilation(source); 3110var comp = CreateCompilation(source); 3159var comp = CreateCompilation(source); 3194var comp = CreateCompilation(source); 3234var comp = CreateCompilation(source); 3271var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3356var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3391var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3426var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3642var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3677var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3776var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3801var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3904var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3997var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4075var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4116var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4177var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4231var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4261var comp = CreateCompilation(source); 4304var comp = CreateCompilation(source); 4333var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4381var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4477var comp = CreateCompilation(source.Replace("REPLACE", expression), 4581var comp = CreateCompilation(source.Replace("REPLACE", expression), 4671var comp = CreateCompilation(source.Replace("REPLACE", expression), options: TestOptions.DebugExe); 4741var comp = CreateCompilation(source.Replace("REPLACE", expression)); 4797var comp = CreateCompilation(source); 4835var comp = CreateCompilation(source); 4933var comp = CreateCompilation(source.Replace("REPLACE", expression)); 4999var comp = CreateCompilation(source); 5045var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5085var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5107var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5150var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5220var comp = CreateCompilation(source); 5244var comp = CreateCompilation(source); 5266var comp = CreateCompilation(source); 5296var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5316var comp = CreateCompilation(source); 5343var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5371var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5392var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5418var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5439var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 5502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5558var comp = CreateCompilation(source, options: TestOptions.DebugExe);
CodeGen\CodeGenTupleTest.cs (340)
229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 267var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 294var comp = CreateCompilation(src); 331var comp = CreateCompilation(src); 349var comp1 = CreateCompilation(src1); 352var comp2 = CreateCompilation(src2, 356var comp3 = CreateCompilation(src2, 419var comp = CreateCompilation(@" 590var comp = CreateCompilation(@" 1068var comp = CreateCompilation(source); 1095var comp = CreateCompilation(source); 1126var comp = CreateCompilation(source); 1171var comp = CreateCompilation(source); 1535CreateCompilation(source).VerifyDiagnostics( 1555CreateCompilation(source).VerifyDiagnostics( 1601var comp = CreateCompilation(tree); 2992var comp = CreateCompilation(source); 3020var comp = CreateCompilation(source); 3050var comp = CreateCompilation(source); 3097var comp = CreateCompilation(source); 3121var comp = CreateCompilation(source); 3157var comp = CreateCompilation(source); 3285CreateCompilation(source).VerifyDiagnostics( 3311CreateCompilation(source).VerifyDiagnostics( 3567CreateCompilation(source).VerifyDiagnostics( 3765var missingComp = CreateCompilation(missing_cs, assemblyName: "UseSiteDiagnosticOnTupleField_missingComp"); 3819var comp7 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7"); 3826var comp7_1 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular7_1, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7_1"); 3858var comp = CreateCompilation(source, targetFramework: TargetFramework.NetFramework, parseOptions: TestOptions.Regular7); 3971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 4077var comp7 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 4225var comp1 = CreateCompilation(source1); 4227var comp2 = CreateCompilation(source2); 4272var comp1 = CreateCompilation(source1); 4274var comp2 = CreateCompilation(source2); 4460var comp = CreateCompilation(source, assemblyName: "comp"); 4662var comp = CreateCompilation(source, assemblyName: "comp"); 4701var comp = CreateCompilation(source, assemblyName: "comp"); 4830var comp = CreateCompilation(source); 4946var comp = CreateCompilation(source); 4976var comp = CreateCompilation(source); 5003var comp = CreateCompilation(source); 5030var comp = CreateCompilation(source); 5066var comp = CreateCompilation(source); 5110var comp = CreateCompilation(source); 5148var comp = CreateCompilation(source); 5192var comp = CreateCompilation(source); 5263var comp = CreateCompilation(source); 5408CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5418CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5470var comp = CreateCompilation(new[] { tree }); 5608var comp = CreateCompilation(source, references: new[] { CSharpRef }); 5902var tupleComp = CreateCompilation(trivial2uple); 5937var tupleComp = CreateCompilation(trivial2uple_withoutFields); 6048var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6183var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6361var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6380var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6540var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6599var comp = (Compilation)CreateCompilation(source); 6634var comp = (Compilation)CreateCompilation(source); 6676var comp = (Compilation)CreateCompilation(source); 6715var comp = (Compilation)CreateCompilation(source); 6756var comp = (Compilation)CreateCompilation(source); 6794var comp = CreateCompilation(source); 6834var comp = (Compilation)CreateCompilation(source); 6864var comp = (Compilation)CreateCompilation(source); 6903var comp = (Compilation)CreateCompilation(source); 6961var comp = CreateCompilation(source); 7044CreateCompilation(source).VerifyDiagnostics( 7100CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7214CreateCompilation(source).VerifyDiagnostics( 7268CreateCompilation(source).VerifyDiagnostics( 7399CreateCompilation(source).VerifyDiagnostics( 7449CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7491var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7524var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7561var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7618var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7717CreateCompilation(source).VerifyDiagnostics( 8001CreateCompilation(source).VerifyDiagnostics( 8046CreateCompilation(source).VerifyDiagnostics( 8076CreateCompilation(source).VerifyEmitDiagnostics( 8115CreateCompilation(source).VerifyEmitDiagnostics( 8154CreateCompilation(source).VerifyEmitDiagnostics( 8191CreateCompilation(source).VerifyEmitDiagnostics( 8222CreateCompilation(source).VerifyEmitDiagnostics( 8246CreateCompilation(source).VerifyEmitDiagnostics( 8267CreateCompilation(source).VerifyEmitDiagnostics( 8288var comp = CreateCompilation(tree); 8319var comp = CreateCompilation(tree); 8374var comp = CreateCompilation(tree); 8403var comp = CreateCompilation(tree); 8432var comp = CreateCompilation(tree); 8480var comp = CreateCompilation(tree); 8514var comp = CreateCompilation(tree); 8547var comp = CreateCompilation(tree); 8576var comp = CreateCompilation(tree); 8623var comp = CreateCompilation(tree); 8658var comp = CreateCompilation(tree); 8687var comp = CreateCompilation(tree); 8716var comp = CreateCompilation(tree); 8746var comp = CreateCompilation(tree); 8801var comp = CreateCompilation(tree); 8831var comp = CreateCompilation(tree); 8890var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 8937var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9008var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9060var comp = CreateCompilation(tree, 9137var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9218var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9301var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9355var comp = CreateCompilation(tree, 9808var comp = CreateCompilation(source); 9845var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9900var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9942var comp = CreateCompilation(source); 9988var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10027var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10054var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10127var comp = CreateCompilation(source); 10234var comp = CreateCompilation(source); 10266var comp = CreateCompilation(source); 10757var comp = CreateCompilation(source); 10914var comp = CreateCompilation(source); 10941var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 12058var comp = CreateCompilation(source); 12343var comp = CreateCompilation(source); 12429var comp = CreateCompilation(source); 12532var comp = CreateCompilation(source); 13133var comp = CreateCompilation(source); 13519var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13582var comp = CreateCompilation(source); 14026var comp = CreateCompilation(source); 14396var comp = (Compilation)CreateCompilation(source, 16148var comp = CreateCompilation(source); 16169var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16198var comp = CreateCompilation(source); 16219var comp = CreateCompilation(source); 16243var comp = CreateCompilation(source); 16269var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16300var comp = CreateCompilation(source); 16326var comp = CreateCompilation(source); 16349var comp = CreateCompilation(source); 16424var comp = CreateCompilation(source, references: new[] { SystemRef }); 16515var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16530var comp = CreateCompilation(source); 16727var comp = CreateCompilation(source); 16764var libComp = CreateCompilation(lib_cs, assemblyName: "lib"); 16767var comp1 = CreateCompilation(source, references: new[] { libComp.ToMetadataReference() }); 16770var comp2 = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 17177var comp = CreateCompilation(source, 17206var comp = CreateCompilation(tree); 17267var comp = CreateCompilation(tree); 17326var comp = CreateCompilation(tree); 17365var comp = CreateCompilation(tree); 17397var comp = CreateCompilation(tree); 17430var comp = CreateCompilation(tree); 17957var comp = CreateCompilation(source, 18121var comp = CreateCompilation(source); 18172var comp = CreateCompilation(source); 18211var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18251var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18662var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18823var comp = CreateCompilation(source); 18840var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18858var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18878var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18901var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18918var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18943var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18944var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18968var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18969var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18993var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18994var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19019var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19020var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19134var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19173var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19217var comp = CreateCompilation(source); 19272var comp = CreateCompilation(source); 19336var comp = CreateCompilation(source); 19376var comp = CreateCompilation(source); 19416var comp = CreateCompilation(source); 19464var comp = CreateCompilation(source); 19522var comp = CreateCompilation(source); 19577var comp = CreateCompilation(source); 19598var comp = CreateCompilation(source); 19636var comp = CreateCompilation(source); 19689var comp = CreateCompilation(source); 19730var comp = CreateCompilation(source); 19765var comp1 = CreateCompilation(source1 + trivial2uple + source2); 19851var comp = CreateCompilation(source, references: new[] { CSharpRef }); 19890var comp = CreateCompilation(source); 19926var comp = CreateCompilation(source); 19962var comp = CreateCompilation(source); 20027var comp = CreateCompilation(source); 20080var comp = CreateCompilation(source); 20114var comp = CreateCompilation(source); 20141var comp = CreateCompilation(source); 20177var comp = CreateCompilation(source); 20214var comp = CreateCompilation(source); 20254var comp = CreateCompilation(source); 20274var comp = CreateCompilation(source); 20308var comp = CreateCompilation(source); 20336var comp = CreateCompilation(source); 20410var comp = (Compilation)CreateCompilation(source); 20541var comp = CreateCompilation(source, options: TestOptions.DebugExe); 20626var comp = (Compilation)CreateCompilation(source); 20743var comp = (Compilation)CreateCompilation(source); 20792var comp = CreateCompilation(source); 20837var comp = CreateCompilation(source); 20862var comp = CreateCompilation(source); 20890var comp = CreateCompilation(source); 20931var comp = CreateCompilation(source); 20979var comp = CreateCompilation(source); 21007var comp = CreateCompilation(source); 21039var comp = CreateCompilation(source); 21062var comp = CreateCompilation(source); 21085var comp = CreateCompilation(source); 21103var comp = CreateCompilation(source); 21137var comp = CreateCompilation(source); 21155var comp = CreateCompilation(source); 21186var comp = CreateCompilation(source); 21345var comp = CreateCompilation(source, options: TestOptions.DebugExe); 21382var comp = CreateCompilation(source, references: new[] { CSharpRef }); 21919var comp = CreateCompilation(source, 22009var comp = CreateCompilation(source, 22061var comp = CreateCompilation(source, 22100var comp = CreateCompilation(source, 22248var comp = CreateCompilation(source); 22426var comp = CreateCompilation(source); 22541var comp = CreateCompilation(source); 22582var comp = CreateCompilation(source, assemblyName: "comp"); 22639var comp = CreateCompilation(source); 22661var comp = CreateCompilation(source); 22690var comp = CreateCompilation(source); 22713var comp1 = CreateCompilation(source); 22730var comp1 = CreateCompilation(source); 22747var comp1 = CreateCompilation(source); 22770var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 22897var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 22966var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23010var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23044var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23086var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23125var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23397var comp1 = CreateCompilation(source); 24254var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24317var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24382var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24454var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24527var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24597var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24638var comp = CreateCompilation(source); 24654var comp = CreateCompilation(source); 24677var comp = CreateCompilation(source); 24700var comp = CreateCompilation(source); 24727var comp = CreateCompilation(source); 24753var comp = CreateCompilation(source); 24784var comp = CreateCompilation(source); 24812var comp = CreateCompilation(source); 24835var comp1 = CreateCompilation(source1); 24851var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 24882var comp = CreateCompilation(source); 24908var comp = CreateCompilation(source); 24934var comp = CreateCompilation(source); 24960var comp = CreateCompilation(source); 24986var comp = CreateCompilation(source); 25018var comp = CreateCompilation(source, options: TestOptions.DebugExe); 25040var comp = CreateCompilation(source); 25074var comp = CreateCompilation(source); 25187var comp = CreateCompilation(source); 25228var comp = CreateCompilation(source); 26125CreateCompilation(source).VerifyDiagnostics( 26195CreateCompilation(source).VerifyDiagnostics( 26216var comp = CreateCompilation(source, options: TestOptions.DebugExe); 26262CreateCompilation(text).VerifyDiagnostics( 26290var comp = CreateCompilation(source); 26323var comp = CreateCompilation(source); 26356var comp = CreateCompilation(source); 26389var comp = CreateCompilation(source); 26588var missing = CreateCompilation(missing_cs); 26606var lib = CreateCompilation(lib_cs, references: new[] { missingRef }); 26619var comp = CreateCompilation(source_cs, references: new[] { libRef }); 26631var executeComp = CreateCompilation(executable_cs, references: new[] { comp.EmitToImageReference(), libRef, missingRef }, options: TestOptions.DebugExe); 26641var comp = CreateCompilation(sourceA, assemblyName: "A"); 26646comp = CreateCompilation(sourceB, references: new[] { refA }); 26658comp = CreateCompilation(sourceC, references: new[] { refB }); 27039var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27046var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27049var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27053var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27057var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27123var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27130var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27133var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27137var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27141var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27197var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27204var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27207var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27211var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27215var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27275var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27282var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27285var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27289var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27293var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27336var comp1 = CreateCompilation(source0, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 27394var comp = CreateCompilation(source); 27537var comp0 = CreateCompilation(new[] { source0, source1 }, options: TestOptions.DebugDll); 27540var comp1 = CreateCompilation(source0, options: TestOptions.DebugDll); 27543var comp2 = CreateCompilation(source1, references: new[] { comp1.EmitToImageReference() }, options: TestOptions.DebugDll); 27563var comp = CreateCompilation(new[] { source }, options: TestOptions.DebugDll); 27652var comp = CreateCompilation( 27899var comp = CreateCompilation( 27921var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 27949var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple"); 27970var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.Mscorlib40); 27977var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46); 28025var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 28059var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.Mscorlib40); 28092var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.Mscorlib40); 28155var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.Mscorlib40); 28186var comp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples, targetFramework: TargetFramework.Mscorlib40); 28189var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 28300var comp = CreateCompilation(trivialRemainingTuples, targetFramework: TargetFramework.Mscorlib40); 28303var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 28388var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "customValueTuple"); 28392var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46); 28483var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "customValueTuple"); 28531var comp = CreateCompilation(source); 28549var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 28585var comp = CreateCompilation(source); 28617var comp = CreateCompilation(source); 28683var comp = CreateCompilation(source); 28802var comp = CreateCompilation(source + trivialRemainingTuples); 28987var comp = CreateCompilation("", targetFramework: TargetFramework.Minimal);
CodeGen\CodeGenUsingDeclarationTests.cs (26)
816var comp = CreateCompilation(source); 1446var comp = CreateCompilation(source); 1458comp = CreateCompilation(source); 1470comp = CreateCompilation(source); 1498var comp = CreateCompilation(source); 1515comp = CreateCompilation(source); 1554var comp = CreateCompilation(source); 1566comp = CreateCompilation(source); 1578comp = CreateCompilation(source); 1609var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1626comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1668var comp = CreateCompilation(source); 1680comp = CreateCompilation(source); 1692comp = CreateCompilation(source); 1726var comp = CreateCompilation(source); 1738comp = CreateCompilation(source); 1750comp = CreateCompilation(source); 1784var comp = CreateCompilation(source); 1796comp = CreateCompilation(source); 1808comp = CreateCompilation(source); 1843var comp = CreateCompilation(source); 1850comp = CreateCompilation(source); 1857comp = CreateCompilation(source); 1874var comp = CreateCompilation(source); 1887comp = CreateCompilation(source); 1900comp = CreateCompilation(source);
CodeGen\CodeGenUsingStatementTests.cs (16)
1155var comp = CreateCompilation(source); 1237var comp = CreateCompilation(source); 1267var comp = CreateCompilation(source); 1394CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NoConvToIDisp, "obj").WithArguments("T")); 1429CreateCompilation(source).VerifyDiagnostics( 1463CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y")); 1487CreateCompilation(source).VerifyDiagnostics( 1514CreateCompilation(source).VerifyDiagnostics( 2536CreateCompilation(source).VerifyDiagnostics( 2572CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_FixedMustInit, "res2")); 2654CreateCompilation(source).VerifyDiagnostics( 2690CreateCompilation(source).VerifyDiagnostics(); 2733CreateCompilation(source).VerifyDiagnostics( 2773CreateCompilation(source).VerifyDiagnostics( 3116CreateCompilation(source).VerifyDiagnostics( 3270CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
CodeGen\DestructorTests.cs (1)
692var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll);
CodeGen\EventTests.cs (4)
620var compilation = CreateCompilation(csharpSource, new MetadataReference[] { ilAssemblyReference }, TestOptions.ReleaseExe); 707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 779var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 842var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\FixedSizeBufferTests.cs (15)
328CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 361CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 398CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 665CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 692CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 714CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 798CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 827CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 856CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 912CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 953CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 1060CreateCompilation(@" 1152var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer"); 1155var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46);
CodeGen\ForeachTest.cs (2)
483var comp = CreateCompilation(@" 1683var comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never"));
CodeGen\GotoTest.cs (6)
564CreateCompilation(code).VerifyEmitDiagnostics( 584CreateCompilation(code).VerifyEmitDiagnostics( 603CreateCompilation(code).VerifyEmitDiagnostics( 621CreateCompilation(code).VerifyEmitDiagnostics( 639CreateCompilation(code).VerifyEmitDiagnostics( 656CreateCompilation(code).VerifyEmitDiagnostics(
CodeGen\IndexAndRangeTests.cs (6)
3744var comp = CreateCompilation(new[] { source, TestSources.Index }); 3777var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3820var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3853var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3904var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 4235var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
CodeGen\IndexerTests.cs (5)
1200var comp1 = CreateCompilation(text1); 1209comp1 = CreateCompilation(text1); 1218comp1 = CreateCompilation(text1); 1232var comp1 = CreateCompilation(text1); 1260var comp1 = CreateCompilation(text1);
CodeGen\ITuplePatternTests.cs (1)
19return CreateCompilation(new[] { source, _iTupleSource }, options: options ?? TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithRecursivePatterns);
CodeGen\ObjectAndCollectionInitializerTests.cs (2)
3692var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 3731var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\PatternTests.cs (90)
235var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 269compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 333var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 401var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 502var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 634var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 695compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 771var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 832var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 857var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 893var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 932var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 968var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1008var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1055var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1106var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1141var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1179var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1223var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1282var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1339var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1399var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1471var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1535var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1598var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1712var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1773var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1840var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1904var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2038var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2267var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2404var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2538var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithoutRecursivePatterns); 2612var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2646var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2667var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2713var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2793var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2839var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2902var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2999var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3096var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3237var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, references: new[] { CSharpRef }); 3265var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3295var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3384var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3550var compilation = CreateCompilation(source, options: options); 3633var compilation = CreateCompilation(source, options: options); 3705var compilation = CreateCompilation(source, options: options); 3781var compilation = CreateCompilation(source, options: options); 3992var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3995compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4030var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4033compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4058var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4094var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4121var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4213var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4248var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4329var compilation = CreateCompilation(source, options: compilationOptions); 4508var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4542var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4576var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4773var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4806var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4842var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4880var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4914var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4988var compilation = CreateCompilation(source); 5114var compilation = CreateCompilation(source); 5263var compilation = CreateCompilation(source); 5396var compilation = CreateCompilation(source); 5453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5481var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5507var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5549compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5607var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5653compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5715var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5789compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5938compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6023var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6107compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators);
CodeGen\PropertyTests.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\SwitchTests.cs (23)
278CreateCompilation(source).VerifyDiagnostics(); 7852var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 7989comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8092var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 8223comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 8302comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8370comp = CreateCompilation(text); 9441CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9572CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9765CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9820CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9873CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9881var compilation = CreateCompilation(source, 9925CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9933var compilation = CreateCompilation(source, 9973CreateCompilation(source).VerifyDiagnostics( 10026var compilation = CreateCompilation(source, 10118var compilation = CreateCompilation(source, 10519var compilation = CreateCompilation(source, 10607var compilation = CreateCompilation(source, options: TestOptions.DebugExe) 10695compilation = CreateCompilation(source, options: TestOptions.ReleaseExe) 10802var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 10867compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9)
CodeGen\UnsafeTests.cs (12)
89var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 115var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 141var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 167var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 193var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 5793var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 9955var comp = CreateCompilation($@" 10523var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe); 10553var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10624var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10903var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11357var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll);
Emit\CompilationEmitTests.cs (113)
47var compilation = CreateCompilation(source); 80var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("abc.X")); 83compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("\"abc.X\"")); 99compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("решения.X")); 102compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("\"решения.X\"")); 122var compilation = CreateCompilation(source); 139CSharpCompilation comp = CreateCompilation(@" 183CSharpCompilation comp = CreateCompilation(@" 235CSharpCompilation compUsing = CreateCompilation(srcUsing, new[] { MetadataReference.CreateFromImage(mdOnlyImage.AsImmutableOrNull()) }); 250CSharpCompilation comp = CreateCompilation(@" 295CSharpCompilation comp = CreateCompilation(@" 341CSharpCompilation comp = CreateCompilation(@" 395CSharpCompilation comp = CreateCompilation(@" 451CSharpCompilation comp = CreateCompilation(@" 504CSharpCompilation comp = CreateCompilation(@" 553CSharpCompilation comp = CreateCompilation(@" 697CSharpCompilation comp = CreateCompilation(@" 723CSharpCompilation comp = CreateCompilation(@" 747CSharpCompilation comp = CreateCompilation(@" 772CSharpCompilation comp = CreateCompilation(@" 800CSharpCompilation comp = CreateCompilation(@" 821CSharpCompilation comp = CreateCompilation(@" 854CSharpCompilation comp = CreateCompilation(@" 942var comp = CreateCompilation(""); 1021var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1043var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1051var comp = CreateCompilation(source, options: TestOptions.DebugDll, 1061var comp = CreateCompilation("", references: new[] { reference }); 1099var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1122var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1130var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1143var comp = CreateCompilation("", references: new[] { reference }); 1205CSharpCompilation comp1 = CreateCompilation(Parse(source1), options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1209Compilation comp2 = CreateCompilation(Parse(source2), options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1281var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1294var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1314CSharpCompilation compilation = CreateCompilation( 1887var libComp = CreateCompilation(lib_cs, 1892var comp = CreateCompilation(source, references: new[] { libImage }, 1905var comp1 = CreateCompilation(source, options: options, assemblyName: name); 1924var comp2 = CreateCompilation(source, options: options, assemblyName: name); 1998var comp = CreateCompilation("public class C{}", 2017var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2037var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2056var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2095CSharpCompilation comp = CreateCompilation(Parse(source), 2696var libComp = CreateCompilation( 2754var exeComp = CreateCompilation( 3369var compilation = CreateCompilation(source); 3402var compilation = CreateCompilation(source); 3440var compilation = CreateCompilation(source); 3485var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu)); 3489compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3493compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3499compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu32BitPreferred)); 3505compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.Arm)); 3522var compilation = CreateCompilation(source, 3556var compilation = CreateCompilation(source, 3606var compilation = CreateCompilation(source, 3646var compilation = CreateCompilation(source, 3688var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3720var compilation = CreateCompilation(source); 3738var compilation = CreateCompilation(source, options: TestOptions.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug)); 3756var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3761compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3766compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3771compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3776compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3781compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3785compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3790compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3795compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4001var compilation = CreateCompilation(source); 4013var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4079var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4110var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4141var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4172var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4210var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule, assemblyName: "ContentType"); 4230var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll); 4253var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 4317var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4364var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4425var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4491var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4548var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4610var c1 = CreateCompilation(p1, options: TestOptions.ReleaseDll, assemblyName: Guid.NewGuid().ToString()); 4620var comp = CreateCompilation(source1, options: TestOptions.ReleaseModule); 4631var c1 = CreateCompilation(p1); 4659var comp = CreateCompilation(text, options: TestOptions.ReleaseExe).VerifyDiagnostics( 5069var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5141var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5162var compilation = CreateCompilation(source); 5187var compilation = CreateCompilation(source); 5206var compilation = CreateCompilation(source, null, TestOptions.DebugDll); 5262var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule); 5266var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule, references: new[] { ref1 }); 5270var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe, references: new[] { ref1, ref2 }); 5309var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule.WithModuleName("A")); 5313var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule.WithModuleName("B"), references: new[] { ref1 }); 5317var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe.WithModuleName("C"), references: new[] { ref1, ref2 }); 5354var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 5416var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef }); 5454var compilation = CreateCompilation(source); 5467var comp = CreateCompilation("class C {}"); 5506var compilation = CreateCompilation(source); 5533var compilation = CreateCompilation(source); 5549var modRef = CreateCompilation("public class A { }", options: TestOptions.ReleaseModule, assemblyName: "refMod").EmitToImageReference(); 5550var comp = CreateCompilation("public class B : A { }", references: new[] { modRef }, assemblyName: "sourceMod"); 5590var compilation = CreateCompilation(source, options: options); 5641var compilation = CreateCompilation(source, options: options);
Emit\DesktopStrongNameProviderTests.cs (2)
99var comp = CreateCompilation(src, options: options); 116var comp = CreateCompilation(src, options: options);
Emit\DeterministicTests.cs (5)
299var forwardedToCompilation1 = CreateCompilation(forwardedToCode, assemblyName: "ForwardedTo"); 317var forwardingCompilation = CreateCompilation(forwardingCode, new MetadataReference[] { forwardedToReference1 }); 352var forwardedToCompilation2 = CreateCompilation(forwardedToCode, assemblyName: "ForwardedTo"); 355var withRetargeting = CreateCompilation("", new MetadataReference[] { forwardedToReference2, forwardingReference }); 485var comp = CreateCompilation(source1, options: opt, assemblyName: assemblyName);
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (13)
75var c = CreateCompilation(Parse(ExampleSource + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 219var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 339var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 433var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 490var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 529var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 560var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 600var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 668var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 749var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 830var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 924var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 957var c = CreateCompilation(Parse(ExampleSource + InstrumentationHelperSource, @"C:\myproject\doc1.cs"));
Emit\EmitCustomModifiers.cs (1)
43var c = CreateCompilation(source,
Emit\EmitErrorTests.cs (12)
38var compilation1 = CreateCompilation(source1); 67var compilation1 = CreateCompilation(source1); 99var compilation1 = CreateCompilation(source1); 133var compilation1 = CreateCompilation(source1); 170var compilation1 = CreateCompilation(source1); 217var compilation1 = CreateCompilation(source1); 237var compilation2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 264var netModule = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule, assemblyName: "ModuleNameMismatch"); 270var compilationOK = CreateCompilation(source, new MetadataReference[] { moduleMetadata.GetReference(filePath: @"R:\A\B\ModuleNameMismatch.netmodule") }); 274var compilationError = CreateCompilation(source, new MetadataReference[] { moduleMetadata.GetReference(filePath: @"R:\A\B\ModuleNameMismatch.mod") }); 306var compilation1 = CreateCompilation(builder.ToString(), null, TestOptions.DebugDll.WithSpecificDiagnosticOptions(warnOpts)); 336var compilation = CreateCompilation(builder.ToString());
Emit\EmitMetadataTests.cs (6)
924var comp = CreateCompilation(@"using System; 980var comp = CreateCompilation(@" 2210var comp = CreateCompilation("class Test { static void Main() { } }"); 2790var comp = CreateCompilation(@" 2839var reference = CreateCompilation(@" 2891var reference = CreateCompilation(@"
Emit\EntryPointTests.cs (42)
18return CreateCompilation(source, options: TestOptions.ReleaseExe.WithWarningLevel(5).WithMainTypeName(mainTypeName), parseOptions: parseOptions); 49var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 410var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("N.M")); 428var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 446var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 481var compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe); 494compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 502compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe.WithMainTypeName("D.DD")); 580CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("A.B.C")).VerifyDiagnostics( 602var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 624var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 647var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 675var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 696var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 812var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 815compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")); 829var compilation = CreateCompilation( 847var compilation = CreateCompilation( 855compilation = CreateCompilation( 863compilation = CreateCompilation( 895var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 900compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")); 907compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("E")); 1389CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics( 1402CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1407CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1412CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1417CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1422CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1427CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1441CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName(string.Empty)).VerifyDiagnostics( 1455CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics( 1470CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("d")).VerifyDiagnostics( 1511CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("Main")).VerifyDiagnostics( 1533CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("Program")).VerifyDiagnostics(); 1551CreateCompilation(source, 1570var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1573var netModule = CreateCompilation(source, options: TestOptions.ReleaseModule); 1575compilation = CreateCompilation("", 1596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1617var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1637var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Emit\InAttributeModifierTests.cs (74)
22var reference = CreateCompilation(@" 58var reference = CreateCompilation(@" 85var reference = CreateCompilation(@" 109var reference = CreateCompilation(@" 136var reference = CreateCompilation(@" 160var reference = CreateCompilation(@" 186var reference = CreateCompilation(@" 634CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 690CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 749CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 764CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 820CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 836CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 899CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 914CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 971CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1030CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1085CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1141CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1200CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1215CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1271CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1287CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1350CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1365CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1423CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1482CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 2156CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2207CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2257CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2309CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2325CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2377CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2426CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2479CreateCompilation(code, references: new[] { CompileIL(ilSource) }).VerifyDiagnostics( 2491var reference = CreateCompilation(@" 2539var reference = CreateCompilation(@" 2586var reference = CreateCompilation(@" 2641var reference = CreateCompilation(@" 2689var reference = CreateCompilation(@" 2736var reference = CreateCompilation(@" 2781var reference = CreateCompilation(@" 2826var reference = CreateCompilation(@" 2871var reference = CreateCompilation(@" 2916var reference = CreateCompilation(@" 2961var reference = CreateCompilation(@" 3006var reference = CreateCompilation(@" 3052var reference = CreateCompilation(@" 3098var reference = CreateCompilation(@" 3144var reference = CreateCompilation(@" 3190var reference = CreateCompilation(@" 3238var reference = CreateCompilation(@" 3286var reference = CreateCompilation(@" 3341var reference = CreateCompilation(@" 3389var reference = CreateCompilation(@" 3437var reference = CreateCompilation(@" 3483var reference = CreateCompilation(@" 3529var reference = CreateCompilation(@" 3575var reference = CreateCompilation(@" 3621var reference = CreateCompilation(@" 3667var reference = CreateCompilation("public delegate void D(in int p);"); 3700var reference = CreateCompilation("public delegate ref readonly int D();"); 3733var reference = CreateCompilation(@" 3776var reference = CreateCompilation(@" 3828var comp = CreateCompilation(code).VerifyDiagnostics( 3857var comp = CreateCompilation(code).VerifyDiagnostics( 4160var testRef = CreateCompilation(@" 4207var testRef = CreateCompilation(@" 4254var testRef = CreateCompilation(@" 4303var testRef = CreateCompilation(@" 4355var testRef = CreateCompilation(@" 4414var ref1 = CreateCompilation(refCode).EmitToImageReference(); 4415var ref2 = CreateCompilation(refCode).EmitToImageReference(); 4423var comp = CreateCompilation(user, references: new[] { ref1, ref2 }).VerifyDiagnostics();
Emit\NoPiaEmbedTypes.cs (211)
46var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 70var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 75compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 95var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 115var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 120compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 171var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 192var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 197compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 228var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 261var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 266compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 297var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 321var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 326compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 350var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 372var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 377compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 400var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 422var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 427compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 448var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 471var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 476compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 498var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 521var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 526compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 548var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 571var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 576compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 598var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 621var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 626compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 648var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 671var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 676compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 698var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 721var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 726compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 779var compilation2 = CreateCompilation(sources2, references: new MetadataReference[] { reference1 }); 1067var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 1161var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1164var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1703var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 1720var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1723var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1802var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 1825var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1830compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1860var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 2040var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 2063var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2068compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2097var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 2130var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2135compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2167var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2188var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2191var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2283var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2304var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2307var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2362var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2389var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2394var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2435var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2470var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, 2475var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, 2501var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2533var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2538var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2648var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2680var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2697var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2700var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2752var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2769var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2772var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2816var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2833var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2836var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2877var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2894var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2897var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2940var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2960var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2963var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3006var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3026var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3029var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3065var dispIdDefinition = CreateCompilation(dispId, options: TestOptions.ReleaseDll, assemblyName: "DispId").EmitToImageReference(aliases: ImmutableArray.Create("dispId")); 3085var piaCompilation = CreateCompilation(pia, references: new[] { dispIdDefinition }, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3105var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3108var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3143var empty = CreateCompilation("", options: TestOptions.ReleaseDll).EmitToImageReference(); 3161var piaCompilation = CreateCompilation(pia, references: new[] { empty }, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3185var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3225var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3249var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3286var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3306var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3309var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3353var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3373var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3376var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3418var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3441var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3444var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3571var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3591var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3594var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3635var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3656var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3659var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3700var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3713var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3716var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3747var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3760var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3763var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3799var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 3824var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 3841var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3845var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3884var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 3906var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3909var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3977var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3982var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, 3988var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 3994var compilation3 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4000var compilation4 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4006var compilation5 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4073var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4078var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, 4084var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4090var compilation3 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4096var compilation4 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4102var compilation5 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4141var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4158var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4161var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4218var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4242var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4245var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4302var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4319var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4322var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4366var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4384var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4387var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4431var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4449var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4452var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4491var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4509var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4512var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4551var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4569var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4572var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4617var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4635var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4638var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4675var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4693var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4716var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4720var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4743var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4762var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4842var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 4862var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 4888var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4892var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4896var compilation3 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4900var compilation4 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4923var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4943var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4966var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4970var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4993var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 5014var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 5038var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5042var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5065var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 5082var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5112var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 5130var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5161var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 5181var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 5204var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5208var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5212var compilation3 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5216var compilation4 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5318var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 5339var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 5365var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5369var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5373var compilation3 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5377var compilation4 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5425var IEvent_Compilation = CreateCompilation(IEvent_cs, options: TestOptions.ReleaseDll, assemblyName: "IEvent"); 5536var NetImpl_2_Compilation = CreateCompilation(NetImpl_cs, new[] { IEvent_Metadata.GetReference(embedInteropTypes: true) }, options: TestOptions.ReleaseDll, assemblyName: "NetImpl"); 5595var app_compilation = CreateCompilation(App_cs, new[] { NetImpl_ref, IEvent_ref, CSharpRef }, options: TestOptions.ReleaseExe, assemblyName: "App"); 5621var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 5637var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5640var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5703var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 5729var compilation0 = CreateCompilation(consumer0, options: TestOptions.ReleaseDll, references: new MetadataReference[] { piaRef1 }); 5738compilation0 = CreateCompilation(consumer0, options: TestOptions.ReleaseDll, references: new MetadataReference[] { piaRef2 }); 5758var compilation1 = CreateCompilation(consumer2, options: TestOptions.ReleaseDll, 5761var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseDll, 5989var compilation = CreateCompilation(source,
Emit\OptionalArgumentsTests.cs (8)
144var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 182var comp2b = CreateCompilation( 207var comp = CreateCompilation(source); 257CreateCompilation(source).VerifyDiagnostics( 326CreateCompilation(source).VerifyDiagnostics( 354CreateCompilation(source).VerifyDiagnostics( 407var comp = CreateCompilation(source); 459var comp = CreateCompilation(source);
Emit\ResourceTests.cs (19)
42var c1 = CreateCompilation(source, assemblyName: "Win32VerNoAttrs", options: TestOptions.ReleaseExe); 132var c1 = CreateCompilation(source, assemblyName: "Win32WithCoff", options: TestOptions.ReleaseDll); 208var c1 = CreateCompilation(""); 237var c1 = CreateCompilation(""); 257var c1 = CreateCompilation(""); 310var c1 = CreateCompilation(""); 337var c1 = CreateCompilation(""); 380c1 = CreateCompilation("", references: new[] { netModule1 }); 402var c1 = CreateCompilation(source); 514var c2 = CreateCompilation(sourceTree, new[] { ref_mod1 }, TestOptions.ReleaseDll); 562var c3 = CreateCompilation(sourceTree, new[] { ref_mod2 }, TestOptions.ReleaseDll); 620var c4 = CreateCompilation(sourceTree, new[] { ref_mod3 }, TestOptions.ReleaseDll); 663var c5 = CreateCompilation(sourceTree, new[] { ref_mod1, ref_mod3 }, TestOptions.ReleaseDll); 707var c6 = CreateCompilation(sourceTree, new[] { ref_mod1, ref_mod2 }, TestOptions.ReleaseDll); 745c6 = CreateCompilation(sourceTree, new[] { ref_mod1, ref_mod2 }, TestOptions.ReleaseModule); 768var c1 = CreateCompilation(source); 795var c1 = CreateCompilation(source); 832var c1 = CreateCompilation(source, assemblyName: "Win32VerAttrs", options: TestOptions.ReleaseExe); 896var c1 = CreateCompilation("");
PrivateProtected.cs (24)
38CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 77var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 100var baseCompilation = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2, 188CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 246CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 274CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 294CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 318CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 360CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 386CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 400CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 419CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 451CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 468CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 498CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 549CreateCompilation(source, parseOptions: TestOptions.Regular7_1) 579CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 613CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 625CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 658CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 681CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 695var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 722var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 748var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (500)
CodeGen\CodeGenLengthBasedSwitchTests.cs (44)
77var comp = CreateCompilation(source); 267comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 505comp = CreateCompilation(source, options: TestOptions.DebugExe); 1314var comp = CreateCompilation(source); 1366var comp = CreateCompilation(source); 1472comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 1647var comp = CreateCompilation(source); 1787var comp = CreateCompilation(source); 1795comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 1827var comp = CreateCompilation(source); 1926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1979var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2191var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2244var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2318var comp = CreateCompilation(source); 2430comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 2634var comp = CreateCompilation(source); 2864comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 3168var comp = CreateCompilation(source); 4384var comp = CreateCompilation(source); 6750var comp = CreateCompilation(source); 7761comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9054var comp = CreateCompilation(source); 9184comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9366var comp = CreateCompilation(source); 9581comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9825var comp = CreateCompilation(source); 9962var comp = CreateCompilation(source); 10342comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 10803var comp = CreateCompilation(source); 11085var comp = CreateCompilation(source); 11134var comp = CreateCompilation(source); 11333var comp = CreateCompilation(source); 11643comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 11990var comp = CreateCompilation(source); 12334var comp = CreateCompilation(source); 12647comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 12985var comp = CreateCompilation(source); 13108comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 13302var comp = CreateCompilation(source); 13585comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 13910var comp = CreateCompilation(source); 14020comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch());
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (1)
6026var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.DebugExe);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (38)
329var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 382var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 481var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 535var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 586var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1066var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1176var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1467var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1533var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1659var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1739var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1785var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1848var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1931var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2056var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2117var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2707var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3171var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3431var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3507var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3580var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3701var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3749var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3823var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3953var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4285var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4338var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4471var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4561var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4754var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 5479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 5669var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80);
CodeGen\IndexAndRangeTests.cs (12)
1080var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1116var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1144var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1184var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2999var comp = CreateCompilation(source); 3094var comp = CreateCompilation(source); 3620var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 3711var comp = CreateCompilation(source); 3797var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 3884var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 4415var comp = CreateCompilation(new[] { source, IndexWithSideEffects }); 4458var comp = CreateCompilation(new[] { source, IndexWithSideEffects });
Emit\EditAndContinue\AssemblyReferencesTests.cs (14)
202var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 205var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 208var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 301var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 306var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 310var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 386var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 390var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 394var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 470var lib01 = CreateCompilation(srcLib01, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 473var lib02 = CreateCompilation(srcLib02, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 476var lib11 = CreateCompilation(srcLib11, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 479var lib12 = CreateCompilation(srcLib12, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 585var compilation0 = CreateCompilation(source0.Tree, options: options.WithCurrentLocalTime(new DateTime(2016, 1, 1, 1, 0, 0)));
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
45var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 173var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 237var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 301var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
121var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "EncMethodExtents");
Emit\EditAndContinue\EditAndContinueTests.cs (7)
259var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 308var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 392var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 462var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 500var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 561var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 794var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20);
Emit\EditAndContinue\LocalSlotMappingTests.cs (43)
47var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 122var compilation0 = CreateCompilation(source, options: ComSafeDebugDll); 340var debug = CreateCompilation(source, options: TestOptions.DebugDll); 341var release = CreateCompilation(source, options: TestOptions.ReleaseDll); 426var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 530var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 642var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 1208var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1316var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1480var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1663var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1848var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2008var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2038var compilation0 = CreateCompilation( 2148var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 2194var compilation1 = CreateCompilation(source1.Tree, options: TestOptions.DebugDll); 2341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 2598var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2736var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2881var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3117var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3331var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3438var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3551var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3659var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3751var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3888var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 3970var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4233var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4280var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4336var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4391var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4443var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4499var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4568var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4648var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4741var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4802var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4862var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4951var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 5052var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithAllowUnsafe(true));
Emit\EditAndContinue\SymbolMatcherTests.cs (65)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 32return (PEAssemblySymbol)CreateCompilation("", new[] { reference }).GetReferencedAssemblySymbol(reference); 77var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 140var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 166var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 190var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new[] { metadataRef }); 231var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 276var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll).WithSource(source1); 304var lib0 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 305var lib1 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 307var compilation0 = CreateCompilation(source, new[] { lib0.ToMetadataReference() }, options: TestOptions.DebugDll); 341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 372var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 404var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 439var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 490var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 545var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 548var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 561var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 600var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 624var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 648var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 672var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 696var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 720var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 744var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 768var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 792var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 816var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 854var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 902var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 943var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 946var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 948var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll); 983var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1008var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1033var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1056var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1100var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1103var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 1115var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1162var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1211var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1245var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1296var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1319var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1364var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1385var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1411var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1469var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1520var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1521var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1524var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 1580var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1581var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1584var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 1650var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1651var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1654var peAssemblySymbol0 = (PEAssemblySymbol)CreateCompilation("", new[] { peRef0 }).GetReferencedAssemblySymbol(peRef0); 1715var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1757var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1809var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1856var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1901var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll);
Emit\ManagedAddressTests.cs (1)
52var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
Emit\NumericIntPtrTests.cs (136)
933var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 936comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 941comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 944comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 995var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 998comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1003comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1006comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1024comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1039var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1046comp = CreateCompilation(source); 1069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1076comp = CreateCompilation(source); 1094var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1108comp = CreateCompilation(source); 1132var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1147comp = CreateCompilation(source); 1188var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1191comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1196comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1199comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1234comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1275var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1278comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1328var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1363CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1377CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1408CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1409CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1456var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1520var comp = CreateCompilation("", parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1646comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1738var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1757comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1865var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.Net70); 1868comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1892comp = CreateCompilation(source); 1913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2223var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2251comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2292comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2407var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2457var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2711var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2796var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2811var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2823comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2840var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2855comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2919var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2952var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2983var comp = CreateCompilation(source); 3052var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3055comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3059comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3062comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3065comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3068comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3125var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3293var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6240var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6847var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 7020var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8182var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8612var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8688var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9013var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9032comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9060var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9089var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9121comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9139comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9157var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9206comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9245var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9298var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9327var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9427var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9508var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9646var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9702var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9832var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 9917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9971var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10024var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10273var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.Net70); 10500var comp = CreateCompilation(new[] { source }, targetFramework: TargetFramework.Net70); 10576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10587var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10708var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10721var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10724var comp2 = CreateCompilation(source, references: new[] { image }, targetFramework: TargetFramework.Net70); 10758var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10826var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10894var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10921var comp = CreateCompilation(source, references: new[] { libComp.ToMetadataReference() }, targetFramework: TargetFramework.Net70); 10943var libComp = CreateCompilation(lib_cs, assemblyName: "lib", targetFramework: TargetFramework.Net70); 10985var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11047var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11051comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11168var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11191var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11219var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11244var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11269var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11289var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11687var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11704var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11745var comp = CreateCompilation(new[] { TestSources.Span, source }, options: TestOptions.UnsafeReleaseExe); 11748comp = CreateCompilation(new[] { source }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11810var comp = CreateCompilation(
Emit\UnmanagedTypeModifierTests.cs (14)
73CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 142CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 211CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 278CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 344CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 405CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1108var ref1 = CreateCompilation(refCode).EmitToImageReference(); 1109var ref2 = CreateCompilation(refCode).EmitToImageReference(); 1116CreateCompilation(user, references: new[] { ref1, ref2 }).VerifyDiagnostics(); 1209CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1265CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1323CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1383CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 1438var c = CreateCompilation(code, references: new[] { reference });
PDB\CheckSumTest.cs (2)
37var compilation = CreateCompilation(new[] { tree1, tree256 }); 233var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") });
PDB\CSharpDeterministicBuildCompilationTests.cs (6)
121var referenceOneCompilation = CreateCompilation( 131var referenceTwoCompilation = CreateCompilation( 181var referenceOneCompilation = CreateCompilation( 191var referenceTwoCompilation = CreateCompilation( 245var referenceOneCompilation = CreateCompilation( 255var referenceTwoCompilation = CreateCompilation(
PDB\PDBConstantTests.cs (1)
532var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
PDB\PDBDynamicLocalsTests.cs (1)
1708var c = CreateCompilation(source, options: TestOptions.DebugDll);
PDB\PDBEmbeddedSourceTests.cs (2)
44var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 104var c = CreateCompilation(tree, options: TestOptions.DebugDll);
PDB\PDBIteratorTests.cs (1)
1624var compilation = CreateCompilation(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp);
PDB\PDBLambdaTests.cs (5)
1847var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1875var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1909var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1926var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2024var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll);
PDB\PDBSourceLinkTests.cs (5)
51var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 81var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 121var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 143var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 185var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\PDBTests.cs (42)
94Compilation compilation = CreateCompilation("class C { }", options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 172var compilation = CreateCompilation( 216var compilation = CreateCompilation( 250var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 282var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 314var compilation = CreateCompilation(source0, options: TestOptions.DebugDll.WithDeterministic(true)); 346var compilation = CreateCompilation(source0); 397var comp = CreateCompilation(""" 447CreateCompilation(source, options: TestOptions.DebugDll).VerifyEmitDiagnostics( 471var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); 510var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); 556var debug = CreateCompilation(source, options: TestOptions.DebugWinMD); 581var release = CreateCompilation(source, options: TestOptions.ReleaseWinMD); 611var comp = CreateCompilation(new[] { tree1, tree2 }); 648var c = CreateCompilation(source, options: TestOptions.DebugDll); 671var c = CreateCompilation(source, options: TestOptions.DebugExe); 697var c1 = CreateCompilation(source1, options: TestOptions.DebugDll); 698var c2 = CreateCompilation(source2, options: TestOptions.DebugDll); 3267var c = CreateCompilation(source, options: TestOptions.DebugDll); 4966var compilation = CreateCompilation(new SyntaxTree[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); 5062var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options: TestOptions.DebugDll); 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6104var c = CreateCompilation(source, options: TestOptions.DebugDll); 6221var c = CreateCompilation(source, options: TestOptions.DebugDll); 6736var c = CreateCompilation(source, options: TestOptions.DebugDll); 6851var c = CreateCompilation(source, options: TestOptions.DebugDll); 6953var c = CreateCompilation(source, options: TestOptions.DebugDll); 7748var compilation = CreateCompilation(text1, options: TestOptions.DebugDll); 8032var c = CreateCompilation(Parse(source, filename: "file.cs")); 8694var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9091var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9458var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9687var c = CreateCompilation(source, options: TestOptions.DebugDll); 10529var c = CreateCompilation(source, options: TestOptions.DebugDll); 10700var c = CreateCompilation(source, options: TestOptions.DebugDll); 10883var c = CreateCompilation(source, options: TestOptions.DebugDll); 11286var c = CreateCompilation(source, options: TestOptions.DebugDll); 12402var c = CreateCompilation( 12881var compilation = CreateCompilation(""); 12911var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 12949var c = CreateCompilation(new[] { tree }, options: TestOptions.DebugDll); 12970var c = CreateCompilation(
PDB\PDBTupleTests.cs (6)
27var comp = CreateCompilation(source, options: TestOptions.DebugDll); 74var comp = CreateCompilation(source, options: TestOptions.DebugDll); 126var comp = CreateCompilation(source, options: TestOptions.DebugDll); 193var comp = CreateCompilation(source, options: TestOptions.DebugDll); 244var comp = CreateCompilation(source, options: TestOptions.DebugDll); 310var c = CreateCompilation(source, options: TestOptions.DebugDll);
PDB\PDBUsingTests.cs (41)
30return CreateCompilation( 664var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases2"); 671var compilation2 = CreateCompilation( 717var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases3"); 724var compilation2 = CreateCompilation( 771var dummyCompilation = CreateCompilation(src1, assemblyName: "A", options: TestOptions.DebugDll); 807var comp = CreateCompilation(sourceA, assemblyName: "A1"); 818comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.DebugDll); 857var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 867comp = CreateCompilation(sourceA4, assemblyName: "A4"); 943var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 953comp = CreateCompilation(sourceA4, assemblyName: "A4"); 1029var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1039comp = CreateCompilation(sourceA4, assemblyName: "A4"); 1122var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1132comp = CreateCompilation(sourceA4, assemblyName: "A4"); 1215var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1225comp = CreateCompilation(sourceA4, assemblyName: "A4"); 1307var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1317comp = CreateCompilation(sourceA4, assemblyName: "A4"); 1398CSharpCompilation dummyCompilation1 = CreateCompilation(dummySource, assemblyName: "A", options: TestOptions.DebugDll); 1399CSharpCompilation dummyCompilation2 = CreateCompilation(dummySource, assemblyName: "B", options: TestOptions.DebugDll); 1463CSharpCompilation libComp = CreateCompilation(@" 1692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1765var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 2599var libRef = CreateCompilation(libSource, assemblyName: "Lib").EmitToImageReference(); 2660var comp = CreateCompilation(source); 2693var lib = CreateCompilation(libSource, assemblyName: "Lib"); 2712var comp = CreateCompilation(source, new[] { libRef }); 2754var comp = CreateCompilation(source); 2834var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "Comp1"); 2851var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugExe); 2905var compilation = CreateCompilation(text, options: TestOptions.DebugExe); 2930var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40); 3018var comp = CreateCompilation(source); 3070var c = CreateCompilation(source, assemblyName: "EmittingPdbVsNot", options: TestOptions.ReleaseDll); 3153var libRef = CreateCompilation(sourceLib, assemblyName: "ImportedNoPiaTypesAssemblyName").EmitToImageReference(embedInteropTypes: true); 3154var compilation = CreateCompilation(source, new[] { libRef }); 3225var libRef1 = CreateCompilation(sourceLib1).EmitToImageReference(); 3226var libRef2 = CreateCompilation(sourceLib2, new[] { libRef1 }, assemblyName: "LibRef2").EmitToImageReference(); 3227var compilation = CreateCompilation(source, new[] { libRef2 });
PDB\PortablePdbTests.cs (6)
42var c = CreateCompilation(source, options: TestOptions.DebugDll); 166var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll); 226var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll.WithDeterministic(true)); 301var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 342var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 381var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\TypeDefinitionDocumentTests.cs (1)
464var compilation = CreateCompilation(trees, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5592)
Attributes\AttributeTests.cs (283)
40var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true)); 113var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 116var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 119var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 122var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 146var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 149var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 152var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 159var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 186var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 189var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 192var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 199var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 235var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 238var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 241var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 244var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 268var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 271var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 274var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 277var newLibComp = CreateCompilation(newLib_cs, 281var newLibComp2 = CreateCompilation(newLib_cs, 305var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 308var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 311var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 314var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 317var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 320var newLibComp3 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 339var origLibComp = CreateCompilation(cDefinition_cs, assemblyName: "lib"); 342var compWithDerivedAndReferenceToLib = CreateCompilation(typeForward_cs + derivedDefinition_cs, references: new[] { origLibComp.EmitToImageReference() }); 345var compWithC = CreateCompilation(cDefinition_cs, assemblyName: "new"); 348var newLibComp = CreateCompilation(typeForward_cs, references: new[] { compWithDerivedAndReferenceToLib.EmitToImageReference(), compWithC.EmitToImageReference() }, assemblyName: "lib"); 378var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 381var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 384var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 387var newLibComp = CreateCompilation(newLib_cs, 391var newLibComp2 = CreateCompilation(newLib_cs, 416var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 419var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 422var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 425var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 428var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 451var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 454var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 457var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 460var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 463var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 470var source = CreateCompilation(@" 599var comp = CreateCompilation(@" 630var comp = CreateCompilation(@" 675var comp = CreateCompilation(source); 702var comp = CreateCompilation(source); 743var comp = CreateCompilation(source); 807var comp = CreateCompilation(source); 849var comp = CreateCompilation(source); 890var comp = CreateCompilation(source); 929var comp = CreateCompilation(source); 989CreateCompilation(new[] { definitionSource, usageSource }, options: WithNullableEnable()) 992var definitionComp = CreateCompilation(definitionSource, options: WithNullableEnable()); 994CreateCompilation(usageSource, references: new[] { definitionComp.ToMetadataReference() }, options: WithNullableEnable()) 997CreateCompilation(usageSource, references: new[] { definitionComp.EmitToImageReference() }, options: WithNullableEnable()) 1018var comp = CreateCompilation(source, options: WithNullableEnable()); 1057var comp = CreateCompilation(source, options: WithNullableEnable()); 1406var compilation = CreateCompilation(@" 1477var compilation = CreateCompilation(@" 1502var compilation = CreateCompilation(@" 1526var compilation = CreateCompilation(@" 1585var compilation = CreateCompilation(@" 1618var compilation = CreateCompilation(@" 1703var compilation = CreateCompilation(source, references, options: opt); 1748var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 2009var comp = CreateCompilation(source); 2027var comp = CreateCompilation(source); 2051var comp = CreateCompilation(source); 2071var comp = CreateCompilation(source); 2091var comp = CreateCompilation(source); 2109var comp = CreateCompilation(source); 2127var comp = CreateCompilation(source); 2149var comp = CreateCompilation(source); 2171var comp = CreateCompilation(source); 2370var comp = CreateCompilation(source); 2394var comp = CreateCompilation(source); 2427var comp = CreateCompilation(source); 2503var comp = CreateCompilation(source); 2535var comp = CreateCompilation(source); 2565var comp = CreateCompilation(source); 2738CreateCompilation(source).VerifyDiagnostics( 2807CreateCompilation(source).VerifyDiagnostics( 2959CreateCompilation(source).VerifyDiagnostics( 3093var compilation = CreateCompilation(source, references, options: TestOptions.ReleaseDll); 3168var compilation = CreateCompilation(source, references, options: opt); 3210var compilation = CreateCompilation(source, references, options: opt); 3258var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3306var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3358var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3410var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3444var compilation = CreateCompilation(source, references, options: opt); 3583var compilation = CreateCompilation(source, references, options: opt); 3631var compilation = CreateCompilation(source); 3677var compilation = CreateCompilation(source, references, options: opt); 3784var compilation = CreateCompilation(source, references, options: opt); 3858var compilation = CreateCompilation(source); 3898var compilation = CreateCompilation(source); 3944var compilation = CreateCompilation(source); 3995var compilation = CreateCompilation(source); 4132var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4175var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4219var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4308var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4510var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4566var compilation = CreateCompilation(source); 4607var compilation = CreateCompilation(source); 4956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5062var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5131var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5167var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5204var compilation = CreateCompilation(source); 5242var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5300var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5361var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5419var comp = CreateCompilation(source); 5473var compilation = CreateCompilation(source); 5706var c1 = CreateCompilation(lib1); 5709var c2 = CreateCompilation(lib2, references: new[] { r1 }); 5712var cm = CreateCompilation(main, new[] { r2 }); 5913var compilation = CreateCompilation(@" 5994var compilation = CreateCompilation(source, references, options: opt); 6036var compilation = CreateCompilation(source); 6063var compilation = CreateCompilation(source); 6097var compilation = CreateCompilation(source); 6146var compilation = CreateCompilation(source); 6166var compilation = CreateCompilation(source); 6185var compilation = CreateCompilation(source); 6206var compilation = CreateCompilation(source); 6235var compilation = CreateCompilation(source); 6266var compilation = CreateCompilation(source); 6286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6295compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6322var compilation = CreateCompilation(source); 6346var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6355compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6380var compilation = CreateCompilation(new[] { source1, source2 }); 6408var compilation = CreateCompilation(new[] { source1, source2 }); 6440var compilation = CreateCompilation(source); 6469var compilation = CreateCompilation(source); 6503var compilation = CreateCompilation(source); 6526CreateCompilation(source).VerifyDiagnostics( 6542var compilation = CreateCompilation(source); 6575var compilation = CreateCompilation(source); 6612var compilation = CreateCompilation(source); 6640var compilation = CreateCompilation(source); 6697var compilation = CreateCompilation(source); 6718var compilation = CreateCompilation(source); 6758var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 6807var compilation = CreateCompilation(source); 6850var compilation = CreateCompilation(source); 6894var compilation = CreateCompilation(source); 6938var compilation = CreateCompilation(source); 6988var compilation = CreateCompilation(source); 7031var compilation = CreateCompilation(source); 7078var compilation = CreateCompilation(source); 7125var compilation = CreateCompilation(source); 7181var compilation = CreateCompilation(source); 7232var compilation = CreateCompilation(source); 7272var compilation = CreateCompilation(source); 7312var compilation = CreateCompilation(source); 7359var compilation = CreateCompilation(source); 7379CreateCompilation(source).VerifyDiagnostics( 7404CreateCompilation(text).VerifyDiagnostics( 7425CreateCompilation(source).VerifyDiagnostics( 7447CreateCompilation(source).VerifyDiagnostics( 7474CreateCompilation(source).VerifyDiagnostics( 7492var compilation = CreateCompilation(source, null, options: opt); 7524var compilation = CreateCompilation(source); 7569var compilation = CreateCompilation(source); 7610var compilation = CreateCompilation(source, null, options: opt); 7653var compilation = CreateCompilation(source, null, options: opt); 7711var compilation = CreateCompilation(source, null, options: opt); 7763CreateCompilation(source).VerifyDiagnostics(); 7809var compilation = CreateCompilation(source, null, options: opt); 7844CreateCompilation(source).VerifyDiagnostics(); 7864var compilation = CreateCompilation(new string[] { source, source2 }); 7878var compilation = CreateCompilation(source); 7917var compilation = CreateCompilation(source, null, options: opt, parseOptions: TestOptions.Regular10); 7955var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 8036var comp = CreateCompilation(source); 8077var comp = CreateCompilation(source); 8104var comp = CreateCompilation(source); 8124CreateCompilation(source).VerifyDiagnostics( 8149CreateCompilation(source).VerifyDiagnostics( 8193var comp = CreateCompilation(source); 8255CreateCompilation(source).VerifyDiagnostics( 8284CreateCompilation(source).VerifyDiagnostics( 8383var compilation = CreateCompilation(source); 8402CreateCompilation(source).VerifyDiagnostics( 8554var comp = CreateCompilation(source1, assemblyName: "A"); 8576comp = CreateCompilation(source2, references: new[] { ref1 }, assemblyName: "B"); 8593var comp = CreateCompilation(source1); 8606comp = CreateCompilation(source2, references: new[] { ref1 }); 8637var compilation = CreateCompilation(source); 8677var compilation = CreateCompilation(source2, new[] { reference1 }); 8719var compilation = CreateCompilation(source2, new[] { reference1 }); 8762var compilation = CreateCompilation(source2, new[] { reference1 }); 8809var compilation = CreateCompilation(source2, new[] { reference1 }); 8852var compilation = CreateCompilation("", new[] { reference1 }); 8892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8955comp = CreateCompilation(source); 9009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9030comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9126var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9141comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9172var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9223CreateCompilation(source).VerifyDiagnostics( 9249CreateCompilation(source).VerifyDiagnostics( 9397var comp = CreateCompilation(source); 9476var comp = CreateCompilation(source); 9564var comp = CreateCompilation(source); 9641var comp = CreateCompilation(source); 9713var comp = CreateCompilation(source); 9794var comp = CreateCompilation(source); 9864var comp = CreateCompilation(source); 9908var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9918var comp2 = CreateCompilation("", new[] { comp.EmitToImageReference() }); 9937var compilation1 = CreateCompilation(source1, assemblyName: "Bug1020038"); 9990var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 10123var comp = CreateCompilation(source); 10149var comp = CreateCompilation(source); 10173var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10211var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10236var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10238var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10242comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10259var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10286var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10288var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10292comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10312var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10314var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10318comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10338var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10344comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10360var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10385var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10392comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10421var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10428comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10459var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10465var comp1 = CreateCompilation(source1); 10466var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10469comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 10530var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10536var comp1 = CreateCompilation(source1); 10537var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10540comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 10556var comp = CreateCompilation(source); 10574var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10604comp = CreateCompilation(source); 10658var comp = CreateCompilation(source); 10787var comp = CreateCompilation(source); 10834var comp = CreateCompilation(source); 10872var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10895var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10901comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 10908comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 10922var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10939var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10988var comp = CreateCompilation(source, targetFramework: TargetFramework.Net60); 11039var comp = CreateCompilation(source); 11056var comp = CreateCompilation(csSource); 11098var comp = CreateCompilation(source); 11170var comp = CreateCompilation(source); 11264var comp = CreateCompilation(source); 11418var comp = CreateCompilation(source); 11462var comp = CreateCompilation(source); 11498var comp = CreateCompilation(source); 11526var comp = CreateCompilation(source); 11551var comp = CreateCompilation(source); 11576var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 11631var comp = CreateCompilation(source);
Attributes\AttributeTests_Assembly.cs (103)
31var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 41var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 52var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 70var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(now)); 84var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(new DateTime(2300, 1, 1))); 99var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 106other = CreateCompilation(s, options: TestOptions.ReleaseDll); 118var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 131var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 144var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 154var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 164var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 174var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 193var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 206var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 227var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 236other = CreateCompilation(s, options: TestOptions.ReleaseDll); 245other = CreateCompilation(s, options: TestOptions.ReleaseDll); 254var other = CreateCompilation(s); 267var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 277var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 287var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 297var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 306var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 310comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 314comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 327comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 335var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 347var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 362var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 518var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 524other = CreateCompilation(s, options: TestOptions.ReleaseDll); 534var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 544var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 554var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 560other = CreateCompilation(s, options: TestOptions.ReleaseDll); 570var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 586compilation = CreateCompilation( 615compilation = CreateCompilation( 646compilation = CreateCompilation( 676compilation = CreateCompilation( 802var hash_module_Comp = CreateCompilation( 809compilation = CreateCompilation( 827compilation = CreateCompilation( 840compilation = CreateCompilation( 854compilation = CreateCompilation( 869var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 876comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 880comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 892var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 905var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 920var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 1457var compilation = CreateCompilation(source); 1835var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1841var assembly = CreateCompilation(assemblySrc, new[] { module.EmitToImageReference() }, assemblyName: "C"); 1876CreateCompilation(source).VerifyDiagnostics(); 1897CreateCompilation(source).VerifyDiagnostics( 1920CreateCompilation(source).VerifyDiagnostics( 1932var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1946var assembly = CreateCompilation(assemblySrc, new[] { module.EmitToImageReference() }, assemblyName: "C"); 1958var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 1965var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 1971var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 1986var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 1996var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2011var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2018var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2024var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 2039var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2049var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2064var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2071var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2077var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 2090var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2100var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2116var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2117var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2119var appCompilation = CreateCompilation(source, 2148var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2149var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2151var appCompilation = CreateCompilation(source, 2178var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2179var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2181var appCompilation = CreateCompilation(source, 2210var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2211var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2213var appCompilation = CreateCompilation(source, 2237var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2238var appCompilation = CreateCompilation(source, 2272var compilation = CreateCompilation(s, options: TestOptions.ReleaseDll); 2286var attributeDefinition1 = CreateCompilation(attribute1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2291var moduleWithAttribute = CreateCompilation(module, references: new[] { attributeDefinition1 }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2293var comp = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition1 }, options: TestOptions.ReleaseDll); 2305var comp2 = CreateCompilation("", references: new[] { moduleWithAttribute }, options: TestOptions.ReleaseDll); 2318var attributeDefinition2 = CreateCompilation(attribute2, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2320var comp3 = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition2 }, options: TestOptions.ReleaseDll); 2337var c1Definition = CreateCompilation(c1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2347var module1WithAttribute = CreateCompilation(module1, references: new[] { c1Definition }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2349var comp = CreateCompilation("", references: new[] { module1WithAttribute, c1Definition }, options: TestOptions.ReleaseDll); 2361var comp2 = CreateCompilation("", references: new[] { module1WithAttribute }, options: TestOptions.ReleaseDll); 2376var module2WithAttribute = CreateCompilation(module2, references: new[] { c1Definition }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2377var comp3 = CreateCompilation("", references: new[] { module2WithAttribute, c1Definition }, options: TestOptions.ReleaseDll);
Attributes\AttributeTests_CallerInfoAttributes.cs (59)
259var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 420var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 459var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 498var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 526var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 565var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 626var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 659var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 679var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular9); 690var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 716var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 742var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 767var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 796var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 825var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 854var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 889var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 924var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 953var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 982var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1014var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1063var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1098var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1137var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1177var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1215var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1250var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1290var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1321var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1346var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe); 1444var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1478var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1512var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1545var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1565var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 1582var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1613var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1648var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1688var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1730var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1776var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1815var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1849var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1941var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1973var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2005var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2038var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2077var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2121var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2153var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2181var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2209var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2237var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2331var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2367var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2405var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2442var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2493var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2891var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_Conditional.cs (7)
252var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 268var comp1 = CreateCompilation(source1); 463var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 479var comp1 = CreateCompilation(source1, assemblyName: Guid.NewGuid().ToString()); 558var compilation = CreateCompilation(@" 672CreateCompilation(source).VerifyDiagnostics( 704var comp = CreateCompilation(source);
Attributes\AttributeTests_Embedded.cs (15)
45CreateCompilation(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics(); 51var reference = CreateCompilation(@" 79CreateCompilation(code, references: new[] { reference.ToMetadataReference() }, assemblyName: "Source").VerifyDiagnostics( 91var module = CreateCompilation(@" 120CreateCompilation(code, references: new[] { reference }, assemblyName: "Source").VerifyDiagnostics( 132var reference = CreateCompilation(@" 159CreateCompilation(code, references: new[] { reference.ToMetadataReference() }).VerifyDiagnostics( 212CreateCompilation(code, assemblyName: "testModule").VerifyEmitDiagnostics( 221var module = CreateCompilation(options: TestOptions.ReleaseModule, assemblyName: "testModule", source: @" 238CreateCompilation(code, references: new[] { moduleRef }).VerifyEmitDiagnostics( 246var reference = CreateCompilation(@" 262CreateCompilation(code, references: new[] { reference }).VerifyEmitDiagnostics( 270var reference = CreateCompilation(assemblyName: "testRef", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @" 492var compilation1 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @" 505var compilation2 = CreateCompilation("", references: new[] { compilation1.EmitToImageReference() });
Attributes\AttributeTests_Experimental.cs (3)
66var comp1 = CreateCompilation(new[] { Parse(ExperimentalAttributeSource), Parse(source1) }); 89var comp2A = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); 164var comp1 = CreateCompilation(source1, new[] { ref0 });
Attributes\AttributeTests_IsByRefLike.cs (28)
137var referenceA = CreateCompilation(new[] { codeA, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }).VerifyDiagnostics().ToMetadataReference(); 164var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 173CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 191var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 202CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 217var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 231CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 246var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 260CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 275var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 291CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 312var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 324CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 343CreateCompilation(code).VerifyDiagnostics( 358var code1 = CreateCompilation(@" 364var code2 = CreateCompilation(@" 377var code3 = CreateCompilation(@" 398CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 415CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 428var reference = CreateCompilation(@" 516CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 539CreateCompilation(text).VerifyEmitDiagnostics( 562CreateCompilation(text).VerifyEmitDiagnostics( 643CreateCompilation(text).VerifyEmitDiagnostics( 848CreateCompilation(text).VerifyEmitDiagnostics( 895var libComp = CreateCompilation(libSrc); 914CreateCompilation(text, new[] { libComp.EmitToImageReference() }).VerifyEmitDiagnostics( 929CreateCompilation(text, new[] { libComp.ToMetadataReference() }).VerifyEmitDiagnostics(
Attributes\AttributeTests_IsUnmanaged.cs (25)
128var reference = CreateCompilation(@" 155var reference = CreateCompilation(@" 181var reference = CreateCompilation(@" 217var reference = CreateCompilation(@" 245var reference = CreateCompilation(@" 272var reference = CreateCompilation(@" 298var reference = CreateCompilation(@" 335var reference = CreateCompilation(@" 463CreateCompilation(code).VerifyDiagnostics( 489CreateCompilation(code).VerifyDiagnostics( 513CreateCompilation(code).VerifyDiagnostics( 537CreateCompilation(code).VerifyDiagnostics( 565CreateCompilation(code).VerifyDiagnostics( 595CreateCompilation(code).VerifyDiagnostics( 614CreateCompilation(code).VerifyDiagnostics( 628var code1 = CreateCompilation(@" 634var code2 = CreateCompilation(@" 643var code3 = CreateCompilation(@" 665CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 680CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 702CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics( 713CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics( 771CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 794CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 814CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
Attributes\AttributeTests_LifetimeAnnotation.cs (17)
39var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 54var comp = CreateCompilation(ScopedRefAttributeDefinition); 63comp = CreateCompilation(source, references: new[] { ref0 }); 91var comp = CreateCompilation(new[] { source1, source2 }); 112var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 151var comp = CreateCompilation(source); 171var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 254var comp = CreateCompilation(source1, references: new[] { ref0 }); 323var comp = CreateCompilation(source1, references: new[] { ref0 }); 339var comp = CreateCompilation(source); 371var comp = CreateCompilation(source); 392var comp = CreateCompilation(source); 415var comp = CreateCompilation(source); 438var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 511var comp = CreateCompilation(source); 541var comp = CreateCompilation(source);
Attributes\AttributeTests_Locations.cs (27)
32CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics(); 51CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 72CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 102CreateCompilation(source).VerifyDiagnostics( 150CreateCompilation(source).VerifyDiagnostics( 198CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 246CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 294CreateCompilation(source).VerifyDiagnostics( 342CreateCompilation(source).VerifyDiagnostics( 388CreateCompilation(source).VerifyDiagnostics( 435CreateCompilation(source).VerifyDiagnostics( 482CreateCompilation(source).VerifyDiagnostics( 533CreateCompilation(source).VerifyDiagnostics( 634CreateCompilation(source).VerifyDiagnostics( 695CreateCompilation(source).VerifyDiagnostics( 748CreateCompilation(source).VerifyDiagnostics( 795CreateCompilation(source).VerifyDiagnostics( 842CreateCompilation(source).VerifyDiagnostics( 896CreateCompilation(source).VerifyDiagnostics( 946CreateCompilation(source).VerifyDiagnostics( 993CreateCompilation(source).VerifyDiagnostics( 1044CreateCompilation(source).VerifyDiagnostics( 1092CreateCompilation(source).VerifyDiagnostics( 1146CreateCompilation(source).VerifyDiagnostics( 1190CreateCompilation(source).VerifyDiagnostics( 1246CreateCompilation(@"class A { [@return:X] void B() { } }").VerifyDiagnostics( 1271CreateCompilation(source).VerifyDiagnostics(
Attributes\AttributeTests_MarshalAs.cs (13)
286CreateCompilation(source).VerifyDiagnostics( 412CreateCompilation(source).VerifyDiagnostics( 525CreateCompilation(source).VerifyDiagnostics( 662CreateCompilation(source).VerifyDiagnostics( 702CreateCompilation( 707CreateCompilation( 861CreateCompilation(source).VerifyDiagnostics( 943CreateCompilation(source).VerifyDiagnostics( 1071CreateCompilation(source).VerifyDiagnostics( 1401CreateCompilation(source).VerifyDiagnostics( 1449CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1529var comp1 = CreateCompilation(text1, assemblyName: "OptionalMarshalAsLibrary"); 1530var comp2 = CreateCompilation(text2,
Attributes\AttributeTests_NativeInteger.cs (53)
29var comp = CreateCompilation(source); 44var comp = CreateCompilation(new[] { NativeIntegerAttributeDefinition, source }); 61var comp = CreateCompilation(NativeIntegerAttributeDefinition); 71comp = CreateCompilation(source, references: new[] { ref0 }, parseOptions: TestOptions.Regular9); 102var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 128var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 165var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular8); 168comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular9); 204var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 256var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 266comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 342var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 346comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 419var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 429comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 502var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 506comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 590var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 612comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 706var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 722comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 770var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 834var comp = CreateCompilation(source1, assemblyName: "95d36b13-f2e1-495d-9ab6-62e8cc63ac22"); 844comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 857comp = CreateCompilation(source3, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 876var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 927var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 966var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 986var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1002var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1174var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1198var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1230var comp = CreateCompilation(new[] { sourceA, sourceB }); 1262var comp = CreateCompilation(new[] { sourceA, sourceB }); 1287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(source); 1333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1357var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1375var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 1397comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1413var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular9); 1421comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 1442var comp = CreateCompilation( 1460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_Nullable.cs (138)
58var lib1_comp = CreateCompilation(lib1_source); 66var lib2_comp = CreateCompilation(lib2_source, references: new[] { getReference(lib1_comp) }); 86var client_comp = CreateCompilation(client_source, references: new[] { getReference(lib1_comp), getReference(lib2_comp) }); 121var lib1_comp = CreateCompilation(lib1_source); 130var lib2_comp = CreateCompilation(lib2_source, references: new[] { getReference(lib1_comp) }); 165var lib3_comp = CreateCompilation(lib3_source, references: new[] { getReference(lib1_comp), getReference(lib2_comp) }); 355var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 371var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 379var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 398var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 426var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 451var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 490var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 494comp = CreateCompilation(new[] { sourceAttribute, source }); 527var comp = CreateCompilation(sourceA, assemblyName: "A", options: options); 537comp = CreateCompilation(sourceB, references: new[] { refA }, assemblyName: "B", options: options); 562var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, assemblyName: "A", options: options); 572comp = CreateCompilation(sourceB, references: new[] { refA }, assemblyName: "B", options: options); 747var comp = CreateCompilation(source, parseOptions: parseOptions); 763comp = CreateCompilation(source, parseOptions: parseOptions); 771comp = CreateCompilation(source, parseOptions: parseOptions); 779comp = CreateCompilation(source, parseOptions: parseOptions); 797var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 811comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 841var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 864var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 886var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 908var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations), parseOptions: TestOptions.Regular8); 931var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 954var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 970var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 993var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 1004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 1020var comp = CreateCompilation(source, options: WithNullableEnable()); 1039var comp = CreateCompilation(source, options: WithNullableEnable()); 1058var comp = CreateCompilation(source, options: WithNullableEnable()); 1082var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1103var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1130var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1158var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1181var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1208var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1242var comp = CreateCompilation(source); 1281var comp = CreateCompilation(source); 1316var comp = CreateCompilation(source); 1342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1372var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1381comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1434var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1455var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1480var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1489comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1513var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1534var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1546comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1583var comp = CreateCompilation(source); 1639var comp = CreateCompilation(source); 1710var comp = CreateCompilation(source); 1774var comp = CreateCompilation(source); 1831var comp = CreateCompilation(source); 1874var comp = CreateCompilation(source); 1902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1923var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1961var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1984var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2013var comp = CreateCompilation(source); 2040var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2084var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2111var comp = CreateCompilation(source); 2145var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2239var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { ref0 }); 2322var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2349var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2383var comp = CreateCompilation(new[] { sourceA, sourceB }); 2416var comp = CreateCompilation(new[] { sourceA, sourceB }); 2450var comp = CreateCompilation(new[] { sourceA, sourceB }); 2479var comp = CreateCompilation(new[] { sourceA, sourceB }); 2492var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2627var comp = CreateCompilation(source); 3472AssertNullableAttributes(CreateCompilation(source, options: options, parseOptions: parseOptions), expectedAll); 3473AssertNullableAttributes(CreateCompilation(source, options: options, parseOptions: parseOptions.WithFeature("nullablePublicOnly")), expectedPublicOnly); 3474AssertNullableAttributes(CreateCompilation(new[] { source, sourceIVTs }, options: options, parseOptions: parseOptions), expectedAll); 3475AssertNullableAttributes(CreateCompilation(new[] { source, sourceIVTs }, options: options, parseOptions: parseOptions.WithFeature("nullablePublicOnly")), expectedPublicAndInternal); 3518var comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions); 3590comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions.WithFeature("nullablePublicOnly")); 3634var comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions); 3649comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions.WithFeature("nullablePublicOnly")); 3756var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3826var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3867var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3967var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4036var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4077var comp = CreateCompilation(source); 4115var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4144var comp = CreateCompilation(source0); 4161comp = CreateCompilation(source1, references: new[] { ref0 }); 4173comp = CreateCompilation(source1); 4186comp = CreateCompilation(source2, references: new[] { ref1 }); 4238var comp = CreateCompilation(source1); 4260comp = CreateCompilation(source2, references: new[] { ref0 }); 4278var comp = CreateCompilation(source1); 4306comp = CreateCompilation(source2, references: new[] { ref0 }); 4327var comp = CreateCompilation(source1); 4376comp = CreateCompilation(source2, references: new[] { ref0 }); 4429var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4449var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4470var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4488var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4503var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4518var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4536var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4560var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4585var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4606var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4621var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 4669var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4706var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4725var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4744var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4794var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4853var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 4924var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4970var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5028var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5087var comp = CreateCompilation(source); 5118var comp = CreateCompilation(source); 5153var comp = CreateCompilation(source); 5187var comp = CreateCompilation(source); 5283var comp = CreateCompilation(source);
Attributes\AttributeTests_NullableContext.cs (16)
24var comp = CreateCompilation(source); 39var comp = CreateCompilation(new[] { NullableContextAttributeDefinition, source }); 51var comp = CreateCompilation(NullableContextAttributeDefinition); 61comp = CreateCompilation(source, references: new[] { ref0 }); 87var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular7); 91comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableDisable()); 95comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 128var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 132comp = CreateCompilation(new[] { sourceAttribute, source }); 167var comp = CreateCompilation(sourceAttribute); 184comp = CreateCompilation(source, references: new[] { ref0 }); 204var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 262var comp0 = CreateCompilation(source0); 288var comp2 = CreateCompilation(source2, references: new[] { ref1 }); 337var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
Attributes\AttributeTests_NullablePublicOnly.cs (42)
35var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 38comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 52var comp = CreateCompilation(NullablePublicOnlyAttributeDefinition, parseOptions: TestOptions.Regular7); 59comp = CreateCompilation(source, references: new[] { ref1 }, options: options, parseOptions: parseOptions); 62comp = CreateCompilation(source, references: new[] { ref1 }, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 86var comp = CreateCompilation(new[] { source1, source2 }, options: options, parseOptions: parseOptions); 89comp = CreateCompilation(new[] { source1, source2 }, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 102var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 105comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 122var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 125comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 142var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 145comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 162var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 165comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 182var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 185comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 202var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 205comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 220var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 223comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 237var comp = CreateCompilation(source0); 250comp = CreateCompilation( 274var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 277comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 294var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 297comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 313var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 316comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 333var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 336comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 356var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 359comp = CreateCompilation(source, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 380var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 383comp = CreateCompilation(sources, options: options, parseOptions: parseOptions.WithNullablePublicOnly()); 406var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 410comp = CreateCompilation(new[] { sourceAttribute, source }); 440var comp = CreateCompilation(new[] { sourceAttribute, source }); 463var comp = CreateCompilation(sourceAttribute); 482comp = CreateCompilation(source, references: new[] { ref0 }); 501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 522var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly().WithNoRefSafetyRulesAttribute());
Attributes\AttributeTests_ReadOnlyStruct.cs (24)
127var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 154var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 163CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 181var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 192CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 207var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 221CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 236var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 250CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 265var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 281CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 302var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 314CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 333CreateCompilation(code).VerifyDiagnostics( 348var code1 = CreateCompilation(@" 354var code2 = CreateCompilation(@" 367var code3 = CreateCompilation(@" 388CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 405CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 418var reference = CreateCompilation(@" 508CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 531CreateCompilation(text).VerifyEmitDiagnostics( 554CreateCompilation(text).VerifyEmitDiagnostics( 635CreateCompilation(text).VerifyEmitDiagnostics(
Attributes\AttributeTests_RefReadOnly.cs (61)
108var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 191var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 264var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 356var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 462var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 552var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 668var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 799var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 841var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 850CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 868var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 879CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 894var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 908CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 923var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 937CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 952var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 968CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 989var referenceA = CreateCompilation(codeA).VerifyDiagnostics().ToMetadataReference(); 1001CreateCompilation(codeB, references: new[] { referenceA }).VerifyDiagnostics( 1020CreateCompilation(code).VerifyDiagnostics( 1039CreateCompilation(code).VerifyDiagnostics( 1053var code1 = CreateCompilation(@" 1059var code2 = CreateCompilation(@" 1072var code3 = CreateCompilation(@" 1095CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1111CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1135CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1144var reference = CreateCompilation(@" 1233CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1255CreateCompilation(text).VerifyEmitDiagnostics( 1277CreateCompilation(text).VerifyEmitDiagnostics( 1357var reference = CreateCompilation(@" 1363var compilation = CreateCompilation(@" 1394var reference = CreateCompilation(@" 1400var compilation = CreateCompilation(@" 1436var compilation = CreateCompilation(@" 1463var compilation = CreateCompilation(@" 1490var reference = CreateCompilation(@" 1497var compilation = CreateCompilation(@" 1517var reference = CreateCompilation(@" 1532var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule, references: new[] { reference }); 1556var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule); 1742var reference = CreateCompilation(@" 1833var reference = CreateCompilation(@" 1935CreateCompilation(code).VerifyEmitDiagnostics( 1991var reference = CreateCompilation(@" 2080var reference = CreateCompilation(@" 2128CreateCompilation(code).VerifyEmitDiagnostics( 2153CreateCompilation(text).VerifyEmitDiagnostics( 2175CreateCompilation(text).VerifyEmitDiagnostics( 2210CreateCompilation(text).VerifyEmitDiagnostics( 2222var reference = CreateCompilation(@" 2245CreateCompilation(text, references: new[] { reference }).VerifyEmitDiagnostics( 2271CreateCompilation(text).VerifyEmitDiagnostics( 2294CreateCompilation(text).VerifyEmitDiagnostics( 2319CreateCompilation(text).VerifyEmitDiagnostics( 2438var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2464var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2498var comp = CreateCompilation(new[] { sourceA, sourceB }); 2532var comp = CreateCompilation(new[] { sourceA, sourceB });
Attributes\AttributeTests_RefSafetyRules.cs (17)
28var comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }, parseOptions: TestOptions.Regular10); 31comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }); 39var comp = CreateCompilation(RefSafetyRulesAttributeDefinition, parseOptions: TestOptions.Regular10); 49comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular10); 52comp = CreateCompilation(source, references: new[] { ref1 }); 70var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 73comp = CreateCompilation(new[] { source1, source2 }); 85var comp = CreateCompilation(RefSafetyRulesAttributeDefinition); 95comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 128comp = CreateCompilation(source); 152var refA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10).EmitToImageReference(); 154var comp = CreateCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10); 157comp = CreateCompilation(source, references: new[] { refA }); 171var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 181comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 203var refA = CreateCompilation(sourceA).EmitToImageReference();
Attributes\AttributeTests_StructLayout.cs (6)
239CreateCompilation(source).VerifyDiagnostics( 264CreateCompilation(source).VerifyDiagnostics( 291CreateCompilation(source).VerifyDiagnostics( 499CreateCompilation(source).VerifyDiagnostics( 584CreateCompilation(source).VerifyDiagnostics( 605CreateCompilation(source).VerifyDiagnostics();
Attributes\AttributeTests_Synthesized.cs (15)
123var reference = CreateCompilation(source).EmitToImageReference(); 145var reference = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 262CompileAndVerify(CreateCompilation(source, options: options), symbolValidator: m => 290CompileAndVerify(CreateCompilation(source, options: options), symbolValidator: m => 371var comp = CreateCompilation(source, options: TestOptions.DebugDll); 428CompileAndVerify(CreateCompilation(source, options: options), symbolValidator: module => 647var comp = CreateCompilation(source); 935var comp = CreateCompilation(source); 1306var compilation = CreateCompilation(code, options: options); 1355var compilation = CreateCompilation(code, options: options); 1402var compilation = CreateCompilation(code, options: options); 1446var compilation = CreateCompilation(code, options: options); 1489var compilation = CreateCompilation(source, options: options); 1515var referenceComp = CreateCompilation(@" 1556var referenceComp = CreateCompilation(@"
Attributes\AttributeTests_WellKnownAttributes.cs (168)
565var libComp = CreateCompilation(source1); 577var comp3 = CreateCompilation(source2, new[] { libAssemblyRef }); 611var comp = CreateCompilation(source); 643var comp = CreateCompilation(source); 838CreateCompilation(source).VerifyDiagnostics( 883var compilation = CreateCompilation(@" 913var compilation = CreateCompilation(@" 942var c1 = CreateCompilation(@" 986var compilation = CreateCompilation(@" 1030var compilation = CreateCompilation(@" 1279var compilation = CreateCompilation(@" 1296var compilation = CreateCompilation(@" 1320var compilation = CreateCompilation(@" 1794CreateCompilation(source).VerifyDiagnostics( 1864var comp = CreateCompilation(source); 1885CreateCompilation(source).VerifyEmitDiagnostics( 1915CreateCompilation(source).VerifyEmitDiagnostics( 2194CreateCompilation(@" 2205CreateCompilation(@" 2219CreateCompilation(@" 2230CreateCompilation(@" 2244CreateCompilation(@" 2255CreateCompilation(@" 2269CreateCompilation(@" 2280CreateCompilation(@" 2294CreateCompilation(@" 2443var source = CreateCompilation(@" 2524CreateCompilation(source).VerifyDiagnostics( 2582CreateCompilation(source).VerifyDiagnostics( 3024CreateCompilation(source).VerifyDiagnostics( 3110var compilation = CreateCompilation(@" 3390CreateCompilation(source).VerifyDiagnostics( 3499CreateCompilation(source).VerifyDiagnostics( 3613CreateCompilation(source).VerifyDiagnostics( 3988CreateCompilation(source).VerifyDiagnostics( 4026CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( 4032CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( 4066CreateCompilation(source).VerifyDiagnostics( 4105CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( 4111CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( 4143CreateCompilation(source).VerifyDiagnostics( 4183CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( 4196CreateCompilation(source2, references: new[] { assemblyRef }).VerifyDiagnostics( 4230CreateCompilation(source).VerifyDiagnostics( 4268CreateCompilation(source2, references: new[] { compDll.ToMetadataReference() }).VerifyDiagnostics( 4274CreateCompilation(source2, references: new[] { compDll.EmitToImageReference() }).VerifyDiagnostics( 4308CreateCompilation(source).VerifyDiagnostics( 4526CreateCompilation(source).VerifyDiagnostics( 4552CreateCompilation(source).VerifyDiagnostics( 4585CreateCompilation(source).VerifyDiagnostics( 4622CreateCompilation(source).VerifyDiagnostics( 4646CreateCompilation(source).VerifyDiagnostics( 4887var lib_comp = CreateCompilation(lib_cs); 4890var client1 = CreateCompilation("", references: new[] { lib_comp.ToMetadataReference() }); 4893var client2 = CreateCompilation("", references: new[] { lib_comp.EmitToImageReference() }); 5016var script = CreateCompilation("", parseOptions: TestOptions.Script); 5058var compilation = CreateCompilation(source); 5143var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 5220CreateCompilation(source).VerifyDiagnostics( 5272var comp1 = CreateCompilation(text1, options: opt); 5565CreateCompilation(source).VerifyDiagnostics(); 5576CreateCompilation(source).VerifyDiagnostics( 5599CreateCompilation(source).VerifyDiagnostics( 5869CreateCompilation(source).VerifyDiagnostics( 6166CreateCompilation(source).VerifyDiagnostics( 6230var peReference = MetadataReference.CreateFromStream(CreateCompilation(peSource).EmitToStream()); 6255CreateCompilation(source, new[] { peReference }).VerifyDiagnostics( 6402CreateCompilation(source).VerifyDiagnostics( 6465CreateCompilation(source).VerifyDiagnostics( 6554CreateCompilation(source).VerifyDiagnostics( 6650CreateCompilation(source, null, TestOptions.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics( 6708CreateCompilation(source).VerifyDiagnostics( 6734CreateCompilation(source).VerifyDiagnostics(); 6748var other = CreateCompilation(s); 6808CreateCompilation(source).VerifyDiagnostics( 6876CreateCompilation(source).VerifyDiagnostics( 6991CreateCompilation(source).VerifyDiagnostics( 7036CreateCompilation(source).VerifyDiagnostics( 7105CreateCompilation(source).VerifyDiagnostics( 7194CreateCompilation(source).VerifyDiagnostics( 7259CreateCompilation(source).VerifyDiagnostics( 7294CreateCompilation(source).VerifyDiagnostics( 7333var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); 7384var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); 7419CreateCompilation(source).VerifyDiagnostics( 7496CreateCompilation(source).VerifyDiagnostics( 7595CreateCompilation(source).VerifyDiagnostics( 7641CreateCompilation(source).VerifyDiagnostics( 7686CreateCompilation(source).VerifyDiagnostics( 7741CreateCompilation(source).VerifyDiagnostics( 7831CreateCompilation(source).VerifyDiagnostics( 7907CreateCompilation(source).VerifyDiagnostics( 7961CreateCompilation(source).VerifyDiagnostics( 8017CreateCompilation(source).VerifyDiagnostics( 8074CreateCompilation(source).VerifyDiagnostics( 8125CreateCompilation(source).VerifyDiagnostics( 8167CreateCompilation(source).VerifyDiagnostics( 8209CreateCompilation(source).VerifyDiagnostics( 8253CreateCompilation(source).VerifyDiagnostics( 8294var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8327var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8358var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8389var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8429var comp = CreateCompilation(source); 8460var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8497var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8547var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8598var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8606var comp2 = CreateCompilation(source2, references: new[] { reference }); 8653var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8661var comp2 = CreateCompilation(source2, references: new[] { reference }); 8697var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8705var comp2 = CreateCompilation(source2, references: new[] { reference }); 8740var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8748var comp2 = CreateCompilation(source2, references: new[] { reference }); 8783var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8848var comp2 = CreateCompilation(source2, references: new[] { reference }, options: options); 8892var comp1 = CreateCompilation(source1); 8900var comp2 = CreateCompilation(source2, references: new[] { reference }); 8940var comp1 = CreateCompilation(source1); 8948var comp2 = CreateCompilation(source2, references: new[] { reference }); 9019var comp1 = CreateCompilation(source1); 9027var comp2 = CreateCompilation(source2, references: new[] { reference }); 9073var comp1 = CreateCompilation(source1); 9082var comp2 = CreateCompilation(source2, references: new[] { reference }); 9122var comp1 = CreateCompilation(source1); 9131var comp2 = CreateCompilation(source2, references: new[] { reference }); 9174var comp1 = CreateCompilation(source1); 9182var comp2 = CreateCompilation(source2, references: new[] { reference }); 9323var comp = CreateCompilation(csSource, references: new[] { ilComp }); 9461var comp = CreateCompilation(csSource, references: new[] { ilComp }); 9503var comp1 = CreateCompilation(source1); 9510var comp2 = CreateCompilation(source2, references: new[] { reference }); 9546var comp = CreateCompilation(source); 9595var comp = CreateCompilation(source); 9647var comp1 = CreateCompilation(source1); 9650var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); 9713CreateCompilation(source).VerifyDiagnostics( 9736var comp = CreateCompilation(source); 10422var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: options, parseOptions: parseOptions); 10457var comp = CreateCompilation(source); 10695var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 12744var metadata_comp = CreateCompilation(metadata_source, options: TestOptions.DebugModule.WithAllowUnsafe(true)); 12865var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 12919var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll); 13113var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll); 13361CreateCompilation(source).VerifyDiagnostics( 13426CreateCompilation(source).VerifyDiagnostics( 13459CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( 13528CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics( 13553var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13598var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13619CreateCompilation(code).VerifyDiagnostics().VerifyEmitDiagnostics(); 13636CreateCompilation(code).VerifyDiagnostics( 13662CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( 13705CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics( 13762CreateCompilation(code, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 13809CreateCompilation(code, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 13859CreateCompilation(code, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 13884var comp = CreateCompilation(source); 13910var comp = CreateCompilation(source); 13930var comp = CreateCompilation(source); 13966var comp = CreateCompilation(source); 13996var comp = CreateCompilation(source); 14016var comp = CreateCompilation(source); 14041var comp = CreateCompilation(source); 14079var comp = CreateCompilation(source); 14122var comp = CreateCompilation(source);
Attributes\InternalsVisibleToAndStrongNameTests.cs (136)
94var c = CreateCompilation(source, 109var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 141var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 170var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 195var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 198compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.RegularWithLegacyStrongName); 210var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 215compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.RegularWithLegacyStrongName); 255var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 281var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 298var comp = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(keyFileName), parseOptions: parseOptions); 322var other = CreateCompilation(s, 340var comp = CreateCompilation(s, 368var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile("goo"), parseOptions: parseOptions); 383CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions); 396var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("goo"), parseOptions: parseOptions); 415var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 427var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("RoslynTestContainer"), parseOptions: parseOptions); 441var compilation = CreateCompilation(source, options: options, parseOptions: parseOptions); 453var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 464var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 477var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey), parseOptions: parseOptions); 501var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 517c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 524c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile).WithPublicSign(true), parseOptions: parseOptions); 541c = CreateCompilation(source1, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 557var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 577var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 608var comp = CreateCompilation("public class C{}", 630var comp = CreateCompilation("public class C {}", 652var comp = CreateCompilation(@" 676var comp = CreateCompilation("public class C {}", 693var comp = CreateCompilation("public class C {}", 717var comp = CreateCompilation("public class C {}", 738var comp = CreateCompilation("public class C {}", 755var comp = CreateCompilation("public class C {}", 772var c = CreateCompilation(source, options: TestOptions.SigningReleaseDll. 798var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, assemblyName: "Paul", parseOptions: parseOptions); 849var otherStream = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions).EmitToStream(); 851var c = CreateCompilation( 872var c2 = CreateCompilation( 898var other = CreateCompilation(s, 905var requestor = CreateCompilation( 931var other = CreateCompilation(s, assemblyName: "Paul", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 962var friendClass = CreateCompilation(@" 988var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1012var friendClass = CreateCompilation(@" 1032var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1059var requestor = CreateCompilation( 1090var other = CreateCompilation(s, 1120var other = CreateCompilation(s, 1149var other = CreateCompilation(s, 1180var other = CreateCompilation(s, 1187var requestor = CreateCompilation( 1215var other = CreateCompilation(s, 1222var requestor = CreateCompilation( 1255var other = CreateCompilation(s, 1262var requestor = CreateCompilation( 1286var other = CreateCompilation(s, 1293var requestor = CreateCompilation( 1322var other = CreateCompilation(s, 1329var requestor = CreateCompilation( 1364var giver = CreateCompilation(s, 1371var requestor = CreateCompilation( 1398var other = CreateCompilation( 1415var other = CreateCompilation( 1440var comp = CreateCompilation($@" 1471var comp2 = CreateCompilation(src, 1481var comp3 = CreateCompilation(src, 1496var other = CreateCompilation( 1552var assemblyComp = CreateCompilation(source, 1576var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1589var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1602var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule, parseOptions: parseOptions); 1608other = CreateCompilation(s, new[] { reference }, TestOptions.SigningReleaseDll); 1625var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1632other = CreateCompilation(s, new[] { reference }, TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1662var other = CreateCompilation(s, options: options); 1682var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1700var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"), parseOptions: parseOptions); 1719var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1739var compilation = CreateCompilation(s, options: options, parseOptions: parseOptions); 1756var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1779var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1796var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1810var other = CreateCompilation( 1824var assembly = CreateCompilation("", 1836var other = CreateCompilation(@" 1847var comp = CreateCompilation("", 1860var other = CreateCompilation( 1879var other = CreateCompilation( 1901var other = CreateCompilation( 1917var other = CreateCompilation( 1936var other = CreateCompilation( 1971var other = CreateCompilation( 2027var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "asm2", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 2367var comp1 = CreateCompilation(source1, 2397CSharpCompilation unsigned = CreateCompilation( 2403CSharpCompilation other = CreateCompilation( 2425CSharpCompilation unsigned = CreateCompilation( 2431CSharpCompilation other = CreateCompilation( 2702var ca = CreateCompilation( 2752var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2780var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2794var ca = CreateCompilation(source, parseOptions: parseOptions); 2815var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2826var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2838CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics( 2849CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics( 2897var libRef = CreateCompilation(lib_cs, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions).EmitToImageReference(); 2910var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", 2934var libRef = CreateCompilation(lib_cs, options: TestOptions.SigningReleaseDll).EmitToImageReference(); 2948var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", options: TestOptions.SigningReleaseDll); 2965var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_01_Lib"); 2976var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_01"); 2986comp = CreateCompilation(source1, new[] { lib.EmitToImageReference() }, assemblyName: "Issue57742_01"); 3003var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_02_Lib"); 3011var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_02"); 3021comp = CreateCompilation(source1, new[] { lib.EmitToImageReference() }, assemblyName: "Issue57742_02"); 3038var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_03_Lib"); 3053var comp = CreateCompilation(source1, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3071comp = CreateCompilation(source1, new[] { imageReference }, assemblyName: "Issue57742_03"); 3086var comp2 = CreateCompilation(source2, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3103comp2 = CreateCompilation(source2, new[] { imageReference }, assemblyName: "Issue57742_03"); 3112var comp3 = CreateCompilation(source3, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3126comp3 = CreateCompilation(source3, new[] { imageReference }, assemblyName: "Issue57742_03"); 3135var comp4 = CreateCompilation(source4, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3149comp4 = CreateCompilation(source4, new[] { imageReference }, assemblyName: "Issue57742_03"); 3166var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_04_Lib"); 3177var comp = CreateCompilation(source1, new[] { compilationReference }, assemblyName: "Issue57742_04"); 3195comp = CreateCompilation(source1, new[] { imageReference }, assemblyName: "Issue57742_04"); 3206var comp2 = CreateCompilation(source2, new[] { compilationReference }, assemblyName: "Issue57742_04"); 3223comp2 = CreateCompilation(source2, new[] { imageReference }, assemblyName: "Issue57742_04"); 3237var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_05_Lib"); 3243var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_05"); 3253comp = CreateCompilation(source1, new[] { lib.EmitToImageReference() }, assemblyName: "Issue57742_05");
Diagnostics\DiagnosticAnalyzerTests.cs (16)
1884var metadataReference = CreateCompilation(source).ToMetadataReference(); 1885var compilation = CreateCompilation(source, new[] { metadataReference }); 3140var compilation = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3387compilation = CreateCompilation(new[] { tree1, tree2 }, options: options); 3431compilation = CreateCompilation(new[] { tree1, tree2 }, options: options); 3483compilation = CreateCompilation(new[] { tree1, tree2 }, options: options); 3534compilation = CreateCompilation(new[] { tree1, tree2 }, options: options); 3555compilation = CreateCompilation(new[] { tree1, tree2 }, options: options); 3807var compilation = CreateCompilation(source) 3880var compilation = CreateCompilation(new[] { tree }); 4038Compilation compilation = CreateCompilation(new[] { tree }); 4099CreateCompilation(new[] { source, IsExternalInitTypeDefinition }) 4148var compilation = CreateCompilation(source); 4177var compilation = CreateCompilation(new[] { source1, source2, source3 }); 4217var compilation = CreateCompilation(@" 4394var compilation = CreateCompilation(new[] { tree });
Diagnostics\DiagnosticSuppressorTests.cs (19)
59var compilation = CreateCompilation(source); 99var compilation = CreateCompilation(SourceCode); 142var compilation = CreateCompilation(SourceCode); 170var compilation = CreateCompilation(source); 192var compilation = CreateCompilation(source); 213var compilation = CreateCompilation(source); 230var compilation = CreateCompilation(new[] { source1, source2 }); 253var compilation = CreateCompilation(source); 276var compilation = CreateCompilation(source); 301var compilation = CreateCompilation(source); 323var compilation = CreateCompilation(source); 387var compilation = CreateCompilation(source); 429var compilation = CreateCompilation(source); 474var compilation = CreateCompilation(source); 528var compilation = CreateCompilation(source); 581var compilation = CreateCompilation(source); 631var compilation = CreateCompilation(source); 671var compilation = CreateCompilation(source, options: options); 688var compilation = CreateCompilation(new[] { source });
Diagnostics\GetDiagnosticsTests.cs (15)
462var compilation = CreateCompilation(new[] { syntaxTree1, syntaxTree2, syntaxTree3 }); 485var compilation = CreateCompilation(new[] { tree1, tree2 }); 513var compilation = CreateCompilation(source); 547var compilation = CreateCompilation(source); 584var compilation = CreateCompilation(source); 659var compilation = CreateCompilation(new[] { source1, source2, source3 }); 712var compilation = CreateCompilation(sources); 739var compilation = CreateCompilation(source); 777var compilation = CreateCompilation(source); 834var compilation = CreateCompilation(source); 1056var compilation = CreateCompilation(source); 1120var compilation = CreateCompilation(new[] { source1, source2 }); 1430var compilation = CreateCompilation(source); 1513var compilation = CreateCompilation(new[] { source1, source2 }); 1693var compilation = CreateCompilation(source);
Diagnostics\MethodGroupConversion.cs (1)
49var compilation = CreateCompilation(source);
FieldKeywordTests.cs (87)
216var comp = CreateCompilation(source); 246var comp = CreateCompilation(source); 278var comp = CreateCompilation(source); 325var comp = CreateCompilation(source); 360var comp = CreateCompilation(source); 384var comp = CreateCompilation(source); 407var comp = CreateCompilation(source); 440var comp = CreateCompilation(source); 460var comp = CreateCompilation(source); 486var comp = CreateCompilation(source); 502var comp = CreateCompilation(source); 587var comp = CreateCompilation(source); 680var comp = CreateCompilation( 841var comp = CreateCompilation( 950var comp = CreateCompilation( 1063var comp = CreateCompilation( 1160var comp = CreateCompilation( 1267var comp = CreateCompilation(source); 1307var comp = CreateCompilation(source); 1399var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1997var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2085var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 2202var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2274var comp = CreateCompilation(source); 2296var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 3768var comp = CreateCompilation(source); 3801var comp = CreateCompilation(source); 3854var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 3926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 4559var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 4693var comp = CreateCompilation(source); 4994var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 5124var comp = CreateCompilation(source); 5198var comp = CreateCompilation(source); 5251var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5390var comp = CreateCompilation(source); 5467var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5493var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5513var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5574var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5599var comp = CreateCompilation(source); 5633var comp = CreateCompilation(source); 5662var comp = CreateCompilation(source); 5692var comp = CreateCompilation(source); 5731var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 5811var comp = CreateCompilation(source); 5832var comp = CreateCompilation(source); 5849var comp = CreateCompilation(source); 5869var comp = CreateCompilation(source); 5893var comp = CreateCompilation(source); 5914var comp = CreateCompilation(source); 5931var comp = CreateCompilation(source); 5951var comp = CreateCompilation(source); 5974var comp = CreateCompilation(source); 5994var comp = CreateCompilation(source); 6015var comp = CreateCompilation(source); 6036var comp = CreateCompilation(source); 7081var comp = CreateCompilation(source); 7105var comp = CreateCompilation(source); 7132var comp = CreateCompilation(source); 7166var comp = CreateCompilation(source); 7227var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }); 7269var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 7327var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 7395var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 7453var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 7514var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 7582var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 7922var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 7973var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8118var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 8169var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8217var comp = CreateCompilation(source); 8253var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 8295var comp = CreateCompilation(sourceA); 9036var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 9513var comp = CreateCompilation(source); 10197var comp = CreateCompilation( 10300var comp = CreateCompilation( 10399var comp = CreateCompilation( 10487var comp = CreateCompilation(source, parseOptions: parseOptions); 10521var comp = CreateCompilation(source, parseOptions: parseOptions); 10627var comp = CreateCompilation(source); 10673var comp = CreateCompilation(source); 10708var comp = CreateCompilation(source); 10737var comp = CreateCompilation(source);
FirstClassSpanTests.cs (48)
1265CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1277CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1278CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1296CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1308CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1309CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1327CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1342CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1343CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1364CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1376CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1377CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1398CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1410CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1411CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1428CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1440CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1441CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1458CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1470CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1471CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1490CreateCompilation(source).VerifyDiagnostics( 1513CreateCompilation(source).VerifyDiagnostics( 1542var comp = CreateCompilation(source); 1576var comp = CreateCompilation(source); 1601var comp1 = CreateCompilation(source1).VerifyDiagnostics().EmitToImageReference(); 1666CreateCompilation(source).VerifyDiagnostics( 1688CreateCompilation(source).VerifyDiagnostics( 1813CreateCompilation(source).VerifyDiagnostics( 1866CreateCompilation(source).VerifyDiagnostics( 1893var comp = CreateCompilation(source); 1993var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 2047var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2102var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2146var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2194var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2243var span1 = CreateCompilation(""" 2312var span1 = CreateCompilation(""" 2384var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2431var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2479var span1 = CreateCompilation(""" 2536var span1 = CreateCompilation(""" 2617var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2665var spanComp = CreateCompilation(getSpanSource("External"), assemblyName: "Span1") 2712var span1 = CreateCompilation(""" 2775var comp1Ref = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40) 3366CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5634CreateCompilation(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
FlowAnalysis\FlowDiagnosticTests.cs (90)
40CreateCompilation(program).VerifyDiagnostics( 86CreateCompilation(program).VerifyDiagnostics( 117var comp = CreateCompilation(program); 132var comp = CreateCompilation(program); 153var comp = CreateCompilation(program); 181var comp = CreateCompilation(program); 208var comp = CreateCompilation(program); 231var comp = CreateCompilation(program); 255var comp = CreateCompilation(program); 271var comp = CreateCompilation(program); 289var comp = CreateCompilation(program); 304var comp = CreateCompilation(program); 324var comp = CreateCompilation(program); 349var comp = CreateCompilation(program); 380var comp = CreateCompilation(program); 431var comp = CreateCompilation(program); 454var comp = CreateCompilation(program); 478var comp = CreateCompilation(program); 495var comp = CreateCompilation(program); 513var comp = CreateCompilation(program); 534var comp = CreateCompilation(program); 551var comp = CreateCompilation(program); 572var comp = CreateCompilation(program); 590var comp = CreateCompilation(program); 609CreateCompilation(program).VerifyDiagnostics( 635var comp = CreateCompilation(program); 656CreateCompilation(program).VerifyDiagnostics( 679CreateCompilation(program).VerifyDiagnostics(); 695CreateCompilation(program).VerifyDiagnostics( 714CreateCompilation(program).VerifyDiagnostics( 743CreateCompilation(program).VerifyDiagnostics(); 765CreateCompilation(program).VerifyDiagnostics(); 783var comp = CreateCompilation(program); 808var comp = CreateCompilation(program); 836var comp = CreateCompilation(program); 861var comp = CreateCompilation(program).VerifyDiagnostics( 882var comp = CreateCompilation(program); 910var comp = CreateCompilation(program); 933CreateCompilation(program, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 980CreateCompilation(program) 1025CreateCompilation(program) 1061CreateCompilation(program) 1094CreateCompilation(program) 1119CreateCompilation(program) 1142CreateCompilation(program) 1174CreateCompilation(program) 1199CreateCompilation(program) 1213CreateCompilation(program) 1227CreateCompilation(program, parseOptions: TestOptions.Regular10) 1270CreateCompilation(program).VerifyDiagnostics( 1291CreateCompilation(program, parseOptions: TestOptions.Regular10) 1322var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1331comp = CreateCompilation(text); 1350var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1356comp = CreateCompilation(text); 1392var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1410comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1449var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1467comp = CreateCompilation(text, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 1485comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1527var comp = CreateCompilation(text); 1579var comp = CreateCompilation(text); 1632var comp = CreateCompilation(text); 1674var comp = CreateCompilation(text); 1710var comp = CreateCompilation(text); 1757var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1788comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1824CreateCompilation(program) 1851CreateCompilation(program) 1869var comp = CreateCompilation(@" 1907CreateCompilation(program) 1940CreateCompilation(program) 1964CreateCompilation(source).VerifyDiagnostics(); 1984CreateCompilation(program).VerifyDiagnostics(); 2002var c = CreateCompilation(program, new[] { TestReferences.SymbolsTests.CycledStructs }); 2028CreateCompilation(source).VerifyDiagnostics(); 2066CreateCompilation(program).VerifyDiagnostics( 2148CreateCompilation(text).VerifyDiagnostics( 2171CreateCompilation(text).VerifyDiagnostics(); 2188CreateCompilation(program).VerifyDiagnostics(); 2215CreateCompilation(source).VerifyDiagnostics(); 2280CreateCompilation(source).VerifyDiagnostics(); 2612CSharpCompilation comp = CreateCompilation(source); 2637CSharpCompilation comp = CreateCompilation(source); 2663CSharpCompilation comp = CreateCompilation(source); 2702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2711comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2732var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2744comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2774CreateCompilation(program).VerifyDiagnostics(
FlowAnalysis\FlowTestBase.cs (6)
119var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 140var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 166var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework, references: references); 193var comp = CreateCompilation(program); 266var comp = CreateCompilation(program); 277var comp = CreateCompilation(program);
FlowAnalysis\FlowTests.cs (122)
158var comp = CreateCompilation(src); 169comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 208CreateCompilation(source).VerifyDiagnostics( 347CreateCompilation(source).VerifyDiagnostics( 579CreateCompilation(source).VerifyDiagnostics( 665CreateCompilation(source).VerifyDiagnostics( 795CreateCompilation(source).VerifyDiagnostics( 863CreateCompilation(source).VerifyDiagnostics(); 931CreateCompilation(source).VerifyDiagnostics( 1017CreateCompilation(source).VerifyDiagnostics( 1040CreateCompilation(source).VerifyDiagnostics( 1095CreateCompilation(source).VerifyDiagnostics( 1187CreateCompilation(source).VerifyDiagnostics( 1224CreateCompilation(source).VerifyDiagnostics( 1418CreateCompilation(source).VerifyDiagnostics( 1605CreateCompilation(source).VerifyDiagnostics( 1640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1660CreateCompilation(source).VerifyDiagnostics( 1688CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1828CreateCompilation(source).VerifyDiagnostics( 2036CreateCompilation(source).VerifyDiagnostics(); 2064CreateCompilation(source).VerifyDiagnostics( 2098CreateCompilation(source).VerifyDiagnostics( 2133CreateCompilation(source).VerifyDiagnostics( 2168CreateCompilation(source).VerifyDiagnostics( 2203CreateCompilation(source).VerifyDiagnostics( 2240CreateCompilation(source).VerifyDiagnostics( 2266CreateCompilation(source).VerifyDiagnostics( 2308CreateCompilation(source).VerifyDiagnostics( 2346CreateCompilation(source).VerifyDiagnostics( 2381CreateCompilation(source).VerifyDiagnostics( 2417CreateCompilation(source).VerifyDiagnostics( 2440CreateCompilation(source).VerifyDiagnostics( 2481CreateCompilation(source).VerifyDiagnostics( 2509CreateCompilation(source).VerifyDiagnostics(); 2528CreateCompilation(source).VerifyDiagnostics(); 2555CreateCompilation(source).VerifyDiagnostics(); 2578CreateCompilation(source).VerifyDiagnostics(); 2601CreateCompilation(source).VerifyDiagnostics(); 2624CreateCompilation(source).VerifyDiagnostics(); 2649CreateCompilation(source).VerifyDiagnostics(); 2678CreateCompilation(source).VerifyDiagnostics( 2709CreateCompilation(source).VerifyDiagnostics( 2737CreateCompilation(source).VerifyDiagnostics(); 2762CreateCompilation(source).VerifyDiagnostics(); 2789CreateCompilation(source).VerifyDiagnostics( 2813CreateCompilation(source).VerifyDiagnostics(); 2870CreateCompilation(source).VerifyDiagnostics( 2921var comp = CreateCompilation(source); 2983CreateCompilation(source).VerifyDiagnostics( 3045CreateCompilation(source).VerifyDiagnostics( 3096CreateCompilation(source).VerifyDiagnostics( 3146CreateCompilation(source).VerifyDiagnostics( 3199CreateCompilation(source).VerifyDiagnostics( 3225CreateCompilation(source).VerifyDiagnostics( 3247CreateCompilation(source).VerifyDiagnostics( 3309CreateCompilation(source).VerifyDiagnostics( 3370CreateCompilation(source).VerifyDiagnostics( 3432CreateCompilation(source).VerifyDiagnostics( 3491CreateCompilation(source).VerifyDiagnostics( 3539CreateCompilation(source).VerifyDiagnostics( 3574CreateCompilation(source).VerifyDiagnostics( 3629CreateCompilation(source).VerifyDiagnostics( 3693CreateCompilation(source).VerifyDiagnostics( 3757CreateCompilation(source).VerifyDiagnostics( 3819CreateCompilation(source).VerifyDiagnostics( 3887CreateCompilation(source).VerifyDiagnostics( 3938CreateCompilation(source).VerifyDiagnostics( 3972CreateCompilation(source).VerifyDiagnostics( 3997CreateCompilation(source).VerifyDiagnostics( 4025CreateCompilation(source).VerifyDiagnostics( 4049CreateCompilation(source).VerifyDiagnostics( 4081CreateCompilation(source).VerifyDiagnostics( 4139CreateCompilation(source).VerifyDiagnostics( 4194CreateCompilation(source).VerifyDiagnostics( 4245CreateCompilation(source).VerifyDiagnostics( 4321CreateCompilation(source).VerifyDiagnostics( 4383CreateCompilation(source).VerifyDiagnostics( 4426CreateCompilation(source).VerifyDiagnostics( 4455CreateCompilation(source).VerifyDiagnostics( 4546CreateCompilation(source).VerifyDiagnostics( 4610CreateCompilation(source).VerifyDiagnostics( 4695CreateCompilation(source).VerifyDiagnostics( 4775CreateCompilation(source).VerifyDiagnostics( 4865CreateCompilation(source).VerifyDiagnostics( 4951CreateCompilation(source).VerifyDiagnostics( 4992CreateCompilation(source).VerifyDiagnostics( 5025CreateCompilation(source).VerifyDiagnostics( 5061CreateCompilation(source).VerifyDiagnostics( 5097CreateCompilation(source).VerifyDiagnostics( 5128CreateCompilation(source).VerifyDiagnostics( 5154CreateCompilation(source).VerifyDiagnostics( 5180CreateCompilation(source).VerifyDiagnostics(); 5202CreateCompilation(source).VerifyDiagnostics( 5229CreateCompilation(source).VerifyDiagnostics(); 5252CreateCompilation(source).VerifyDiagnostics( 5282CreateCompilation(source).VerifyDiagnostics( 5310CreateCompilation(source).VerifyDiagnostics( 5476var comp = CreateCompilation(source); 5492var comp = CreateCompilation(source); 5510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 5581CreateCompilation(source).VerifyDiagnostics( 5604CreateCompilation(source).VerifyDiagnostics( 5631CreateCompilation(source).VerifyDiagnostics( 5658CreateCompilation(source).VerifyDiagnostics( 5689CreateCompilation(source).VerifyDiagnostics( 5713CreateCompilation(source).VerifyDiagnostics( 5743CreateCompilation(source).VerifyDiagnostics( 5774CreateCompilation(source).VerifyDiagnostics( 5804CreateCompilation(source).VerifyDiagnostics( 5838var compilation = CreateCompilation(source).VerifyDiagnostics(); 5870CreateCompilation(source).VerifyDiagnostics(); 5891CreateCompilation(source).VerifyDiagnostics(); 5913CreateCompilation(source).VerifyDiagnostics(); 5935CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5956CreateCompilation(source).VerifyDiagnostics( 5976CreateCompilation(source).VerifyDiagnostics( 6000CreateCompilation(source).VerifyDiagnostics( 6023CreateCompilation(source).VerifyDiagnostics( 6044CreateCompilation(source).VerifyDiagnostics( 6066CreateCompilation(source).VerifyDiagnostics( 6099CreateCompilation(source).VerifyDiagnostics(
FlowAnalysis\IterationJumpYieldStatementTests.cs (1)
912var comp = CreateCompilation(new[] { tree });
FlowAnalysis\LocalFunctions.cs (51)
21var comp = CreateCompilation(@" 50var comp = CreateCompilation(@" 83var comp = CreateCompilation(@" 109var comp = CreateCompilation(@" 133var comp = CreateCompilation(@" 156var comp = CreateCompilation(@" 175var comp = CreateCompilation(@" 195var comp = CreateCompilation(@" 227var comp = CreateCompilation(@" 255var comp = CreateCompilation(@" 277var comp = CreateCompilation(@" 302var comp = CreateCompilation(@" 334var comp = CreateCompilation(@" 365var comp = CreateCompilation(@" 494var comp = CreateCompilation(@" 509var comp = CreateCompilation(@" 526var comp = CreateCompilation(@" 546var comp = CreateCompilation(@" 567var comp = CreateCompilation(@" 589var comp = CreateCompilation(@" 615var comp = CreateCompilation(@" 649var comp = CreateCompilation(@" 670var comp = CreateCompilation(@" 693var comp = CreateCompilation(@" 725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 741comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 751var comp = CreateCompilation(@" 821var comp = CreateCompilation(@" 914var comp = CreateCompilation(@" 939var comp = CreateCompilation(@" 1011var comp = CreateCompilation(@" 1036var comp = CreateCompilation(@" 1074var comp = CreateCompilation(@" 1123var comp = CreateCompilation(@" 1150var comp = CreateCompilation(@" 1180var comp = CreateCompilation(@" 1218var comp = CreateCompilation(@" 1255var comp = CreateCompilation(@" 1291var comp = CreateCompilation(@" 1321var comp = CreateCompilation(@" 1347var comp = CreateCompilation(@" 1371var comp = CreateCompilation(@" 1397var comp = CreateCompilation(@" 1453var comp = CreateCompilation(@" 1502var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1512comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1523var comp = CreateCompilation(@" 1551var comp = CreateCompilation(@" 1584CreateCompilation(@" 1607CreateCompilation(@" 1627CreateCompilation(@"
FlowAnalysis\RegionAnalysisTests.cs (19)
3091var compilation = CreateCompilation(@" 4417var compilation = CreateCompilation(@" 4522var compilation = CreateCompilation(source.Replace("unsafe", keyword)); 5525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5566var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6213var comp = CreateCompilation(source); 6443var compilation = CreateCompilation(source); 6465var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6473compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7904var compilation = CreateCompilation(source); 8047var libraryReference = CreateCompilation(libSource).EmitToImageReference(); 8091var compilation = CreateCompilation(source); 8119var compilation = CreateCompilation(source); 9243var comp = CreateCompilation(@" 9374var comp = CreateCompilation(@" 9399var comp = CreateCompilation(@" 9448var comp = CreateCompilation(@" 14103var comp = CreateCompilation(""" 14131var comp = CreateCompilation("""
FlowAnalysis\StructTests.cs (41)
70var comp = CreateCompilation(program); 104var comp = CreateCompilation(text); 176var comp = CreateCompilation(program); 203var comp = CreateCompilation(program); 216CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461).VerifyDiagnostics( 246CreateCompilation(program).VerifyDiagnostics( 278CreateCompilation(program).VerifyDiagnostics( 309CreateCompilation(program).VerifyDiagnostics( 346CreateCompilation(program).VerifyDiagnostics( 386CreateCompilation(program).VerifyDiagnostics( 426CreateCompilation(program).VerifyDiagnostics( 463CreateCompilation(program).VerifyDiagnostics( 495CreateCompilation(program).VerifyDiagnostics( 527CreateCompilation(program).VerifyDiagnostics( 535var comp1 = CreateCompilation( 559CreateCompilation(source2, 569CreateCompilation(source2, 579CreateCompilation(source2, 586CreateCompilation(source2, 598var comp1 = CreateCompilation( 616CreateCompilation(source2, references: new MetadataReference[] { sourceReference }).VerifyDiagnostics( 621CreateCompilation(source2, references: new MetadataReference[] { metadataReference }).VerifyDiagnostics( 631var comp1 = CreateCompilation( 649CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 651CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 653CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 658CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 668var comp1 = CreateCompilation( 694CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 696CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 698CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 703CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 726var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 738CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 743CreateCompilation(source2, references: new MetadataReference[] { moduleReference }).VerifyDiagnostics( 769var comp1 = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugModule)); 781CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: WithNullableEnable()).VerifyDiagnostics( 786CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: WithNullableEnable().WithWarningLevel(5)).VerifyDiagnostics( 802var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 814CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 816CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
OverloadResolutionPriorityTests.cs (2)
975var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 1761var attrRef = CreateCompilation(OverloadResolutionPriorityAttributeDefinition);
RefReadonlyParameterTests.cs (263)
183CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 258CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 259CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }).VerifyDiagnostics(expectedDiagnostics); 273CreateCompilation(source).VerifyDiagnostics( 284CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }).VerifyDiagnostics( 303CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }).VerifyDiagnostics( 355CreateCompilation(source).VerifyDiagnostics( 382CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }).VerifyDiagnostics( 612CreateCompilation(source).VerifyDiagnostics( 726CreateCompilation(source).VerifyDiagnostics( 761CreateCompilation(source).VerifyDiagnostics( 1245var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1269var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1286var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1304var comp1 = CreateCompilation(source1, assemblyName: "Assembly1").VerifyDiagnostics(); 1319var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1329var comp1b = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1").VerifyDiagnostics(); 1331var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1345var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options: TestOptions.UnsafeDebugDll); 1369var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1385var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1412var comp4 = CreateCompilation(source4, assemblyName: "Assembly4").VerifyDiagnostics(); 1416var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1430var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1437var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1466var comp1 = CreateCompilation(source1, assemblyName: "Assembly1").VerifyDiagnostics(); 1476var comp2 = CreateCompilation(new[] { source2, RequiresLocationAttributeDefinition }, new[] { comp1Ref }, 1489var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.UnsafeReleaseDll); 1522var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 1542var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1558var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1574CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1589CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 1590CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 1638CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1643CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 1644var comp = CreateCompilation(source).VerifyDiagnostics(); 1659var comp = CreateCompilation(source).VerifyDiagnostics( 1681var comp = CreateCompilation(source).VerifyDiagnostics( 1700CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1715CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1716CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1739CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1740CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1752CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1767CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1768CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1790CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1791CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1792CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1804CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1825CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1826CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1845CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1846CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1847CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1866CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1867CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1868CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1887CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1888CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1889CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1901CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1916CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1917CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1936CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1937CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1938CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1950CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1965CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1966CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1985CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1986CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1987CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 1999CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2014CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2015CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2034CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2035CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2036CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2048CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2053CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2054CreateCompilation(source).VerifyDiagnostics(); 2073CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2074CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2075CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2087CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2092CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2093CreateCompilation(source).VerifyDiagnostics(); 2105CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2110CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2111CreateCompilation(source).VerifyDiagnostics(); 2139CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2140CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2141CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2169CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2170CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2171CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2199CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2200CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2201CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2213CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2218CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2219CreateCompilation(source).VerifyDiagnostics(); 2232CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2247CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2248CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2250CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2269CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2284CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2285CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 2287CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2403CreateCompilation(source).VerifyDiagnostics( 2482CreateCompilation(source).VerifyDiagnostics( 2508CreateCompilation(source).VerifyDiagnostics( 2564CreateCompilation(source).VerifyDiagnostics( 2646CreateCompilation(source).VerifyDiagnostics( 2735CreateCompilation(source).VerifyDiagnostics( 2794CreateCompilation(source).VerifyDiagnostics( 2833CreateCompilation(source).VerifyDiagnostics( 2851CreateCompilation(source).VerifyDiagnostics(); 2871CreateCompilation(source).VerifyDiagnostics( 2897CreateCompilation(source).VerifyDiagnostics( 2939CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 2992CreateCompilation(source).VerifyDiagnostics( 3061CreateCompilation(source).VerifyDiagnostics( 3141CreateCompilation(source).VerifyDiagnostics( 3163var comp1 = CreateCompilation(source1).VerifyDiagnostics( 3181CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3196CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3197CreateCompilation(source2, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 3236CreateCompilation(source).VerifyDiagnostics( 3288CreateCompilation(source).VerifyDiagnostics( 3334CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 3390CreateCompilation(source).VerifyDiagnostics( 3412CreateCompilation(source).VerifyDiagnostics( 3461CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3532CreateCompilation(source).VerifyDiagnostics( 3562CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 3622CreateCompilation(source).VerifyDiagnostics( 3657CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 3701CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3702CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 3728CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3786CreateCompilation(source).VerifyDiagnostics( 3833CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3848CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3849CreateCompilation(source).VerifyDiagnostics(expectedDiagnostics); 3869CreateCompilation(source).VerifyDiagnostics( 3927CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3928CreateCompilation(new[] { source1, source3 }).VerifyDiagnostics(expectedDiagnostics); 3975CreateCompilation(new[] { source1, source3 }).VerifyDiagnostics( 4133CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics2); 4134CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics2); 4135CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics(expectedDiagnostics2); 4142CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4503CreateCompilation(source).VerifyDiagnostics( 4547? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options: TestOptions.ReleaseExe) 4548: CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 4598? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options: TestOptions.ReleaseExe) 4599: CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 4626CreateCompilation(source).VerifyDiagnostics( 4648CreateCompilation(source).VerifyDiagnostics( 4667CreateCompilation(source).VerifyDiagnostics( 4736? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warnings1).EmitToImageReference() }, options: TestOptions.ReleaseExe) 4737: CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 4802CreateCompilation(source).VerifyDiagnostics( 4837? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options: TestOptions.ReleaseExe) 4838: CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 4872CreateCompilation(source).VerifyDiagnostics( 4891var comp = CreateCompilation(source); 5250var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 5303CreateCompilation(source).VerifyDiagnostics( 5350CreateCompilation(source).VerifyDiagnostics( 5426CreateCompilation(source).VerifyDiagnostics( 5769CreateCompilation(source).VerifyDiagnostics( 5787var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 5813var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 5838var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 6053CreateCompilation(source).VerifyDiagnostics( 6072CreateCompilation(source).VerifyDiagnostics( 6093CreateCompilation(source, targetFramework: TargetFramework.Net50).VerifyDiagnostics( 6544CreateCompilation(source).VerifyDiagnostics( 6674var comp1v1 = CreateCompilation(source1v1, assemblyName: "Assembly1"); 6683var comp1v2 = CreateCompilation(source1v2, assemblyName: "Assembly1"); 6692var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, assemblyName: "Assembly2"); 6695var comp3v1 = CreateCompilation("", new[] { comp2Ref, comp1v1Ref }, assemblyName: "Assembly3"); 6702var comp3v2 = CreateCompilation("", new[] { comp2Ref, comp1v2Ref }, assemblyName: "Assembly3"); 6725CreateCompilation(source).VerifyDiagnostics( 6835CreateCompilation(source).VerifyDiagnostics( 6859CreateCompilation(source).VerifyDiagnostics( 6885CreateCompilation(source).VerifyDiagnostics( 6904CreateCompilation(source).VerifyEmitDiagnostics(); 6920CreateCompilation(source).VerifyEmitDiagnostics(); 6936CreateCompilation(source).VerifyDiagnostics( 6958CreateCompilation(source).VerifyDiagnostics( 6981CreateCompilation(source).VerifyDiagnostics( 7007CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7012CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 7032CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7037CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 7061CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7066CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7096var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7124var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7238CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 7277CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7278CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 7331CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 7397CreateCompilation(source).VerifyDiagnostics( 7438CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 7489CreateCompilation(new[] { source1, source2 }).VerifyDiagnostics( 7629CreateCompilation(source2).VerifyDiagnostics( 7688CreateCompilation(source3, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7689CreateCompilation(source3).VerifyDiagnostics(expectedDiagnostics); 7705var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 7721CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7739CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7740CreateCompilation(source2, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 7744CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7776CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7807var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 7826CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7853CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7854CreateCompilation(source3, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 7882CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 7971var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 7996CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8023CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8024CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8046var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8081CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8082CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8083CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8116CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8176CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8212var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8230var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe); 8251CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8252CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8327var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 8342CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8372CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8384CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8385CreateCompilation(source3, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8418CreateCompilation(source).VerifyDiagnostics( 8502CreateCompilation(source1).VerifyDiagnostics( 8539var comp1 = CreateCompilation(source1); 8549CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8578CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8596CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8597CreateCompilation(source3, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 8633var comp1 = CreateCompilation(source1); 8648CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8684CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8685CreateCompilation(source3, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 8704CreateCompilation(source).VerifyDiagnostics(
RefStructInterfacesTests.cs (358)
36var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 45CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 47CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 69var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 78CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 80CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 102var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 125var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 149var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 160CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 162CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 181var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 192CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 194CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 213var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 238var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 266var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 277CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 279CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 304var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 315CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 317CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 370var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 396var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 407CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 409CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 439CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 441CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 460var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 485var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 514var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 525CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 527CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 552var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 563CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 565CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 590var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 618var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 644var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 948var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1032CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1057var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1543var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1633var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 2119var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 2216var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 2245var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2280var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 2313var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2358var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2442var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2481var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2545var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2607var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2668var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2704var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2720var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2740comp = CreateCompilation(sourceB, references: new[] { refA }); 2756var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2776comp = CreateCompilation(sourceB, references: new[] { refA }); 2795var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2815comp = CreateCompilation(sourceB, references: new[] { refA }); 2831var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2849comp = CreateCompilation(sourceB, references: new[] { refA }); 2865var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2883comp = CreateCompilation(sourceB, references: new[] { refA }); 2902var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2920comp = CreateCompilation(sourceB, references: new[] { refA }); 3038CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 3069CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 3102CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 3178var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3253var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3340var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3416var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 3472var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3515var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3563var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3739var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3805var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3882var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3931var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4043var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4128var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4177var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4231var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4286var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4353var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4366var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4386comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 4389CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4395comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4402comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4422var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4437CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 4439CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4445CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4466var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4507var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4533var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4562var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4584var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4616var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4642var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4677var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4720var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4746var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4775var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4812var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4838var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4867var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4889var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4918var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4942var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4973var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5029var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5058var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5083var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5111var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5138var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5159var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5180var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5201var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5226var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5255var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5280var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5309var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5338var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5367var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5408var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5474var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5509var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5545var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5607var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5638var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5674var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5699var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5733var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5756var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5784var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5817var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5853var comp = CreateCompilation(src); 5863CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 5865CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5888var comp = CreateCompilation(src); 5935var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5984var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6064var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6140var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6148comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6202var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6210comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6260var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6268comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6328var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6336comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6396var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6404comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6462var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6473comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6548var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6595var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6731var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6848var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6969var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7108var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7257var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 7303var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 7330comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7386var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7393comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 7396comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 7432var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7622var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7840var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8037var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8230var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8429var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8505var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8673var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8715var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8738comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8788var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8795comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8798comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8814var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8889var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9093var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9303var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9456var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9892var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10104var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10338var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10433var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10500var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10697var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10936var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11152var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11379var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11596var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11691var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11743var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 11801var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 11819comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11889comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 11892comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 11939var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11987var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12023var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12231var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12290var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12498var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12536var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12746var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12795var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13017var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13065var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13272var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13324var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13550var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13599var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13664var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13689var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13747var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13780comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13853var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13869comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13872comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13910var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13926comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13929comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13966var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14307var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15019var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15367var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15720var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15797var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16124var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16168var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16191comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16242var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16249comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16252comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16270var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16332var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16374var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16426var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16487var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16554var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16628var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16700var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16746var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16811var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16960var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17048var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17141var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17238var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17322var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17374var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 17456var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 17477comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17550var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17566comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 17573comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 17611var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17808var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18030var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18434var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18640var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18714var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18890var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 18930var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 18950comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19007comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 19010comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 19026var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 19096var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19267var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19444var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19592var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19777var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19957var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20047var comp1Ref = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics).ToMetadataReference(); 20104comp1Ref = CreateCompilation(src1, targetFramework: TargetFramework.Mscorlib461Extended).ToMetadataReference(); 20136var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20190var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20228var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20257var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20304var comp1Ref = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics).ToMetadataReference(); 20361comp1Ref = CreateCompilation(src1, targetFramework: TargetFramework.Mscorlib461Extended).ToMetadataReference(); 20401var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20448var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20493var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20538var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20573var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20606var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20640var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20685var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20737var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20779var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20816var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20932var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20989var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21022var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21046var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21112var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21140var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21193var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21234var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21296var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21336var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21382var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21403var comp = CreateCompilation(code, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21429var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21477var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21501var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21547var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21591var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21638var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21699var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21745var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21776var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21831var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 21881var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21928var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21968var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21990var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22020var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22060var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.DebugExe); 22094var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22136var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22178var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22234var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22305var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22370var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22408var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22425var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22473var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22529var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22584var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22632var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22676var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.UnsafeReleaseExe); 22725var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22777var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22823var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe);
RefUnsafeInIteratorAndAsyncTests.cs (51)
33CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 41CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 42CreateCompilation(source).VerifyEmitDiagnostics(); 61CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 69CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 70CreateCompilation(source).VerifyEmitDiagnostics(); 89CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 97CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 98CreateCompilation(source).VerifyEmitDiagnostics(); 119CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 127CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 128CreateCompilation(source).VerifyEmitDiagnostics(); 154CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 155CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 156CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 175CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 180CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 181CreateCompilation(source).VerifyEmitDiagnostics(); 206CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 207CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 208CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 226CreateCompilation(source).VerifyEmitDiagnostics( 251CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 266CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 267CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 286CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 301CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 302CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 324CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 336CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 337CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 395CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 418CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 430CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 431CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 491CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 551CreateCompilation(source).VerifyEmitDiagnostics( 573CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 588CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 589CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 610CreateCompilation(source).VerifyEmitDiagnostics( 631CreateCompilation(source).VerifyEmitDiagnostics( 815CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 838CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 850CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 851CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 873CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 895CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 918CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 1051CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 1074CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(
Semantics\CollectionExpressionTests.cs (536)
150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 187var comp = CreateCompilation(source); 222var comp = CreateCompilation(source); 257var comp = CreateCompilation(source); 285var comp = CreateCompilation(source); 313var comp = CreateCompilation(source); 338var comp = CreateCompilation(source); 357var comp = CreateCompilation(source); 376var comp = CreateCompilation(source); 397var comp = CreateCompilation(source); 445var comp = CreateCompilation(source); 551var comp = CreateCompilation(source); 584var comp = CreateCompilation(source); 692var comp = CreateCompilation(source); 714var comp = CreateCompilation(source); 781var comp = CreateCompilation(source); 806var comp = CreateCompilation(source); 840CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 867var comp = CreateCompilation(source); 902var comp = CreateCompilation(source); 956var comp = CreateCompilation(source); 1048CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 1135CreateCompilation(source).VerifyEmitDiagnostics( 1234var comp = CreateCompilation(source); 1433var comp = CreateCompilation( 1528var comp = CreateCompilation( 1628var comp = CreateCompilation( 1732var comp = CreateCompilation( 1918var comp = CreateCompilation( 1925comp = CreateCompilation( 1932comp = CreateCompilation( 1958comp = CreateCompilation( 1964comp = CreateCompilation( 1971comp = CreateCompilation( 2006var comp = CreateCompilation( 2027comp = CreateCompilation( 2075var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80); 2078comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net80); 2107var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2216CreateCompilation(source, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 2244CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 2309CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(version)).VerifyDiagnostics( 2336CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2374CreateCompilation(source, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 2583CreateCompilation(source, 2587CreateCompilation(source, 2591CreateCompilation(source, 2770CreateCompilation(source, 2774CreateCompilation(source, 2778CreateCompilation(source, 2936CreateCompilation(source, 2940CreateCompilation(source, 2944CreateCompilation(source, 2988var comp = CreateCompilation(source); 3074var comp = CreateCompilation( 3112var comp = CreateCompilation( 3146var comp = CreateCompilation( 3188var comp = CreateCompilation( 3274var comp = CreateCompilation(source); 3312var comp = CreateCompilation(source); 3336var comp = CreateCompilation(source); 3362var comp = CreateCompilation(source); 3406var comp = CreateCompilation(source); 3437var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 3461var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 3502var comp = CreateCompilation(source); 3532var comp = CreateCompilation(source); 3557var comp = CreateCompilation(source); 3680var comp = CreateCompilation(source); 3728var comp = CreateCompilation(source); 3769var comp = CreateCompilation(source); 3808var comp = CreateCompilation(source); 3850var comp = CreateCompilation(source); 3903var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3927var comp = CreateCompilation(source); 3951var comp = CreateCompilation(source); 3976var comp = CreateCompilation(source); 4014var comp = CreateCompilation(source); 4046var comp = CreateCompilation(source); 4065var comp = CreateCompilation(source); 4197var comp = CreateCompilation(source); 4245var comp = CreateCompilation(source); 4344var comp = CreateCompilation(source); 4374var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4460var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4482var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4532var comp = CreateCompilation(source); 4563var comp = CreateCompilation(source); 4688var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 4765var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4812var comp = CreateCompilation(source); 4834var comp = CreateCompilation(source); 4861var comp = CreateCompilation(source); 4888var comp = CreateCompilation(source); 4915var comp = CreateCompilation(source); 5124var comp = CreateCompilation(source); 5352var comp = CreateCompilation(source); 5374var comp = CreateCompilation(source); 5634var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5663var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5682var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5689comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5731var comp = CreateCompilation(source); 5759var comp = CreateCompilation(source); 5820var comp = CreateCompilation(source); 5881var comp = CreateCompilation(source); 5957var comp = CreateCompilation(source); 6034var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6061var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6089var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6139var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80); 6509var comp = CreateCompilation(source); 6547var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 6572var comp = CreateCompilation(source); 6603var comp = CreateCompilation(source); 6656var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 6750var comp = CreateCompilation(source); 6881var comp = CreateCompilation(source); 6913var comp = CreateCompilation(source); 6938var comp = CreateCompilation(source); 7009var comp = CreateCompilation(source); 7041var comp = CreateCompilation(source); 7068var comp = CreateCompilation(source); 7097var comp = CreateCompilation(source); 7129var comp = CreateCompilation(source); 7267var comp = CreateCompilation(new[] { sourceA, sourceB1, s_collectionExtensions }); 7327var comp = CreateCompilation(source); 7356var comp = CreateCompilation(source); 7385var comp = CreateCompilation(source); 7418var comp = CreateCompilation(source); 7442var comp = CreateCompilation(source); 7473var comp = CreateCompilation(source); 7510var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 7595var comp = CreateCompilation(source); 7628var comp = CreateCompilation(source); 7653var comp = CreateCompilation(sourceA); 7666comp = CreateCompilation(sourceB, references: new[] { refA }); 7724var comp = CreateCompilation(source); 7756var comp = CreateCompilation(source); 7820var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 7895var comp = CreateCompilation(source); 7930var comp = CreateCompilation(source); 8034var comp = CreateCompilation(source); 8078var comp = CreateCompilation(source); 8115var comp = CreateCompilation(source); 8144var comp = CreateCompilation(source); 8176var comp = CreateCompilation(source); 8208var comp = CreateCompilation(source); 8245var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8308var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8393var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 8478var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 8571var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8622var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8672var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8805var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 8823comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8877var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 8906comp = CreateCompilation(new[] { sourceA, sourceB2 }); 9050var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 9126var comp = CreateCompilation(source); 9153var comp = CreateCompilation(source); 9179var comp = CreateCompilation(source); 9198var comp = CreateCompilation(sourceA, assemblyName: assemblyA); 9220comp = CreateCompilation(sourceB, references: new[] { refA }); 9243comp = CreateCompilation(new[] { sourceC, s_collectionExtensions }, references: new[] { refB }); 9350var comp = CreateCompilation(source); 9721var comp = CreateCompilation(source); 9742var comp = CreateCompilation(source); 9764var comp = CreateCompilation(source); 10098var comp = CreateCompilation(source); 10465var comp = CreateCompilation(source); 10484var comp = CreateCompilation(source); 10503var comp = CreateCompilation(source); 10953var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11000var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11058var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11141var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11213var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11446var comp = CreateCompilation(source); 11474comp = CreateCompilation(source); 11484comp = CreateCompilation(source); 11494comp = CreateCompilation(source); 11504comp = CreateCompilation(source); 12063var comp = CreateCompilation(source); 12085var comp = CreateCompilation(source); 12168var comp = CreateCompilation(source); 12184var comp = CreateCompilation(sourceA, assemblyName: assemblyA); 12196comp = CreateCompilation(sourceB, references: new[] { refA }); 12205comp = CreateCompilation(sourceC, references: new[] { refA, refB }); 12208comp = CreateCompilation(sourceC, references: new[] { refB }); 12247var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12318var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12421var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12441comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 13389var comp = CreateCompilation(source); 13424var comp = CreateCompilation(source); 13762var comp = CreateCompilation(source); 13789var comp = CreateCompilation(source); 13814var comp = CreateCompilation(source); 13872var comp = CreateCompilation(source); 13901var comp = CreateCompilation(source); 14012var comp = CreateCompilation(source); 14051var comp = CreateCompilation(source); 14083var comp = CreateCompilation(source); 14110var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 14130CreateCompilation(source).VerifyDiagnostics( 14151CreateCompilation(source).VerifyDiagnostics( 14175CreateCompilation(source).VerifyDiagnostics( 14217var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14287var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14360var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14374var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14428var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14497var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14542var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14600var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14702var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14829var comp = CreateCompilation(source); 14860var comp = CreateCompilation(source); 14890var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 14941var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15001var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15123var comp = CreateCompilation(source); 15148var comp = CreateCompilation(source); 15180var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15388comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: targetFramework, options: TestOptions.ReleaseExe); 15581var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15609comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 15637comp = CreateCompilation(sourceC, references: new[] { refA }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15679var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15767var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15816var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15865var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15914var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15954var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15969comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 16016var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16081var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16130var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16172var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16187comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 16226var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16276var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16311var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16345var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16377var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16391comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 16406comp = CreateCompilation(sourceC, references: new[] { refB }, targetFramework: TargetFramework.Net80); 16434var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16449comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 16497var comp = CreateCompilation(sourceB, references: new[] { refA }); 16533var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16576var comp = CreateCompilation(sourceB, references: new[] { refA }); 16617var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16669var comp = CreateCompilation(sourceB, references: new[] { refA }); 16709var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16750var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16790var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16833var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16885var comp = CreateCompilation(sourceB, references: new[] { refA }); 16915var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16930comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 16964var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16979comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 17018var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17085var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17150var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, targetFramework: TargetFramework.Net80); 17211var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17255var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17303var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17339var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17388var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17437var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17483var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17529var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17572var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17587comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 17620var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17665var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17680comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 17711var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17726comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 17767var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17814var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17866var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17926var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17941comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 17971var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17986comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18016var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18031comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18074var comp = CreateCompilation(new[] { sourceA, sourceAttribute }, targetFramework: TargetFramework.Net80); 18088comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18118var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18132comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18198var comp = CreateCompilation( 18269var comp = CreateCompilation( 18320var comp = CreateCompilation( 18368var comp = CreateCompilation( 18503var comp = CreateCompilation( 18550var comp = CreateCompilation( 18598var comp = CreateCompilation( 18646var comp = CreateCompilation( 18689var comp = CreateCompilation( 18732var comp = CreateCompilation( 18775var comp = CreateCompilation( 18818var comp = CreateCompilation( 18851var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18866comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18908var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 18942var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18957comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 18988var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19003comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19046var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19085var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19118comp = CreateCompilation(sourceB2, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19148var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19181comp = CreateCompilation(sourceB2, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19222var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19252var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19269comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19323var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19382var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19418var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Mscorlib40); 19436comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Mscorlib461); 19489var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19520var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19534comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19566var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19604var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19669var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19697var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19714comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19775var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19832var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19857var comp = CreateCompilation(sourceA, assemblyName: assemblyA, targetFramework: TargetFramework.Net80); 19872comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19882comp = CreateCompilation(sourceC, references: new[] { refB }, targetFramework: TargetFramework.Net80); 20194var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20224var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20258var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20294var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 20327var comp = CreateCompilation(new[] { sourceA, sourceB }); 20354var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20679var comp = CreateCompilation( 20904var comp = CreateCompilation(source); 21683var comp = CreateCompilation( 22043var comp = CreateCompilation(source); 22074var comp = CreateCompilation(source); 22174CreateCompilation(source).VerifyDiagnostics( 22439var comp = CreateCompilation(source, targetFramework: targetFramework); 22527var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 22585comp = CreateCompilation( 22697var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60); 22724comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 23395var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80); 23765var comp = CreateCompilation( 23936var comp = CreateCompilation(source, targetFramework: targetFramework); 24124var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 24206var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 24404var comp = CreateCompilation(source, targetFramework: targetFramework); 25003var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 25037var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 25148var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 25520var comp = CreateCompilation(source, targetFramework: targetFramework); 25884var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 25926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 25962var comp = CreateCompilation(source); 25988var comp = CreateCompilation(source); 26108var comp = CreateCompilation(source); 26234var comp = CreateCompilation(source); 26301var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26360var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 26445var comp = CreateCompilation(source); 26514var comp = CreateCompilation(source); 26572var comp = CreateCompilation(source); 26642var comp = CreateCompilation(source); 26720var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26782var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26817var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26889var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26938var comp = CreateCompilation(source); 26999var comp = CreateCompilation(source, references: new[] { CSharpRef }); 27028var comp = CreateCompilation(source); 27051var comp = CreateCompilation(source); 27130var comp = CreateCompilation(source); 27171var comp = CreateCompilation(source); 27204var comp = CreateCompilation(source); 27820var comp = CreateCompilation(source); 27843var comp = CreateCompilation(source); 27875var comp = CreateCompilation(source); 27961CreateCompilation(source).VerifyEmitDiagnostics( 27984CreateCompilation(source).VerifyEmitDiagnostics( 28004CreateCompilation(source).VerifyEmitDiagnostics( 28024CreateCompilation(source).VerifyEmitDiagnostics( 28070CreateCompilation(source).VerifyEmitDiagnostics( 28093CreateCompilation(source).VerifyEmitDiagnostics( 28116CreateCompilation(source).VerifyEmitDiagnostics( 28139CreateCompilation(source).VerifyEmitDiagnostics( 28167var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28197var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28220var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28243var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28262CreateCompilation(source).VerifyEmitDiagnostics( 28289var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28313var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28336var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28356CreateCompilation(source).VerifyEmitDiagnostics( 28378CreateCompilation(source).VerifyEmitDiagnostics( 28402CreateCompilation(source).VerifyEmitDiagnostics( 28424CreateCompilation(source).VerifyEmitDiagnostics( 28438CreateCompilation(source).VerifyEmitDiagnostics( 28459CreateCompilation(source).VerifyEmitDiagnostics( 28481CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 28506CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 28549var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 28583var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 28613var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28657var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28700var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28746var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28789var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28829var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28868var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28907var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 28935var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28988var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29042var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29103var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29167CreateCompilation(source).VerifyEmitDiagnostics(); 29195var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29237var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29284var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29335var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 29375var comp = CreateCompilation(new[] { source, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 29434var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29460var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29484var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29508var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29531var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29589var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29648var comp = CreateCompilation(new[] { source, s_collectionExtensions }, targetFramework: TargetFramework.Net70); 29686CreateCompilation(source).VerifyEmitDiagnostics( 29719CreateCompilation(source).VerifyEmitDiagnostics( 29747CreateCompilation(source).VerifyEmitDiagnostics( 29774CreateCompilation(source).VerifyEmitDiagnostics( 29805CreateCompilation(source, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 29843CreateCompilation(source).VerifyEmitDiagnostics( 29871CreateCompilation(source).VerifyEmitDiagnostics( 29900CreateCompilation(source).VerifyEmitDiagnostics( 29933CreateCompilation(source).VerifyEmitDiagnostics( 29967var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 29995CreateCompilation(source).VerifyEmitDiagnostics( 30030var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 30058CreateCompilation(source).VerifyEmitDiagnostics( 30082var comp = CreateCompilation(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: ExecutionConditionUtil.IsMonoOrCoreClr ? TestOptions.DebugExe : TestOptions.DebugDll); 30398var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net60); 30422comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net60); 30457var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 30479comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Mscorlib40); 30511var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 30533comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Mscorlib40); 30906var comp = CreateCompilation(source); 30934var comp = CreateCompilation(source); 30974var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 31023var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 31044CreateCompilation(src).VerifyEmitDiagnostics( 31074CreateCompilation(src).VerifyEmitDiagnostics( 31095CreateCompilation(src).VerifyEmitDiagnostics( 31116CreateCompilation(src).VerifyEmitDiagnostics( 31144CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 31196CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31239CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31277CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31310CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31347CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31388CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31434CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31477var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31525var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31579var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31641CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31681var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31735CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31785CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31837CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31880CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31923CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31966CreateCompilation(src).VerifyEmitDiagnostics(); 32011CreateCompilation(source).VerifyEmitDiagnostics(); 32041CreateCompilation(source).VerifyEmitDiagnostics(); 32091CreateCompilation(source).VerifyEmitDiagnostics(); 32122CreateCompilation(source).VerifyEmitDiagnostics(); 32166CreateCompilation(source).VerifyEmitDiagnostics(); 32213CreateCompilation(source).VerifyEmitDiagnostics(); 32232CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32248CreateCompilation(src).VerifyEmitDiagnostics( 32267CreateCompilation(src).VerifyEmitDiagnostics( 32288var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32331var comp = CreateCompilation(src).VerifyEmitDiagnostics(); 32356var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32387var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32429var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32478var comp = CreateCompilation(src).VerifyEmitDiagnostics(); 32532var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32584CreateCompilation(src).VerifyEmitDiagnostics( 32628var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32691CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32741CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32773CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32802CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32846CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32880CreateCompilation(src2, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32926CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32966CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32992CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33026var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33076CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33115CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33154CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33195CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33238CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33288CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33321CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33344CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 33359CreateCompilation(src).VerifyEmitDiagnostics( 33376CreateCompilation(src).VerifyEmitDiagnostics( 33392CreateCompilation(src).VerifyEmitDiagnostics( 33429var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 33460var compilation = CreateCompilation(code); 33497var compilation = CreateCompilation(code); 34146var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34648var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80);
Semantics\ExperimentalAttributeTests.cs (187)
54? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 55: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 83var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 103var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 129var attrComp = CreateCompilation(experimentalAttributeSrc); 144var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 154var attrComp = CreateCompilation(experimentalAttributeSrc); 169var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 194var attrComp = CreateCompilation(experimentalAttributeSrc); 211var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 230var attrComp = CreateCompilation(experimentalAttributeSrc); 236var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 249var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef, moduleRef }); 260var attrComp = CreateCompilation(experimentalAttributeSrc); 266var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 279var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef, moduleRef }).EmitToImageReference(), attrRef }); 316var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 346var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 372var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 386var attrComp = CreateCompilation(experimentalAttributeSrc); 401var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 411var attrComp = CreateCompilation(experimentalAttributeSrc); 426var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 451var attrComp = CreateCompilation(experimentalAttributeSrc); 468var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 479var attrComp = CreateCompilation(experimentalAttributeSrc); 496var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 521var attrComp = CreateCompilation(experimentalAttributeSrc); 533var moduleComp = CreateCompilation(libSrc, options: TestOptions.ReleaseModule, references: new[] { attrRef }); 546var assemblyComp = CreateCompilation(libSrc2, references: new[] { moduleRef, attrRef }); 557var comp = CreateCompilation(src, references: new[] { assemblyRef, moduleRef, attrRef }); 570var attrComp = CreateCompilation(experimentalAttributeSrc); 588var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 603var attrComp = CreateCompilation(experimentalAttributeSrc); 621var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 643var attrComp = CreateCompilation(experimentalAttributeSrc); 663var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 671var attrComp = CreateCompilation(experimentalAttributeSrc); 691var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 731? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 732: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 778? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 779: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 803var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 822var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 854? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 855: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 879? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 880: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 888var missingRef = CreateCompilation("public class Base { }", assemblyName: "missing").EmitToImageReference(); 901var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { missingRef }).EmitToImageReference() }); 918var attrRef = CreateCompilation(experimentalAttributeSrc).EmitToImageReference(); 933var derivedComp = CreateCompilation(derivedSrc, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 936var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 955var attrRef = CreateCompilation(experimentalAttributeSrc).EmitToImageReference(); 968var derivedComp = CreateCompilation(derivedSrc, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 971var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 983var attrRef = CreateCompilation(experimentalAttributeSrc).EmitToImageReference(); 998var derivedComp = CreateCompilation(@base, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 1001var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 1020var attrRef = CreateCompilation(experimentalAttributeSrc).EmitToImageReference(); 1033var derivedComp = CreateCompilation(@base, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 1036var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 1061? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1062: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1090? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1091: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1121? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1122: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1152? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1153: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1183? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1184: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1214? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1215: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1245? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1246: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1272? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1273: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1296? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1297: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1322? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1323: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1345? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1346: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1365? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1366: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1385var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 1408var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1429var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1450var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1473var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 1499var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1523var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1550var comp = CreateCompilation(new CSharpTestSource[] { (src, "0.cs"), libSrc, experimentalAttributeSrc }); 1576var comp = CreateCompilation(new CSharpTestSource[] { (src, "0.cs"), experimentalAttributeSrc }); 1597var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1620var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1708var comp = CreateCompilation(src); 1738var libComp = CreateCompilation(libSrc); 1744var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1772var comp = CreateCompilation(src); 1798var libComp = CreateCompilation(libSrc); 1804var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1839var libComp = CreateCompilation(libSrc); 1845var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1880var libComp = CreateCompilation(libSrc); 1886var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1912var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1938var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1967? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 1968: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 1995var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 2023var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 2048? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2049: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2078? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2079: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2112? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2113: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2142? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2143: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2175? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2176: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2205? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2206: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2235? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2236: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2262? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2263: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2293? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2294: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2336? CreateCompilation(libsSrc.Append(src).ToArray()) 2337: CreateCompilation(src, references: new[] { CreateCompilation(libsSrc).EmitToImageReference() }); 2406? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2407: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2435? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2436: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2465? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2466: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 2495? CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }) 2496: CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() });
Semantics\InlineArrayTests.cs (546)
101var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 135var comp = CreateCompilation(src); 158var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 181var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 227var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 252var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 318var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 384var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 449var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 514var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 581var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 604var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 685var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 775var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 854var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 960var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 998var comp = CreateCompilation(consumer + src, targetFramework: TargetFramework.Net80); 1085var comp = CreateCompilation(consumer + src, targetFramework: TargetFramework.Net80); 1165var comp1 = CreateCompilation(src1 + InlineArrayAttributeDefinition, targetFramework: TargetFramework.Net50); 1166var comp2 = CreateCompilation("", references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net60); 1186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1242var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1279var comp = CreateCompilation(src); 1304var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1330var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1361var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1387var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1412var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1436var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1533var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 1572var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1607var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1642var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1677var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1712var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1737var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1764var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1787var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1811var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1848var comp = CreateCompilation(src); 1872var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1902var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1917var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1986var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2010var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2028var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2113var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2153var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2175var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2201var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2228var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2251var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2279var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2299var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2324var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2353var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2388var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2422var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2462var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2492comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 2495comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 2553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2590var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2633var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2703var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2782var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2824var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2864var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2889var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2914var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2945var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2983var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3015var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3041var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3070var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3100var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3134var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3560var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4017var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4142var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4271var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4402var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4678var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4836var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4894var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4997var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 5074var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5309var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5527var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5988var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6017comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6020comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6071var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6167var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6183comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6186comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6291var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6329var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6362var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6401var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6487var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6584var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6681var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6711var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6757var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6780var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6813var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6857var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6907var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6957var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7013var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7063var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7153var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7257var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8105var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8205var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8250var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8280var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8313var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8337comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 8340comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8372var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8425var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8480var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8597var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8659var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8691var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8721var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8753var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8773var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8807var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8885var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8939var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9016var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9053var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9159var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9193var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9242var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9289var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9340var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9391var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9430var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9475var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9521var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9558var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9593var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9641var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9693var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9745var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9825var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9910var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10013var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10111var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10150var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10261var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10345var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10390var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10431var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10460var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10492var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10602var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10654var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10706var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10838var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10873var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10908var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10986var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11026var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11094var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11176var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11272var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11346var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11398var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11437var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11514var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11569var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11650var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11674var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11723var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11769var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11790var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11811var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11832var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11858var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11884var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11905var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11931var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11959var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12000var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12056var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12106var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12140var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12327var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12376var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12411var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12473var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12496var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12523var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12551var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12608var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12662var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12725var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12748var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12790var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12835var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12867var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12892var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13080var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13117comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 13154var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13210var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13269var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13311comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13359comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13382var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13396comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13473comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13524var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13542comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13603comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13694var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13748var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13806var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13864var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13917var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14019var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14055var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14086var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14116var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14156var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14235var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14265var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14294var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14338var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14366var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14420var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14445var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14469var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14501var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14538var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14684var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14733var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14781var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14828var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14872var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14929var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14973var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15023var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15081var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15117var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15192comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 15195comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 15247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15303var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15345var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15384var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15500var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15645var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15697var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15727var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15770var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15812var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15854var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15893var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15919var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15948var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15977var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16012var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16047var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16084var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16121var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16144var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16182var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16230var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16282var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16317var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16356var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16391var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16432var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16482var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16533var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16578var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16670var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16877var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16906var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16940var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16970var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16973comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 16976comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 17008var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17034var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17045comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17048comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17079var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17095comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17098comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17128var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17162var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17212var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17234var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17266var compilation = CreateCompilation(source); 17294var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17333var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17387var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 17414var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17441var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17468var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17495var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17540var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17658var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17733var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17775var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17810var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17846var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17904var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17987var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18010var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18046var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18082var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18118var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18167var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18217var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18243var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18274var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18302var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18331var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18370var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18402var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18433var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18463var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18503var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18540var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18638var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18711var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18773var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18795var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18818var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18821comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 18824comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11); 18865var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18950var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19000var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19064var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19086var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19122var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19157var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19199var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19287var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19334var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19367var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19422var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19488var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19525var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19566var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19604var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19642var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19680var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19717var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19746var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19781var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19844var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19882var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19923var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19981var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20119comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20168var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20319comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20350CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 20381var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20441var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20578comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20627var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20778comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20812CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 20843var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20892var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20995comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21027CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21072CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21090CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21092CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21123CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21140CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21142CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21174CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21189CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21191CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21241CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21253CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21255CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21281CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21297CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21299CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21325CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21337CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21339CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21388var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21390comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21418CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 21430CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 21431CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21470CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21488CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21490CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21539var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21609comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21656var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21729comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21768CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21799var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 21858var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21928comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21975var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22048comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22090CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22121var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 22169var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22232comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22272CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22325CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22343CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22345CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22384CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22401CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22403CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22443CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22458CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22460CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22508CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22520CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22522CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22548CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22564CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22566CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22592CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22604CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22606CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22655comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22681CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 22693CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 22694CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22731CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22749CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22751CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22772var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22805var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22832var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22856var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 22875var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 22912var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22935var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22971var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22999var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23021var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23054var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23087var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23109var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23160var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23222var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23266var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23289CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 23316CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyDiagnostics(expectedDiagnostics); 23317CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyDiagnostics(expectedDiagnostics);
Semantics\LockTests.cs (27)
205CreateCompilation(source).VerifyDiagnostics( 226CreateCompilation(source).VerifyDiagnostics( 252CreateCompilation(source).VerifyDiagnostics( 278CreateCompilation(source).VerifyDiagnostics( 304CreateCompilation(source).VerifyDiagnostics( 330CreateCompilation(source).VerifyDiagnostics( 357CreateCompilation(source).VerifyDiagnostics( 565CreateCompilation(source).VerifyDiagnostics( 588CreateCompilation(source).VerifyDiagnostics( 614CreateCompilation(source).VerifyDiagnostics( 640CreateCompilation(source).VerifyDiagnostics( 666CreateCompilation(source).VerifyDiagnostics( 692CreateCompilation(source).VerifyDiagnostics( 718CreateCompilation(source).VerifyDiagnostics( 745CreateCompilation(source).VerifyDiagnostics( 867CreateCompilation(source).VerifyDiagnostics( 1107CreateCompilation(source).VerifyDiagnostics( 1133CreateCompilation(source).VerifyDiagnostics( 1159CreateCompilation(source).VerifyDiagnostics( 1198CreateCompilation(source).VerifyDiagnostics( 1224CreateCompilation(source).VerifyDiagnostics( 1250CreateCompilation(source).VerifyDiagnostics( 1276CreateCompilation(source).VerifyDiagnostics( 1511var lib = CreateCompilation(LockTypeDefinition) 1554var lib1 = CreateCompilation(source1) 1585var lib2 = CreateCompilation(source2) 1630CreateCompilation(sources, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Semantics\OutVarTests.cs (152)
50var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 110compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 155var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 378var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 416var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 454var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 530var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 568var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 599var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 653var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 690var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 729var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 770var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 809var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 903var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1400var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1458var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1527var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1561var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1595var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1635var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1673var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1707var compilation = CreateCompilation(text, 1744var compilation = CreateCompilation(text, 1783var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1820var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1852var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1916var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 5014var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17575var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17634var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17669var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17702var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17735var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17774var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17806var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17851var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17882var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17915var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17947var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17987var compilation = CreateCompilation(text, 18017var compilation = CreateCompilation(text, 18061var compilation = CreateCompilation(text, 18092var compilation = CreateCompilation(text, 18131var compilation = CreateCompilation(text, 18172var compilation = CreateCompilation(text, 18215var compilation = CreateCompilation(text, 18258var compilation = CreateCompilation(text, 18297var compilation = CreateCompilation(text, 18342var compilation = CreateCompilation(text, 18373var compilation = CreateCompilation(text, 18425var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18438CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 18489var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18502CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 18536var compilation = CreateCompilation(text, 18581var compilation = CreateCompilation(text, 18633var compilation = CreateCompilation(text, 18679var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18721var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18766var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18788CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular) 18864var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18908var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18950var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18995var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19048var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19091var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19137var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19196var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19243var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19280var compilation = CreateCompilation(text, 19322var compilation = CreateCompilation(text, 19356var compilation = CreateCompilation(text, 19415var compilation = CreateCompilation(text, 19458var compilation = CreateCompilation(text, 19496var compilation = CreateCompilation(text, 19535var compilation = CreateCompilation(text, 19576var compilation = CreateCompilation(text, 19621var compilation = CreateCompilation(text, 19644compilation = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461); 19682var compilation = CreateCompilation(text, 19725var compilation = CreateCompilation(text, 19764var compilation = CreateCompilation(text, 19805var compilation = CreateCompilation(source, 19834var compilation = CreateCompilation(text, 19867var compilation = CreateCompilation(text, 19900var compilation = CreateCompilation(text, 19935var compilation = CreateCompilation(text, 19970var compilation = CreateCompilation(text, 20001var compilation = CreateCompilation(text, 20039var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20179var comp = CreateCompilation(text, options: TestOptions.DebugDll, references: new[] { CSharpRef }); 20199var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 20219var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20247var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20355var compilation = CreateCompilation(source2, references: new[] { reference1 }); 20539var compilation = CreateCompilation(source2, references: new[] { reference1 }, options: TestOptions.DebugExe); 20610var compilation = CreateCompilation(text, 20655var compilation = CreateCompilation(text); 20770var compilation = CreateCompilation(text, 20823var compilation = CreateCompilation(text, 23077var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 32513var compilation = CreateCompilation(new[] { tree }); 33056var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33116var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33170var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33228var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33305var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33328var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33372var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33395var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33422var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33444var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33502var comp = CreateCompilation(source, options: TestOptions.DebugDll); 34237var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34343var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 34452var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34557var compilation = CreateCompilation(syntaxTree, options: TestOptions.DebugExe); 34653var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35174var compilation = CreateCompilation(source); 35213var compilation = CreateCompilation(source); 35257var compilation = CreateCompilation(source); 35288var compilation = CreateCompilation(source); 35327var compilation = CreateCompilation(source); 35359var compilation = CreateCompilation(source); 35395var compilation = CreateCompilation(source); 35434var compilation = CreateCompilation(source); 35464var compilation = CreateCompilation(source); 35501var compilation = CreateCompilation(source); 35536var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 35659var comp = CreateCompilation(source); 35692var comp = CreateCompilation(source, options: TestOptions.DebugDll); 35733var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35760var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35796var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35837var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35883var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35977var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36117var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36225var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36318var compilation = CreateCompilation(text); 36349var comp = CreateCompilation(source); 36396var comp = CreateCompilation(source); 36435var comp = CreateCompilation(source); 36477var comp = CreateCompilation(source); 36517var comp = CreateCompilation(source).VerifyDiagnostics( 36555var comp = CreateCompilation(source).VerifyDiagnostics(
Semantics\ParamsCollectionTests.cs (262)
97var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 199var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 277var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 315var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 459var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 495var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 590var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 643var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 721var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 779var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 828var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 878var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 978var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1010var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1130var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1195var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 1320var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1387var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1465var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1514var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1563var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1600var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1648var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1696var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1738var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1791var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1845var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1897var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1942var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1986var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2030var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2070var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2111var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2146var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2197var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2246var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2296var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2354var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2414var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2461var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2511var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2647var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2708var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2735var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2772comp = CreateCompilation(src2, options: TestOptions.ReleaseExe); 2786comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2919CreateCompilation(src).VerifyEmitDiagnostics(); 2937var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2970comp = CreateCompilation(src2, options: TestOptions.ReleaseExe); 2981comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 3182var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3307var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3531var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3848var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3976var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 3979comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 3982comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4016var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4070var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4073comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4076comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4083var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4141comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4144comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4185var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4188comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4191comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4198var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4309var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4312comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4315comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4322var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4398var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4442var comp = CreateCompilation(src1 + src2, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4445var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4449var comp3 = CreateCompilation(src1 + ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4511var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4514var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4619var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4664var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4667var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4741var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4770var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4808var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4859var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4897var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 5068var comp = CreateCompilation( 5178var comp = CreateCompilation( 5283var comp = CreateCompilation( 5451var comp = CreateCompilation( 5494var comp = CreateCompilation( 5515comp = CreateCompilation( 5551CreateCompilation( 5669var comp = CreateCompilation( 5700var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5764CreateCompilation(source).VerifyDiagnostics( 5840var comp = CreateCompilation( 5879var comp = CreateCompilation( 5924var comp = CreateCompilation( 5961var comp = CreateCompilation( 6012var comp = CreateCompilation( 6056var comp = CreateCompilation( 6091var comp = CreateCompilation(source); 6129var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6156var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6229var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6311var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6347var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 6397var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 6511var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6540var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6562var comp0Ref = CreateCompilation(src0).EmitToImageReference(); 6618var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6640var comp0Ref = CreateCompilation(src0).EmitToImageReference(); 6696var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6733var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6770var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6812var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6854var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6875var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 6900var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6936var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6971var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7002var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7047var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7074var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7103var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7128var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7155var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7180var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7228var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7257var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 7342var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7381var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 7434var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 7546var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7579var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7620var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7661var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7707var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7753var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7774var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 7802var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7846var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7889var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7938var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7980var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 8066var comp1Ref = CreateCompilation(src1).EmitToImageReference(); 8152var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8184var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8221var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8249var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8318var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8383var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8466var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8531var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8565var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8604var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8666comp = CreateCompilation( 8688comp = CreateCompilation( 8712comp = CreateCompilation( 8737comp = CreateCompilation( 8767comp = CreateCompilation( 8787comp = CreateCompilation( 8811comp = CreateCompilation( 8836comp = CreateCompilation( 8866comp = CreateCompilation( 8889comp = CreateCompilation( 8909comp = CreateCompilation( 8930comp = CreateCompilation( 8950comp = CreateCompilation( 8972comp = CreateCompilation( 9273var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9314var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9366var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9420var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9478var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9535var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9605var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9693var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9760var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9801var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9853var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9961var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10014var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10068var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10124var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10254var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10300var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12523var comp = CreateCompilation(source, options: TestOptions.DebugExe); 12654CreateCompilation(source).VerifyDiagnostics( 12760var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12764var comp1 = CreateCompilation(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12770var comp3 = CreateCompilation(src1, references, options: TestOptions.ReleaseModule); 12788var comp5 = CreateCompilation(brokenParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12944CreateCompilation(src).VerifyEmitDiagnostics( 13021CreateCompilation(src).VerifyEmitDiagnostics( 13337var comp1 = CreateCompilation(src1); 13403var comp1 = CreateCompilation(src1); 13467var comp1 = CreateCompilation(src1); 13507var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13608var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13724var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13772var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13828var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13870var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13918var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13974var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14016var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14072var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14114var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14186var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14266var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14340var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14390var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14438var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14501var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14550var comp = CreateCompilation(source).VerifyEmitDiagnostics( 14641var comp = CreateCompilation(source).VerifyEmitDiagnostics( 14725CreateCompilation(source).VerifyEmitDiagnostics( 14761var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 14840CreateCompilation(source).VerifyEmitDiagnostics(); 14862CreateCompilation(source).VerifyEmitDiagnostics( 14887CreateCompilation(source).VerifyEmitDiagnostics( 14913CreateCompilation(source).VerifyEmitDiagnostics(); 14935CreateCompilation(source).VerifyEmitDiagnostics( 14964CreateCompilation(source).VerifyEmitDiagnostics( 15000CreateCompilation(source).VerifyEmitDiagnostics( 15033CreateCompilation(source).VerifyEmitDiagnostics( 15064var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15107var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15179var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15248var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15270var comp = CreateCompilation(src); 15294var comp = CreateCompilation(src); 15346var comp = CreateCompilation(src); 15421var comp = CreateCompilation(src); 15634CreateCompilation(src).VerifyEmitDiagnostics( 15828CreateCompilation(src).VerifyEmitDiagnostics( 15977CreateCompilation(src).VerifyEmitDiagnostics( 16041CreateCompilation(src).VerifyDiagnostics( 16095CreateCompilation(src).VerifyDiagnostics( 16127CreateCompilation(src).VerifyDiagnostics( 16146CreateCompilation(src).VerifyDiagnostics( 16166CreateCompilation(src).VerifyDiagnostics( 16196CreateCompilation(src).VerifyDiagnostics( 16354var comp = CreateCompilation(source); 16398var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16435var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16473var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16567var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll);
Semantics\PatternMatchingTestBase.cs (1)
433return CreateCompilation(new[] { source, _iTupleSource }, options: options ?? TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators);
Semantics\PatternMatchingTests.cs (168)
49CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 73CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 141var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 175var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 212var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 292var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 363var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 437var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 511var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 564var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 606var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 640var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 681var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 731var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 772var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 824var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 883var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 918var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 947var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1042var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1101var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1213var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1263var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1309var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1372var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1422var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1476var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1528var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1584var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1641var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1718var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1777var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1822var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1871var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1924var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1979var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2027var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2071var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2121var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2224var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2284var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2341var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2400var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2491var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2574var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2607var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2656var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2740var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 2785var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2835var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2923var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2964var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3005var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3076var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3162var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3222var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3254var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3329var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3360var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6); 3387var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3412var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3438var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3474var compilation = CreateCompilation(text, 3520CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3544CreateCompilation(source).VerifyDiagnostics( 3567var compilation = CreateCompilation(source).VerifyDiagnostics( 3610CreateCompilation(source).VerifyDiagnostics( 3641CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3689CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3714var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3736compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3773var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3795compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3844var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3910var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3989var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4026var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4064var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 4084compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4138var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4169var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4220var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4563var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4593var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4618var comp = CreateCompilation(source); 4662CreateCompilation(program).VerifyDiagnostics( 4692CreateCompilation(program).VerifyDiagnostics( 4715CreateCompilation(program).VerifyDiagnostics( 4748CreateCompilation(program).VerifyDiagnostics( 4775var compilation = CreateCompilation(program).VerifyDiagnostics( 4819var compilation = CreateCompilation(program).VerifyDiagnostics( 4848var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 4864var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 5055CreateCompilation(program).GetDiagnostics(); 5100var compilation = CreateCompilation(program, options: TestOptions.DebugExe).VerifyDiagnostics( 5143var compilation = CreateCompilation(program).VerifyDiagnostics( 5169var compilation = CreateCompilation(program).VerifyDiagnostics( 5221var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 5250CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 5258CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5317var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5677var compilation = CreateCompilation(source); 5715var compilation = CreateCompilation(source); 5777var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe); 5810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5819compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5853var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5862compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5896var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5905compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5942var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5951compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5988var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5997compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 6025var compilation = CreateCompilation(source); 6072var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6105var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6128CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 6133var compilation = CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 6159var compilation = CreateCompilation(program, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 6224var compilation = CreateCompilation(program, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 6277var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6279compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6298var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6321var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6347var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6368var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6389var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6414var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6438var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6477var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6521var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6547var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6659var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6711var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7314var comp = CreateCompilation(source); 7331comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 7366var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 8557var comp = CreateCompilation(sourceA); 8572comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 10161var comp = CreateCompilation(sourceA); 10176comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 10966var comp = CreateCompilation(sourceA); 11008comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 11324var comp = CreateCompilation(sourceA); 11343comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 11523var comp = CreateCompilation(source); 11589var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11858var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11898var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11941var comp = CreateCompilation(source, options: TestOptions.DebugExe); 12203CreateCompilation(@" 12262CreateCompilation(@"
Semantics\PatternMatchingTests_ListPatterns.cs (106)
970var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithListPatterns); 1650var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 1797var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 1827var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 2598var compilation = CreateCompilation(new[] { source, TestSources.Index }, options: TestOptions.ReleaseExe); 2642var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2740var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2883var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2999var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3059var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3256var missingRef = CreateCompilation(missing_cs, assemblyName: "missing") 3267var lib2Ref = CreateCompilation(lib2_cs, references: new[] { missingRef }) 3282var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }, 3351var missingRef = CreateCompilation(missing_cs, assemblyName: "missing") 3365var lib2Ref = CreateCompilation(new[] { lib2_cs, TestSources.Index, TestSources.Range }, references: new[] { missingRef }) 3378var compilation = CreateCompilation(source, references: new[] { lib2Ref }); 3428var missingComp = CreateCompilation(missing_cs, assemblyName: "missing"); 3431var rangeComp = CreateCompilation(new[] { range_cs, TestSources.Index }, references: new[] { missingComp.EmitToImageReference() }, assemblyName: "range"); 3435var libComp = CreateCompilation(lib_cs, references: new[] { rangeRef }, assemblyName: "lib"); 3450var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference(), rangeRef }); 3479var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3549var missingComp = CreateCompilation(missing_cs, assemblyName: "missing"); 3552var libComp = CreateCompilation(lib_cs, references: new[] { missingComp.EmitToImageReference() }, assemblyName: "lib"); 3555var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }, references: new[] { libComp.EmitToImageReference() }); 3615var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3672var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3708var compilation = CreateCompilation(source); 3830var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3863var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3893var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3924var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3960var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3995var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4052var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4139var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4222var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4284var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4336var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4466var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4526var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 4592var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4625var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5027var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 5121var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5162var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5257var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5307var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5328var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5347var missingRef = CreateCompilation(missing_cs, assemblyName: "missing") 5359var lib2Ref = CreateCompilation(new[] { lib2_cs, TestSources.Index, TestSources.Range }, references: new[] { missingRef }) 5374var compilation = CreateCompilation(source, references: new[] { lib2Ref }); 5412var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5451var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5492var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5536var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5624var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5686var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5734var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range }); 5796var comp = CreateCompilation(new[] { src, TestSources.Index }); 5809comp = CreateCompilation(src); 5883var comp = CreateCompilation(new[] { src, TestSources.Index }); 5932var comp = CreateCompilation(new[] { src, TestSources.Index }); 5959var comp = CreateCompilation(new[] { src, TestSources.Index }); 5983var comp = CreateCompilation(new[] { src, TestSources.Index }); 6022var comp = CreateCompilation(new[] { src, TestSources.Index }); 6052var comp = CreateCompilation(new[] { src, TestSources.Index }); 6076var comp = CreateCompilation(new[] { src, TestSources.Index }); 6097var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range }); 6120var comp = CreateCompilation(new[] { src, TestSources.Index }); 6144var comp = CreateCompilation(new[] { src, TestSources.Index }); 6174var comp = CreateCompilation(new[] { src, TestSources.Index }); 6612var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 7081var compilation = CreateCompilation(new[] { source, TestSources.Index, _iTupleSource }, options: TestOptions.DebugExe); 7149var comp = CreateCompilation(new[] { src, TestSources.Index }); 7451var comp = CreateCompilation(src); 7486var comp = CreateCompilation(new[] { src, TestSources.Index }); 7525var comp = CreateCompilation(new[] { src, TestSources.Index }); 7550var comp = CreateCompilation(new[] { src, TestSources.Index }); 7576var comp = CreateCompilation(new[] { src, TestSources.Index }); 7602var comp = CreateCompilation(new[] { src, TestSources.Index }); 7609comp = CreateCompilation(src); 7862var compilation = CreateCompilation(source); 7892compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 7951var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 7977var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8012var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8057var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, IsExternalInitTypeDefinition }); 8128var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, IsExternalInitTypeDefinition }); 8172var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8192var comp = CreateCompilation(source); 8218var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8232var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8247var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8268var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8289var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8310var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8324var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8345var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseExe); 8437var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 8459var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseDll); 8502var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8538var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8560var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.ITuple }); 9074var comp = CreateCompilation(source); 9099var comp = CreateCompilation(source); 9167var comp = CreateCompilation(source);
Semantics\PatternMatchingTests_NullableTypes.cs (8)
33var comp = CreateCompilation(source); 102var comp = CreateCompilation(source); 185var comp = CreateCompilation(source); 274var comp = CreateCompilation(source); 350var comp = CreateCompilation(source); 432var comp = CreateCompilation(source); 510var comp = CreateCompilation(source); 576var comp = CreateCompilation(source);
Semantics\PatternMatchingTests_Scope.cs (130)
66var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 170var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 279var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 325var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 362var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 398var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 546var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 667var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 819var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 936var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 972var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1118var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1241var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1276var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1390var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1448compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 1721var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2029var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2175compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2301var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2311compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2409var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2463var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2530var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2771var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2778compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2892var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2935compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 3057var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3098var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3225var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3335var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3420var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3504var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3592var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3677var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3768var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3858var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3959var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4130var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4446var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4831var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5332var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5672var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6006var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6090var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6173var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6260var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6331var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6404var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6462var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6507var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6574var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6662var compilation = CreateCompilation(source, 6735var compilation = CreateCompilation(source, 6810var compilation = CreateCompilation(source, 6874var compilation = CreateCompilation(source, 6919var compilation = CreateCompilation(source, 7050var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7167var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7202var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7490var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7525var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7684var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7916var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8145var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8403var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8635var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8873var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9121var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9266var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9631var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9764var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 9908var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 10043var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10155var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10194var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10337var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10516var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10668var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10710var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10943var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11125var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11173var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11223var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11266var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11309var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11355var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11398var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11442var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11489var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11539var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11601var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11654var compilation = CreateCompilation( 11713var compilation = CreateCompilation( 11783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11874var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11968var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12059var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12137var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12183var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12243var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12396var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12589var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12788var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12934var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13023var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13185var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13345var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13432var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13510var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13598var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13675var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13739var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13777var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13807var comp = CreateCompilation(source); 13914var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PatternMatchingTests2.cs (35)
484CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 492CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 777var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 1195compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1198compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1445var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 1970var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1991var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2015var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2056var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2145var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2182var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2204var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2247var compilation = CreateCompilation(source); 2291var compilation = CreateCompilation(source); 2327var compilation = CreateCompilation(source); 2399CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2400CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2434CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2435CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2461CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2519CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2560CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2598CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2636CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2666CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2701CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2733CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2852var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2985CreateCompilation(source).VerifyDiagnostics( 3003CreateCompilation(source).VerifyDiagnostics( 3025CreateCompilation(source).VerifyDiagnostics( 3270var comp = CreateCompilation(source); 3655CreateCompilation(source).VerifyDiagnostics(
Semantics\PatternMatchingTests3.cs (134)
420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 470var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 593var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 636var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 679var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 722var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 746var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 769var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 812var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 854var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 902var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 961var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 989var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1036var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1089var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1142var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1195var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1229CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1243CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1263CreateCompilation(source).VerifyDiagnostics( 1281CreateCompilation(source).VerifyDiagnostics( 1305CreateCompilation(source).VerifyDiagnostics( 1327CreateCompilation(source).VerifyDiagnostics( 1355CompileAndVerify(CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(), expectedOutput: "0"); 1379CompileAndVerify(CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(), expectedOutput: "null"); 1608var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1626CreateCompilation(source).VerifyDiagnostics( 1647CreateCompilation(source).VerifyDiagnostics( 1696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1726var comp = CreateCompilation(source); 1761var comp = CreateCompilation(source); 1793var comp = CreateCompilation(source); 1825var comp = CreateCompilation(source); 1852var compilation = CreateCompilation(source); 1918var compilation = CreateCompilation(source); 1997var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2093var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2237var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2335var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2366var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2424var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2470var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2501var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2541var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2579var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2608var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2650var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2666var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2692var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2720var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2743var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2814var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2873var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2914var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3000var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3071var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3140var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3278var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3366var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3488var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3579var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3673var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3760var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3956var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4058var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4617var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4875var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4969var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5046var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators); 5253var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5322var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5536var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5563var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5585var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5608var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5654var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5680var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5704var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators, targetFramework: TargetFramework.NetCoreApp); 5725var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5753var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5791var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5820var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5874var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5909var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5938var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5967var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5988var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6014var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6035var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6076var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6180var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6489var comp = CreateCompilation(source); 6697var comp = CreateCompilation(source); 6723var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6761var comp = CreateCompilation(source); 6819var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6860var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6901var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6926var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6953var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6986var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7013var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7038var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7067var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7097var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7124var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7158var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7192var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7225var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7249var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7273var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7296var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7315var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7335var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7361var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7389var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7418var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7450var compilation = CreateCompilation(source); 7485var compilation = CreateCompilation(source); 7519var compilation = CreateCompilation(source); 7555var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7587var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7613var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7641var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\PatternMatchingTests4.cs (28)
23var comp = CreateCompilation(@" 45var comp = CreateCompilation(@" 90var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 105comp = CreateCompilation(source); 130var comp = CreateCompilation(@" 3077var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3107var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3485CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3503CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3522CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3831CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 3859CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3880CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3902CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3924CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3948CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3975CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4013var comp = CreateCompilation(source); 4075var comp = CreateCompilation(source); 4227var comp = CreateCompilation(source); 4271var comp = CreateCompilation(source); 4317var comp = CreateCompilation(source); 4399var comp = CreateCompilation(source); 4481var comp = CreateCompilation(source); 4563var comp = CreateCompilation(source); 4645var comp = CreateCompilation(source); 4729var comp = CreateCompilation(source); 4822var comp = CreateCompilation(source);
Semantics\PatternMatchingTests5.cs (56)
65var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 172var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 224var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 291var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 339var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 369var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 403var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 422var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 559var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 717var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 745var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 786var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 832var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 886var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 975var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1069var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.UnsafeDebugDll); 1427var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1477var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1558var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1595var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1660var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1695var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1738var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1768var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1800var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1873var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1914var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1936var comp = CreateCompilation(source); 1982var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2026var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2073var ref1 = CreateCompilation(INumberBaseDefinition, assemblyName: "A").EmitToImageReference(); 2074var ref2 = CreateCompilation(INumberBaseDefinition, assemblyName: "B").EmitToImageReference(); 2076var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2120var ref1 = CreateCompilation(INumberBaseDefinition, assemblyName: "A").EmitToImageReference(aliases: ImmutableArray.Create("A")); 2121var ref2 = CreateCompilation(INumberBaseDefinition, assemblyName: "B").EmitToImageReference(); 2123var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2175var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2234var ref1 = CreateCompilation(INumberBaseDefinition, assemblyName: "A").EmitToImageReference(); 2235var ref2 = CreateCompilation(INumberBaseDefinition, assemblyName: "B").EmitToImageReference(); 2237var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2298var ref1 = CreateCompilation(INumberBaseDefinition).EmitToImageReference(aliases: ImmutableArray.Create("A")); 2299var ref2 = CreateCompilation(INumberBaseDefinition).EmitToImageReference(); 2301var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2508var comp = CreateCompilation(source); 2551var comp = CreateCompilation(source); 2580var comp = CreateCompilation(source); 2612var comp = CreateCompilation(source); 2645var comp = CreateCompilation(source); 2683var comp = CreateCompilation(source); 2721var comp = CreateCompilation(source); 2761var comp = CreateCompilation(source); 2869var comp = CreateCompilation(source); 3033var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable)); 3130var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable)); 3353CreateCompilation(source).VerifyDiagnostics(
Semantics\PatternSwitchTests.cs (77)
39var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 68var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 96var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 161var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 189var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 273var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 300var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 426var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 452var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 503var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 531var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 557var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 580var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 603var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 626var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 649var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 691var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 841var compilation = CreateCompilation(new[] { source, _iTupleSource }, options: TestOptions.DebugExe); 900var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 928var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 954var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 978CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 983CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1016CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1032var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1078var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1217var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1512var compilation = CreateCompilation(source); 1558var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1588var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1623var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1688var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8); 1862var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1920var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1966var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2006var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2049var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2080var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2109var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2156var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2218var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2274var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2332var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2381var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2706var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2748var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2778var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2809var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2837var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2865var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2894var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2925var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2987var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3053var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3100var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3138var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3229var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3276var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3318var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3380var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3439var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3464var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3491var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3521var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3533var comp = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PrimaryConstructorTests.cs (437)
59var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 66comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 69comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 85var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 92comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 99comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 114var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 121comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 124comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 156var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 163comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 166comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 181var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 191comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 198comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 217var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 224comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 227comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 242var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 252comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 259comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 279var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 296comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 313var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 320comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 323comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 334var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 337comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 340comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 354comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 357comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 365var comp = CreateCompilation(@" 400var comp = CreateCompilation(keyword + @" C(int x, string y);"); 468var comp = CreateCompilation(@" 504var comp = CreateCompilation(src + src2); 507comp = CreateCompilation(src); 508var comp2 = CreateCompilation(src2, references: new[] { comp.EmitToImageReference() }); 516var comp = CreateCompilation(@" 542var comp = CreateCompilation(@" 565var comp = CreateCompilation(@" 607var comp = CreateCompilation(keyword + @" C();"); 659var comp = CreateCompilation(@" 693var comp = CreateCompilation(@" 749var comp = CreateCompilation(@" 793var comp = CreateCompilation(@" 813var comp = CreateCompilation(@" 854var comp = CreateCompilation(src); 890var comp = CreateCompilation(src); 926var comp = CreateCompilation(src); 956var comp = CreateCompilation(src); 985var comp = CreateCompilation(src, options: TestOptions.DebugExe); 1067var comp = CreateCompilation(src); 1289var comp = CreateCompilation(src); 1355var comp = CreateCompilation(src); 1401var comp = CreateCompilation(src); 1454var comp = CreateCompilation(src); 1516var comp = CreateCompilation(src); 1605var comp = CreateCompilation(src); 1690var comp = CreateCompilation(src); 1717var comp = CreateCompilation(src); 1743var comp = CreateCompilation(src); 1775var comp = CreateCompilation(src); 1801var comp = CreateCompilation(src); 1843var comp = CreateCompilation(src); 1883var comp = CreateCompilation(src); 2032var comp = CreateCompilation(src); 2066var comp = CreateCompilation(src); 2100var comp = CreateCompilation(src); 2282var comp = CreateCompilation(src); 2412var comp = CreateCompilation(src); 2451var comp = CreateCompilation(src); 2503var comp = CreateCompilation(src); 2522var comp = CreateCompilation(src); 2544var comp = CreateCompilation(src); 2563var comp = CreateCompilation(src); 2579var comp = CreateCompilation(src); 2606var comp = CreateCompilation(src); 2636var comp = CreateCompilation(src); 2669var comp = CreateCompilation(src); 2703var comp = CreateCompilation(src); 2747var comp = CreateCompilation(src); 2837var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2859var comp = CreateCompilation(src); 2889var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2914var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2940var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2953var comp = CreateCompilation(src); 2982var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3006var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3086var comp = CreateCompilation(source); 3135var comp = CreateCompilation(source); 3189var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3193comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3197comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 3241var comp = CreateCompilation(source); 3267var comp = CreateCompilation(source); 3300var comp = CreateCompilation(source); 3344var comp = CreateCompilation(source); 3375var comp = CreateCompilation(source); 3396var comp = CreateCompilation(source); 3431var comp = CreateCompilation(source); 3487var comp = CreateCompilation(source); 3532var comp = CreateCompilation(source); 3550var comp = CreateCompilation(source); 3576var comp = CreateCompilation(source); 3599var comp = CreateCompilation(source); 3621var comp = CreateCompilation(source); 3643var comp = CreateCompilation(source); 3680var comp = CreateCompilation(text1); 4051var comp = CreateCompilation(text1); 4129var comp = CreateCompilation(text1); 4264var comp = CreateCompilation(text1); 4480var comp = CreateCompilation(text1); 4586var comp = CreateCompilation(text1); 4794var comp = CreateCompilation(text1); 4899var comp = CreateCompilation(text1); 5112var comp = CreateCompilation(text1); 5215var comp = CreateCompilation(text1); 5454var comp = CreateCompilation(text1); 5533var comp = CreateCompilation(text1); 5658var comp = CreateCompilation(text1); 5761var comp = CreateCompilation(text1); 5817var comp = CreateCompilation(text1); 5889var comp = CreateCompilation(text1); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6080var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6127var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6164var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6186var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6207var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6230var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6257var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6282var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6320var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6350var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6418var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6453var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6488var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6528var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6568var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6611var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6652var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6697var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6739var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6785var compilation1 = CreateCompilation(source1, targetFramework: TargetFramework.Net60); 6805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 6827var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 6853var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 6879var comp = CreateCompilation(source); 6904var comp = CreateCompilation(src); 6932var comp = CreateCompilation(src); 6960var comp = CreateCompilation(src); 6988var comp = CreateCompilation(src); 7107var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 7790var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 8304var comp = CreateCompilation(src); 8348var comp = CreateCompilation(src); 8414var comp = CreateCompilation(src); 8525var comp = CreateCompilation(src); 8612var comp = CreateCompilation(src); 8653var comp = CreateCompilation(src); 8752var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9158var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9337var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9360var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9415var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9474var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9516var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9538var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 9572var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9877var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9907var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9937var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9990var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10013var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10035var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10145var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10184var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10219var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10262var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10335var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10375var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10407var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10443var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10482var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10521var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10557var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10593var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10632var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10671var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10714var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10782var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10818var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10869var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10913var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10957var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11000var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11043var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11085var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11165var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11230var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11257var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11295var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11330var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11362var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11393var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11436var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11511var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11554var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11597var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11777var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11828var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11941var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 11988var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseExe); 12055var comp2 = CreateCompilation(source2); 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12149var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12242var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12315var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12392var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12485var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12517var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12540var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12564var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12596var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12619var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12664var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12687var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12716var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12739var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12778var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12829var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12870var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12885CreateCompilation(@" 12921CreateCompilation(@" 12949CreateCompilation(@" 12975CreateCompilation(@" 13014CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13039CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 13058CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13085CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13117CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13149CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13183CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13221CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13265CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13298CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13335CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13396CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13426CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13489CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13520CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13562CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13615CreateCompilation(text).VerifyEmitDiagnostics(); 13661CreateCompilation(text).VerifyEmitDiagnostics( 13730CreateCompilation(text).VerifyEmitDiagnostics( 13776CreateCompilation(text).VerifyEmitDiagnostics(); 13791CreateCompilation(text).VerifyEmitDiagnostics( 13815CreateCompilation(text).VerifyEmitDiagnostics( 13861CreateCompilation(text).VerifyEmitDiagnostics(); 13875CreateCompilation(text).VerifyEmitDiagnostics(); 13896CreateCompilation(new[] { text1, text2 }).VerifyEmitDiagnostics( 13902CreateCompilation(new[] { text2, text1 }).VerifyEmitDiagnostics( 13937var comp = CreateCompilation(source); 13974var comp = CreateCompilation(source); 14007var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14048var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14197CreateCompilation(text).VerifyEmitDiagnostics( 14280CreateCompilation(text).VerifyEmitDiagnostics( 14369var comp = CreateCompilation(source); 14412var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14449var comp = CreateCompilation(source); 14473var comp = CreateCompilation(source); 14494var comp = CreateCompilation(source); 14520var comp = CreateCompilation(source1 + source2); 14528comp = CreateCompilation(source2 + source1); 14546var comp = CreateCompilation(source); 14560var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14590var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14594comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14611var comp = CreateCompilation(source); 14658var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 14684var comp = CreateCompilation(source); 14713var comp = CreateCompilation(source); 14742var comp = CreateCompilation(source); 14771var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 14798var comp = CreateCompilation(source); 14835var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14852var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14874var comp = CreateCompilation(source); 14894var comp = CreateCompilation(source); 14936var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 14975var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15008var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15060var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 15091var comp = CreateCompilation(source); 15125var comp = CreateCompilation(source); 15159var comp = CreateCompilation(source); 15193var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15225var comp = CreateCompilation(source); 15267var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15289var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15316var comp = CreateCompilation(source); 15341var comp = CreateCompilation(source); 15388var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15448var comp = CreateCompilation(source); 15474var comp = CreateCompilation(source); 15496var comp = CreateCompilation(source); 15515var comp = CreateCompilation(source); 15542var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 15574var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 15596var comp = CreateCompilation(source); 15615var comp = CreateCompilation(source); 15648var comp = CreateCompilation(source); 15689var comp = CreateCompilation(source); 15710var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15732var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15753var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15774var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15832var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16062var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16083var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16108var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16126var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16152var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16178var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16196var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16214var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16240var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16266var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16292var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16318var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16339var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16404var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 16586var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 16818var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17075var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17363var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17421var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17517var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17606var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17737var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17946var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18208var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 18502var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18844var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19014var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19237var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19311var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19464var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19547var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19596var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19669var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19694var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19724var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19749var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19770var comp = CreateCompilation(new[] { source1, source2 }); 19929var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19952var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20064var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20129var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20164var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20207var comp = CreateCompilation(src); 20237var comp = CreateCompilation(source); 20261var comp = CreateCompilation(source); 20303var comp = CreateCompilation(new[] { source1, source2 }); 20350var comp = CreateCompilation(new[] { source1, source2 }); 20383var comp = CreateCompilation(new[] { source1, source2 }); 20444var comp = CreateCompilation(new[] { source1, source2, source3 }); 20467var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20501var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20549var comp = CreateCompilation(src1, targetFramework: TargetFramework.Mscorlib461Extended); 20573var comp = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 20593var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20626var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20667var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20711var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20758var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20814var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20846var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20878var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20910var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20932var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20954var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20983var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21005var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21039var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21076var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21110var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21182var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21217var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21252var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21285var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21316var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21345var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21385var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21453var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21502var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21545var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21584var comp = CreateCompilation(source1 + source2 + source3, options: TestOptions.ReleaseDll); 21594comp = CreateCompilation(source2 + source1 + source3, options: TestOptions.ReleaseDll); 21626var comp = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.ReleaseDll); 21667var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21732var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21793var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21854var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 21909var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 21928var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21977var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22042var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22068var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22094var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22125var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22192var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseDll); 22258var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22296var comp = CreateCompilation(source); 22341var comp = CreateCompilation(source);
Semantics\RecordTests.cs (256)
24=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 51var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 63comp = CreateCompilation(src2, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 75comp = CreateCompilation(src3, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 94comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 104comp = CreateCompilation(src2, parseOptions: TestOptions.Regular9); 110comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 144var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8); 157comp = CreateCompilation(src2, parseOptions: TestOptions.Regular8); 167comp = CreateCompilation(src3, parseOptions: TestOptions.Regular8); 200var comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 228comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 235comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 259var comp = CreateCompilation(src, references: new[] { AsReference(lib_comp, useCompilationReference) }); 780var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 800var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 855var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 1054var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1190var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1209comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1249var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1352var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1411var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugExe); 1448var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1714var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 2468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2483var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2811comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 2818comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3155var comp = CreateCompilation(src, options: TestOptions.DebugExe); 4211var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4236var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_12", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4242var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4256var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4271var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4277var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_13", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4283var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4295var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4311var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4341var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4366var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_15", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4372var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4386var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4428var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4434var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_16", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4440var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4452var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4477var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4916var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 4991var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5068var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5235var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5267var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5327var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5347var comp = CreateCompilation(src, options: TestOptions.DebugExe); 5374var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5453var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5508var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5547var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5588var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5654var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5717var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5766var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5788var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5883var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9, options: TestOptions.DebugExe); 5914var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5937var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5963var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6006var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6088var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6128var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6152var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6176var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7187var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7300var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7320var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7487var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7587var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7612var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 8813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9807comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 9925var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10585comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 10796var comp = CreateCompilation(new[] { sourceA, sourceB, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 10826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10874comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10958var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11029var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11119var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11331var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11545var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11781var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12196var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12281var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12360var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12465var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12522var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12577var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12686var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12720var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12903var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 12946var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13004var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13059var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13181var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13221var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13308var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13321var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13340var compA = CreateCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, assemblyName: "AssemblyA", parseOptions: TestOptions.Regular9); 13346var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13355var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13358var compB2 = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB2"); 13500var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 13980var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14006var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14072var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 14449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14462comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15722var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 18038var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18112var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18147var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18259var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18363var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18416var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18483var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18507var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18613var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18688var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18790var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18821var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18861var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18905var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18972var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19020var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19093var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19191var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19499var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 20031var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20131var comp = CreateCompilation(src, options: TestOptions.DebugExe); 20283var comp = CreateCompilation(src, options: TestOptions.DebugExe); 22524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22693var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22806var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22912var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23019var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23366var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23533var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23567var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23607var comp = CreateCompilation(source, targetFramework: TargetFramework.NetLatest); 23714var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23754var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23805comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 23831var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23929var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23998var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24116var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24179var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24615var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24869var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24914var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24941var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24961var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24998var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25032var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25563var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25611var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25653CSharpCompilation c = CreateCompilation(@" 25979var comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 27691var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 27896var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27897var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 27919var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27920var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 28109var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 28132var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28179var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 28222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, assemblyName: "Test"); 28284var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28335var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28370var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28400var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28429var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28460var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28493var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28539var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28577var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28624var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28671var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28719var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28767var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28819var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28872var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28929var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28979var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29037var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29094var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29165var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29190var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29215var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29241var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29248comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 29280var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29315var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29368var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29406var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29444var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29475var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29485comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29548var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29579var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29600var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29613var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29645var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29648comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29680comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29698var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29725var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29763var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29786var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29823var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29855var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29881var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29910var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29934var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 29958var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 30193var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 30307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 30366var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30441var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetCoreApp); 30444comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Mscorlib461Extended);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (10)
EndToEndTests.cs (10)
168var compilation = CreateCompilation(source, options: options); 249var compilation = CreateCompilation(source, options: options); 323var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false)); 449var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 486var comp = CreateCompilation(source); 578var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 603var comp = CreateCompilation(sb.ToString()); 760var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 797Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 861var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (309)
IOperation\FunctionPointerOperations.cs (1)
19return CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests.cs (13)
24var comp = CreateCompilation(@" 70var comp = CreateCompilation(@" 104var comp = CreateCompilation(@" 166var comp = CreateCompilation(@" 258var comp = CreateCompilation(tree); 350var comp = CreateCompilation(tree); 405var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 505var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 553var comp = CreateCompilation(text); 573var compilation = CreateCompilation(@" 598var compilation = CreateCompilation(@" 660var compilation = CreateCompilation(source); 709var comp = CreateCompilation(source);
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
844var compilation = CreateCompilation(source); 899var compilation = CreateCompilation(source);
IOperation\IOperationTests_IArgument.cs (26)
1249VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(CreateCompilation(new[] { source1, source0 }), expectedOperationTree, expectedDiagnostics0And1); 1257var lib0 = CreateCompilation(source0).ToMetadataReference(); 1258VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(CreateCompilation(new[] { source1 }, references: new[] { lib0 }), expectedOperationTree, expectedDiagnostics1); 1260CreateCompilation(new[] { source1 }, references: new[] { lib0 }).VerifyEmitDiagnostics(expectedDiagnostics1); 1466var comp = CreateCompilation(new[] { source1, source0 }); 1470var comp0 = CreateCompilation(source0); 1473var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1512var comp = CreateCompilation(new[] { source1, source0 }); 1516var comp0 = CreateCompilation(source0); 1519var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1558var comp = CreateCompilation(new[] { source1, source0 }); 1562var comp0 = CreateCompilation(source0); 1565var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1603var comp = CreateCompilation(new[] { source1, source0 }); 1607var comp0 = CreateCompilation(source0); 1610var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1649var comp = CreateCompilation(new[] { source1, source0 }); 1653var comp0 = CreateCompilation(source0); 1656var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 2852var comp = CreateCompilation(source); 2898var comp = CreateCompilation(source); 2947var comp = CreateCompilation(source); 3065var compilation = CreateCompilation(source); 4013var comp = CreateCompilation(source); 4051var comp = CreateCompilation(source); 4092var comp = CreateCompilation(source);
IOperation\IOperationTests_IBlock.cs (13)
35var compilation = CreateCompilation(source); 85var compilation = CreateCompilation(source); 120var compilation = CreateCompilation(source); 193var compilation = CreateCompilation(source); 254var compilation = CreateCompilation(source); 291var compilation = CreateCompilation(source); 364var compilation = CreateCompilation(source); 412var compilation = CreateCompilation(source); 457var compilation = CreateCompilation(source); 538var compilation = CreateCompilation(source); 616var compilation = CreateCompilation(source); 685var compilation = CreateCompilation(source); 804var compilation = CreateCompilation(source);
IOperation\IOperationTests_IBranchOperation.cs (17)
30var compilation = CreateCompilation(source); 65var compilation = CreateCompilation(source); 129var compilation = CreateCompilation(source); 197var compilation = CreateCompilation(source); 265var compilation = CreateCompilation(source); 326var compilation = CreateCompilation(source); 369var compilation = CreateCompilation(source); 420var compilation = CreateCompilation(source); 470var compilation = CreateCompilation(source); 541var compilation = CreateCompilation(source); 594var compilation = CreateCompilation(source); 667var compilation = CreateCompilation(source); 721var compilation = CreateCompilation(source); 1156var compilation = CreateCompilation(source); 1199var compilation = CreateCompilation(source); 1248var compilation = CreateCompilation(source); 1311var compilation = CreateCompilation(source);
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
377var compilation = CreateCompilation(source);
IOperation\IOperationTests_ICoalesceAssignmentOperation.cs (2)
223var comp = CreateCompilation(@" 309var comp = CreateCompilation(@"
IOperation\IOperationTests_ICoalesceOperation.cs (13)
31var compilation = CreateCompilation(source); 142var compilation = CreateCompilation(source); 257var compilation = CreateCompilation(source); 372var compilation = CreateCompilation(source); 484var compilation = CreateCompilation(source); 601var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore); 716var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore); 828var compilation = CreateCompilation(source); 946var compilation = CreateCompilation(source); 1048var compilation = CreateCompilation(source); 1163var compilation = CreateCompilation(source); 1271var compilation = CreateCompilation(source); 1427var compilation = CreateCompilation(source);
IOperation\IOperationTests_IConditionalAccessExpression.cs (2)
131var comp = CreateCompilation(source); 1435var comp = CreateCompilation(@"
IOperation\IOperationTests_IConstructorBodyOperation.cs (18)
26var compilation = CreateCompilation(source); 55var compilation = CreateCompilation(source); 118var compilation = CreateCompilation(source); 184var compilation = CreateCompilation(source); 252var compilation = CreateCompilation(source); 318var compilation = CreateCompilation(source); 387var compilation = CreateCompilation(source); 476var compilation = CreateCompilation(source); 504var compilation = CreateCompilation(source); 578var compilation = CreateCompilation(source); 646var compilation = CreateCompilation(source); 716var compilation = CreateCompilation(source); 785var compilation = CreateCompilation(source); 855var compilation = CreateCompilation(source); 950var compilation = CreateCompilation(source); 1061var compilation = CreateCompilation(source); 1085var compilation = CreateCompilation(source); 1152var compilation = CreateCompilation(source);
IOperation\IOperationTests_IConversionExpression.cs (3)
3402var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 5288var compilation = CreateCompilation(source); 5319var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IDelegateCreationExpression.cs (1)
2045var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
IOperation\IOperationTests_IFieldReferenceExpression.cs (2)
696var compWithoutNullable = CreateCompilation(program); 697var compWithNullable = CreateCompilation(program, options: WithNullableEnable());
IOperation\IOperationTests_IFixedStatement.cs (1)
688var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IForEachLoopStatement.cs (19)
2779var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 2911var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 3003var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 5868var compilation = CreateCompilation(@" 5992var compilation = CreateCompilation(@" 6116var compilation = CreateCompilation(@" 6234var compilation = CreateCompilation(@" 6497var compilation = CreateCompilation(@" 6773var comp = CreateCompilation(@" 6915var comp = CreateCompilation(@" 7009var comp = CreateCompilation(@" 7341var comp = CreateCompilation(@" 7591var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7675var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7721var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7808var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7859var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7954var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 8003var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IInlineArrayAccessOperation.cs (10)
48var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 90var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 180var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 273var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 399var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 426var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 472var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 568var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 657var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 800var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IInterpolatedStringOperation.cs (1)
4851var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) });
IOperation\IOperationTests_IIsPatternExpression.cs (12)
712var compilation = CreateCompilation(source); 1317var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }, parseOptions: TestOptions.Regular8); 1390var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }); 1433var compilation = CreateCompilation(source); 1480var compilation = CreateCompilation(source); 1524var compilation = CreateCompilation(source); 1571var compilation = CreateCompilation(source); 1616var compilation = CreateCompilation(source); 1661var compilation = CreateCompilation(source); 2330var comp = CreateCompilation(source); 2437var comp = CreateCompilation(source); 2478var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray });
IOperation\IOperationTests_ILocalFunctionStatement.cs (2)
1790var compilation = CreateCompilation(source); 1845var compilation = CreateCompilation(source);
IOperation\IOperationTests_IMethodBodyOperation.cs (27)
28var compilation = CreateCompilation(source); 51var compilation = CreateCompilation(source); 104var compilation = CreateCompilation(source); 160var compilation = CreateCompilation(source); 238var compilation = CreateCompilation(source); 280var compilation = CreateCompilation(source); 323var compilation = CreateCompilation(source); 390var compilation = CreateCompilation(source); 439var compilation = CreateCompilation(source); 496var compilation = CreateCompilation(source); 551var compilation = CreateCompilation(source); 576var compilation = CreateCompilation(source); 608var compilation = CreateCompilation(source); 646var compilation = CreateCompilation(source); 693var compilation = CreateCompilation(source); 718var compilation = CreateCompilation(source); 750var compilation = CreateCompilation(source); 788var compilation = CreateCompilation(source); 835var compilation = CreateCompilation(source); 860var compilation = CreateCompilation(source); 892var compilation = CreateCompilation(source); 927var compilation = CreateCompilation(source); 971var compilation = CreateCompilation(source); 995var compilation = CreateCompilation(source); 1030var compilation = CreateCompilation(source); 1069var compilation = CreateCompilation(source); 1113var compilation = CreateCompilation(source);
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
43var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 102var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 159var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 209var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 301var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 391var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 458var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll);
IOperation\IOperationTests_IObjectCreationExpression.cs (15)
171var comp = CreateCompilation(@" 705var comp = CreateCompilation(@" 1017var comp = CreateCompilation(@" 1249var comp = CreateCompilation(@" 1377var comp = CreateCompilation("_ = new int[/*<bind>*/new(bad)/*</bind>*/];"); 1397var comp = CreateCompilation(@" 1427var comp = CreateCompilation(source); 1455var comp = CreateCompilation(source); 1483var comp = CreateCompilation(source); 1503var comp = CreateCompilation(@" 2234var comp = CreateCompilation(@" 2353var comp = CreateCompilation(@" 15059var comp = CreateCompilation(source); 15154var comp = CreateCompilation(source); 15397var comp = CreateCompilation(source);
IOperation\IOperationTests_IParameterReferenceExpression.cs (1)
982var compilation0 = CreateCompilation(sources0);
IOperation\IOperationTests_IPropertyReferenceExpression.cs (2)
1013var comp = CreateCompilation(@" 1051var comp = CreateCompilation(@"
IOperation\IOperationTests_IReturnStatement.cs (28)
156var compilation = CreateCompilation(source); 184var compilation = CreateCompilation(source); 218var compilation = CreateCompilation(source); 263var compilation = CreateCompilation(source); 312var compilation = CreateCompilation(source); 396var compilation = CreateCompilation(source); 448var compilation = CreateCompilation(source); 504var compilation = CreateCompilation(source); 568var compilation = CreateCompilation(source); 633var compilation = CreateCompilation(source); 676var compilation = CreateCompilation(source); 714var compilation = CreateCompilation(source); 782var compilation = CreateCompilation(source); 858var compilation = CreateCompilation(source); 927var compilation = CreateCompilation(source); 1000var compilation = CreateCompilation(source); 1046var compilation = CreateCompilation(source); 1097var compilation = CreateCompilation(source); 1150var compilation = CreateCompilation(source); 1178var compilation = CreateCompilation(source); 1215var compilation = CreateCompilation(source); 1260var compilation = CreateCompilation(source); 1304var compilation = CreateCompilation(source); 1391var compilation = CreateCompilation(source); 1449var compilation = CreateCompilation(source); 1505var compilation = CreateCompilation(source); 1561var compilation = CreateCompilation(source); 1602var compilation = CreateCompilation(source);
IOperation\IOperationTests_ISymbolInitializer.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
IOperation\IOperationTests_IThrowOperation.cs (35)
30var compilation = CreateCompilation(source); 68var compilation = CreateCompilation(source); 127var compilation = CreateCompilation(source); 162var compilation = CreateCompilation(source); 228var compilation = CreateCompilation(source); 302var compilation = CreateCompilation(source); 373var compilation = CreateCompilation(source); 448var compilation = CreateCompilation(source); 523var compilation = CreateCompilation(source); 595var compilation = CreateCompilation(source); 685var compilation = CreateCompilation(source); 750var compilation = CreateCompilation(source); 839var compilation = CreateCompilation(source); 966var compilation = CreateCompilation(source); 1021var compilation = CreateCompilation(source); 1085var compilation = CreateCompilation(source); 1134var compilation = CreateCompilation(source); 1197var compilation = CreateCompilation(source); 1261var compilation = CreateCompilation(source); 1341var compilation = CreateCompilation(source); 1422var compilation = CreateCompilation(source); 1498var compilation = CreateCompilation(source); 1549var compilation = CreateCompilation(source); 1615var compilation = CreateCompilation(source); 1693var compilation = CreateCompilation(source); 1772var compilation = CreateCompilation(source); 1845var compilation = CreateCompilation(source); 1911var compilation = CreateCompilation(source); 1967var compilation = CreateCompilation(source); 2043var compilation = CreateCompilation(source); 2107var compilation = CreateCompilation(source); 2171var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2276var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())); 2375var compilation = CreateCompilation(source); 2477var compilation = CreateCompilation(source);
IOperation\IOperationTests_IUsingStatement.cs (2)
8544var comp = CreateCompilation(@" 8730var comp = CreateCompilation(@"
IOperation\IOperationTests_IVariableDeclaration.cs (1)
923var comp = CreateCompilation(tree);
IOperation\IOperationTests_TryCatch.cs (31)
976var compilation = CreateCompilation(source); 1026var compilation = CreateCompilation(source); 1091var compilation = CreateCompilation(source); 1331var compilation = CreateCompilation(source); 1424var compilation = CreateCompilation(source); 1482var compilation = CreateCompilation(source); 1562var compilation = CreateCompilation(source); 1677var compilation = CreateCompilation(source); 1743var compilation = CreateCompilation(source); 1840var compilation = CreateCompilation(source); 1929var compilation = CreateCompilation(source); 2020var compilation = CreateCompilation(source); 2103var compilation = CreateCompilation(source); 2194var compilation = CreateCompilation(source); 2275var compilation = CreateCompilation(source); 2340var compilation = CreateCompilation(source); 2399var compilation = CreateCompilation(source); 2490var compilation = CreateCompilation(source); 2568var compilation = CreateCompilation(source); 2630var compilation = CreateCompilation(source); 2690var compilation = CreateCompilation(source); 2744var compilation = CreateCompilation(source); 2801var compilation = CreateCompilation(source); 2876var compilation = CreateCompilation(source); 2953var compilation = CreateCompilation(source); 3145var compilation = CreateCompilation(source); 3225var compilation = CreateCompilation(source); 3301var compilation = CreateCompilation(source); 3373var compilation = CreateCompilation(source); 3421var compilation = CreateCompilation(source); 8057var comp = CreateCompilation(source);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11164)
Semantics\AccessCheckTests.cs (49)
24CSharpCompilation c = CreateCompilation(@" 141CSharpCompilation c = CreateCompilation(@" 230CSharpCompilation c = CreateCompilation(@" 349CSharpCompilation c = CreateCompilation(@" 393CSharpCompilation c = CreateCompilation(@" 414CSharpCompilation c = CreateCompilation(@" 440CSharpCompilation c = CreateCompilation(@" 475CSharpCompilation c = CreateCompilation(@" 557CSharpCompilation c = CreateCompilation(@" 578CSharpCompilation c = CreateCompilation(@" 604CSharpCompilation other = CreateCompilation(@" 619CSharpCompilation c = CreateCompilation(@" 654CSharpCompilation other = CreateCompilation(@" 698Compilation c = CreateCompilation(@" 855Compilation otherC = CreateCompilation(@" 867Compilation c1 = CreateCompilation(@" 931Compilation c2 = CreateCompilation(@" 938Compilation c3 = CreateCompilation(@" 955var c = CreateCompilation(source, new[] { r1 }); 981CSharpCompilation other = CreateCompilation(@" 987CSharpCompilation c = CreateCompilation(@" 1001CSharpCompilation other = CreateCompilation(@" 1007CSharpCompilation c = CreateCompilation(@" 1025var other = CreateCompilation(@" 1030CSharpCompilation c = CreateCompilation(@" 1085var compilation1 = CreateCompilation(source1, assemblyName: "A"); 1111var compilation2 = CreateCompilation(source2, assemblyName: "B", references: new[] { reference1 }); 1133var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 1158var compilation1 = CreateCompilation(source1, assemblyName: "A"); 1169var compilation2 = CreateCompilation(source2, assemblyName: "B", references: new[] { reference1 }); 1182var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 1196var compilationA = CreateCompilation(sourceA, assemblyName: "A"); 1208var compilationB = CreateCompilation(sourceB, assemblyName: "B", references: new[] { referenceA }); 1221var compilationC = CreateCompilation(sourceC, assemblyName: "C", references: new[] { referenceA, referenceB }); 1238var compilationA = CreateCompilation(sourceA, assemblyName: "A"); 1249var compilationB = CreateCompilation(sourceB, assemblyName: "B", references: new[] { referenceA }); 1262var compilationC = CreateCompilation(sourceC, assemblyName: "C", references: new[] { referenceA, referenceB }); 1293CreateCompilation(source).GetDiagnostics(); 1320CreateCompilation(source).GetDiagnostics(); 1350CreateCompilation(source).GetDiagnostics(); 1445var comp = CreateCompilation(sourceA); 1457comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: null); 1464comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B"); 1478var comp = CreateCompilation(sourceA); 1490comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: null); 1497comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B"); 1501comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B2"); 1511var comp = CreateCompilation(@" 1521var comp2 = CreateCompilation("class B {}");
Semantics\AccessibilityTests.cs (10)
86CreateCompilation(source).VerifyDiagnostics(); 103CreateCompilation(source).VerifyDiagnostics(); 117CreateCompilation(source).VerifyDiagnostics(); 134CreateCompilation(source).VerifyDiagnostics(); 148CreateCompilation(source).VerifyDiagnostics(); 165CreateCompilation(source).VerifyDiagnostics(); 179CreateCompilation(source).VerifyDiagnostics( 199CreateCompilation(source).VerifyDiagnostics( 259CreateCompilation(source).VerifyDiagnostics( 296CreateCompilation(source).VerifyDiagnostics(
Semantics\AmbiguousOverrideTests.cs (15)
100CreateCompilation(source).VerifyDiagnostics( 130var comp1 = CreateCompilation(text1); 134var comp2 = CreateCompilation(text2, references: ref1, assemblyName: "Test2"); 138var comp = CreateCompilation(text3, ref2, assemblyName: "Test3"); 200var comp = CreateCompilation(source); 262CSharpCompilation comp = CreateCompilation(source); 303CSharpCompilation comp = CreateCompilation(source); 340CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 363CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 384CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 409CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 446CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 474CreateCompilation(text, new[] { asm }).VerifyDiagnostics( 1383var comp = CreateCompilation(text).VerifyDiagnostics( 1400var comp = CreateCompilation(text).VerifyDiagnostics(
Semantics\AnonymousFunctionTests.cs (8)
21=> CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expected); 72CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 977var compilation = CreateCompilation(source); 1011var compilation = CreateCompilation(source); 1318var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1357var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1377var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1398var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (29)
224var comp = CreateCompilation(text); 258var comp = CreateCompilation(text); 295var comp = CreateCompilation(text); 325CreateCompilation(text).VerifyDiagnostics(); 377var comp = CreateCompilation(text); 539var comp = CreateCompilation(text); 602CreateCompilation(text).VerifyDiagnostics( 825var comp = CreateCompilation(text); 957var comp = CreateCompilation(tree); 982var comp = CreateCompilation(text); 1068var comp = CreateCompilation(text); 1100var comp = CreateCompilation(text); 1120var comp = CreateCompilation(text); 1140var comp = CreateCompilation(text); 1160var comp = CreateCompilation(text); 1180var comp = CreateCompilation(text); 1198var comp = CreateCompilation(text); 1216var comp = CreateCompilation(text); 1234var comp = CreateCompilation(text); 1252var comp = CreateCompilation(text); 1278var comp = CreateCompilation(text); 1304var comp = CreateCompilation(text); 1330var comp = CreateCompilation(text); 1370var comp = CreateCompilation(text); 1451CreateCompilation(source).VerifyDiagnostics( 1543CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1567CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1583CreateCompilation(@" 1601CreateCompilation(@"
Semantics\AwaitExpressionTests.cs (2)
80var csCompilation = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp); 291var comp = CreateCompilation(source);
Semantics\BetterCandidates.cs (2)
28return CreateCompilation(source, options: options, references: references, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 33return CreateCompilation(source, options: options, references: references, parseOptions: TestOptions.Regular);
Semantics\BindingAsyncTasklikeMoreTests.cs (4)
1549var compilation = CreateCompilation(source); 1588var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1593compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\BindingAsyncTests.cs (3)
4015var comp = CreateCompilation(src); 4117var comp = CreateCompilation(src); 4176var comp = CreateCompilation(src);
Semantics\BindingTests.cs (88)
36CreateCompilation(text).VerifyDiagnostics(); 58CreateCompilation(source).VerifyDiagnostics(); 81CreateCompilation(source).VerifyDiagnostics(); 101CreateCompilation(source).VerifyDiagnostics(); 126CreateCompilation(source).VerifyDiagnostics( 167CreateCompilation(source).VerifyDiagnostics( 201CreateCompilation(source).VerifyDiagnostics( 246CreateCompilation(source).VerifyDiagnostics( 318CreateCompilation(source).VerifyDiagnostics( 357CreateCompilation(source).VerifyDiagnostics( 384CreateCompilation(source).VerifyDiagnostics(); 400CreateCompilation(source).VerifyDiagnostics( 432CreateCompilation(source).VerifyDiagnostics( 522CreateCompilation(source).VerifyDiagnostics(); 546CreateCompilation(source).VerifyDiagnostics(); 567CreateCompilation(source).VerifyDiagnostics( // (11,13): error CS0103: The name 'x' does not exist in the current context 611CreateCompilation(source).VerifyDiagnostics( 633CreateCompilation(source).VerifyDiagnostics( 660CreateCompilation(source).VerifyDiagnostics( 690CreateCompilation(source).VerifyDiagnostics( 705CreateCompilation(source).VerifyDiagnostics( 740CreateCompilation(source).VerifyDiagnostics( 763var baseAssembly = CreateCompilation( 771var derivedAssembly = CreateCompilation( 780var testAssembly = CreateCompilation( 802var baseAssembly = CreateCompilation( 810var derivedAssembly = CreateCompilation( 819var testAssembly = CreateCompilation( 841var baseAssembly = CreateCompilation( 849var derivedAssembly = CreateCompilation( 858var testAssembly = CreateCompilation( 893var testAssembly = CreateCompilation(scenarioCode); 918var testAssembly = CreateCompilation(scenarioCode); 944var testAssembly = CreateCompilation(scenarioCode); 976var testAssembly = CreateCompilation(scenarioCode); 1008var testAssembly = CreateCompilation(scenarioCode); 1038var testAssembly = CreateCompilation(scenarioCode); 1066var testAssembly = CreateCompilation(scenarioCode); 1097var testAssembly = CreateCompilation(scenarioCode); 1125var testAssembly = CreateCompilation(scenarioCode); 1153var testAssembly = CreateCompilation(scenarioCode); 1182var testAssembly = CreateCompilation(scenarioCode); 1220var testAssembly = CreateCompilation(scenarioCode); 1261var testAssembly = CreateCompilation(scenarioCode); 1311var testAssembly = CreateCompilation(scenarioCode); 1356var testAssembly = CreateCompilation(scenarioCode); 1399var testAssembly = CreateCompilation(scenarioCode); 1441var testAssembly = CreateCompilation(scenarioCode); 1455var testAssembly = CreateCompilation( 1487var testAssembly = CreateCompilation( 1513var testAssembly = CreateCompilation( 1546var testAssembly = CreateCompilation( 1800CreateCompilation(source).VerifyDiagnostics(); 1829CreateCompilation(source).VerifyDiagnostics( 1853CreateCompilation(source).VerifyDiagnostics(); 1869CreateCompilation(source).VerifyDiagnostics( 1889CreateCompilation(source).VerifyDiagnostics(); 1910CreateCompilation(source).VerifyDiagnostics( 1940CreateCompilation(source).VerifyDiagnostics( 2008CreateCompilation(source).VerifyDiagnostics( 2038CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2064var compilation = CreateCompilation(sourceCode); 2115CreateCompilation(source).VerifyDiagnostics( 2134CreateCompilation(source).VerifyDiagnostics( 2175CreateCompilation(source).VerifyDiagnostics( 2188CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2197CreateCompilation(source).VerifyDiagnostics( 2213CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 2251CreateCompilation(source).VerifyDiagnostics(); 2271CreateCompilation(source).VerifyDiagnostics(); 2289CreateCompilation(source).VerifyDiagnostics( 2361var comp = CreateCompilation(source); 2380var comp = CreateCompilation(source); 2532CreateCompilation(source).VerifyDiagnostics( 2554CreateCompilation(source).VerifyDiagnostics(); 2596var comp = CreateCompilation(source); 2627var comp = CreateCompilation(source); 2656var comp = CreateCompilation(source); 2715var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2771var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2907var comp = CreateCompilation(source); 2952var comp = CreateCompilation(source); 3179var comp = CreateCompilation(source); 3715var comp = CreateCompilation(source); 3920var compilation = CreateCompilation(@" 3948var compilation = CreateCompilation(@" 3981var comp = CreateCompilation(source); 4021var comp = CreateCompilation(source);
Semantics\ColorColorTests.cs (27)
165var comp = CreateCompilation(text); 589var comp = CreateCompilation(tree); 629var comp = CreateCompilation(tree); 976CreateCompilation(text).VerifyDiagnostics( 1006CreateCompilation(text).VerifyDiagnostics(); 1032CreateCompilation(text).VerifyDiagnostics(); 1059var comp = CreateCompilation(tree); 1105var comp = CreateCompilation(tree); 1151var comp = CreateCompilation(tree); 1196var comp = CreateCompilation(tree); 1237var comp = CreateCompilation(tree); 1274var comp = CreateCompilation(tree); 1464CreateCompilation(text).VerifyDiagnostics(); 1488CreateCompilation(text).VerifyDiagnostics(); 1580var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1621var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1700var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1878var compilation = CreateCompilation(source); 1935var compilation = CreateCompilation(source); 1992var compilation = CreateCompilation(source); 2042var compilation = CreateCompilation(source); 2179var compilation = CreateCompilation(source, assemblyName: "Main"); 2210var compilation = CreateCompilation(source); 2271var compilation = CreateCompilation(source); 2305var compilation = CreateCompilation(source); 2390CreateCompilation(source).VerifyDiagnostics(
Semantics\ConditionalOperatorTests.cs (9)
226CreateCompilation(source).VerifyDiagnostics(); 1232CreateCompilation(source).VerifyDiagnostics( 1285var comp = CreateCompilation(tree); 1336var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1391var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1438var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1500var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 1520compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1536var comp = CreateCompilation(source);
Semantics\ConstantTests.cs (56)
185var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 780CreateCompilation(source).VerifyDiagnostics( 1713CreateCompilation(source).VerifyDiagnostics( 1811CreateCompilation(source).VerifyDiagnostics( 1840CreateCompilation(source).VerifyDiagnostics( 1875CreateCompilation(source).VerifyDiagnostics( 1943CreateCompilation(text).VerifyDiagnostics( 1954CreateCompilation(text).VerifyDiagnostics( 1971CreateCompilation(text).VerifyDiagnostics( 1998var comp = CreateCompilation(source); 2024var comp = CreateCompilation(source); 2065var comp = CreateCompilation(source); 2139var comp = CreateCompilation(source); 2194var comp = CreateCompilation(source); 2781var compilation = CreateCompilation(source); 2814var compilation = CreateCompilation(source); 2844var compilation1 = CreateCompilation(source1); 2845var compilation2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 2885var compilation1 = CreateCompilation(source1); 2887var compilation2 = CreateCompilation(source2); 2889var compilation3 = CreateCompilation(source3, new MetadataReference[] { reference1 }); 2891var compilation4 = CreateCompilation(source4, new MetadataReference[] { reference2, reference3 }); 2924var comp = CreateCompilation(tree); 2941var compilation = CreateCompilation(tree); 2972var compilation = CreateCompilation(tree); 2998var compilation = CreateCompilation(source); 3030var compilation = CreateCompilation(source); 3085var compilation = CreateCompilation(source); 3117var compilation = CreateCompilation(source); 3175var compilation = CreateCompilation(source); 3210var compilation = CreateCompilation(source); 3264CreateCompilation(source).VerifyDiagnostics(); 3280CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 3311CreateCompilation(source).VerifyDiagnostics( 3330CreateCompilation(source).VerifyDiagnostics( 3348CreateCompilation(source).VerifyDiagnostics( 3362CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3412CreateCompilation(source).VerifyDiagnostics( 3516var comp = CreateCompilation(source.ToString(), options: TestOptions.ReleaseExe); 3626var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3667var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3688var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3724var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3806var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3909comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4070var comp = CreateCompilation(source); 4091var comp = CreateCompilation(source); 4112var comp = CreateCompilation(source); 4128var comp = CreateCompilation(source); 4138var comp = CreateCompilation(source); 4152var comp = CreateCompilation(source); 4165var comp = CreateCompilation(source); 4189var comp = CreateCompilation(source); 4210var comp = CreateCompilation(source);
Semantics\DeconstructionTests.cs (79)
799var comp = CreateCompilation(source, options: TestOptions.DebugExe); 857var comp = CreateCompilation(source); 1284var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 1486var comp = CreateCompilation(source); 1603var libMissingComp = CreateCompilation(new string[] { libMissingSource }, assemblyName: "libMissingComp").VerifyDiagnostics(); 1606var libComp = CreateCompilation(new string[] { libSource }, references: new[] { libMissingRef }, parseOptions: TestOptions.Regular).VerifyDiagnostics(); 1609var comp = CreateCompilation(new string[] { source }, references: new[] { libRef }); 1944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 3155var comp = CreateCompilation(source); 3552var comp = CreateCompilation(source); 3574var comp = CreateCompilation(source); 3597var comp = CreateCompilation(source); 3704var comp = CreateCompilation(source); 3741var comp = CreateCompilation(source); 3791var comp = CreateCompilation(source); 3844var comp = CreateCompilation(source); 3865var comp = CreateCompilation(source); 3883var comp = CreateCompilation(source); 3905var comp = CreateCompilation(source); 3938var comp = CreateCompilation(source); 4033var comp = CreateCompilation(source); 4145var comp = CreateCompilation(source); 4197var comp1 = CreateCompilation(source1); 4228var comp2 = CreateCompilation(source2); 4332var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4363var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4469var comp1 = CreateCompilation(source1); 4497var comp2 = CreateCompilation(source2); 4597var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4619var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4639var comp1 = CreateCompilation(source1); 4655var comp2 = CreateCompilation(source2); 4718var comp1 = CreateCompilation(source1); 4739var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4749var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4811var comp1 = CreateCompilation(source1); 4827var comp2 = CreateCompilation(source2); 4886var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4896var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4916var comp1 = CreateCompilation(source1); 4932var comp2 = CreateCompilation(source2); 4968var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4978var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5020var comp1 = CreateCompilation(source1); 5036var comp2 = CreateCompilation(source2); 5075var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5085var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5104var comp1 = CreateCompilation(source1); 5146var comp1 = CreateCompilation(source1); 5177var comp2 = CreateCompilation(source2); 5290var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5321var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5440var comp1 = CreateCompilation(source1); 5468var comp2 = CreateCompilation(source2); 5577var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5599var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5617var comp1 = CreateCompilation(source1); 5645var comp2 = CreateCompilation(source2); 5727var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5755var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5843var comp1 = CreateCompilation(source1); 5868var comp2 = CreateCompilation(source2); 5943var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5962var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5977var comp = CreateCompilation(source); 6017var comp = CreateCompilation(source); 6060var comp = CreateCompilation(source); 6100var comp = CreateCompilation(source); 6142var comp = CreateCompilation(source); 6279CreateCompilation(text).VerifyEmitDiagnostics( 6317CreateCompilation(text).VerifyEmitDiagnostics( 6343CreateCompilation(text).VerifyEmitDiagnostics( 6378CreateCompilation(text).VerifyEmitDiagnostics( 6406CreateCompilation(source).VerifyEmitDiagnostics( 6440CreateCompilation(source).VerifyEmitDiagnostics( 6549var comp = CreateCompilation(code); 6569CreateCompilation(source).VerifyDiagnostics( 6602CreateCompilation(source).VerifyDiagnostics(
Semantics\DelegateTypeTests.cs (485)
85var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 100comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 140comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 190comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 217var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 232comp = CreateCompilation(source); 268var comp = CreateCompilation(source); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 393var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 481comp = CreateCompilation(source); 535var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 538comp = CreateCompilation(new[] { sourceA, sourceB }); 585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 639comp = CreateCompilation(source); 671var comp = CreateCompilation(source); 737var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 783var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 880var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 981var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1021var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1068var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1199var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1241var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1320var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1366var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1409var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1450var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1542var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseExe); 1622var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 1673var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1723var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1773var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1823var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1873var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1974var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2019var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2068var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2075comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2132comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2187var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2197comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2257comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2310comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2349comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2392comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2439comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2479var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2486comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2534comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2582comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2631comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2680comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2721comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2769var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2773comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2798var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2804comp = CreateCompilation(source); 2824var comp = CreateCompilation(source); 2852var comp = CreateCompilation(source); 2880var comp = CreateCompilation(source); 2911var comp = CreateCompilation(source); 2939var comp = CreateCompilation(source); 2971var comp = CreateCompilation(source); 3006var comp = CreateCompilation(source); 3037var comp = CreateCompilation(source); 3067CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3072var comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 3100CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3105CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3110CreateCompilation(source).VerifyDiagnostics( 3129CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3134CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3139CreateCompilation(source).VerifyDiagnostics( 3169CreateCompilation(source).VerifyDiagnostics( 3211var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3214comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3217comp = CreateCompilation(source); 3242var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3273comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3276comp = CreateCompilation(source); 3294var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3319comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3322comp = CreateCompilation(source); 3340var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3362comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3365comp = CreateCompilation(source); 3466var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3517var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3550var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3556comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 3598var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3646var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3655comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 3680var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3706var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3738var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3855var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3858comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3882var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3885comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3917var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3951var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3983var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4017var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4860var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4915var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4947var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4956comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5096comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5099comp = CreateCompilation(source); 5296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5298comp = CreateCompilation(source); 5323var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5325comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5327comp = CreateCompilation(source); 5355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5357comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5359comp = CreateCompilation(source); 5389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5391comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5393comp = CreateCompilation(source); 5424var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5426comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5428comp = CreateCompilation(source); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5711comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5713comp = CreateCompilation(source); 5789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5828var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5864var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5898var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5930var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5980comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5982comp = CreateCompilation(source); 6003var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6015comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6017comp = CreateCompilation(source); 6037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6066var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6084comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6086comp = CreateCompilation(source); 6167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6169comp = CreateCompilation(source); 6279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6281comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6283comp = CreateCompilation(source); 6303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6382CreateCompilation(source).VerifyDiagnostics( 6403CreateCompilation(source).VerifyDiagnostics( 6427CreateCompilation(source).VerifyDiagnostics( 6487CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6571CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6616CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6661CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6706CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6745CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6997CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7135CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7171CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7207CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7256CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7299CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7338CreateCompilation(source).VerifyDiagnostics( 7508var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7588comp = CreateCompilation(source); 7611var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7642var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7651comp = CreateCompilation(source); 7680var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7730comp = CreateCompilation(source); 7762var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7765comp = CreateCompilation(source); 7789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7860comp = CreateCompilation(source); 7916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7945var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7986comp = CreateCompilation(source); 8023var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8046var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8122var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8150var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8178var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8209var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8316var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8349var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8387var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8515var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8518comp = CreateCompilation(source); 8538var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8547comp = CreateCompilation(source); 8616var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8619comp = CreateCompilation(source); 8652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8655comp = CreateCompilation(source); 8718var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8721comp = CreateCompilation(source); 8754var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8757comp = CreateCompilation(source); 8785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8812var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8827comp = CreateCompilation(source); 8858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8895comp = CreateCompilation(source); 8919var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8926comp = CreateCompilation(source); 8948var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8954comp = CreateCompilation(source); 8977var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8983comp = CreateCompilation(source); 9007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9022comp = CreateCompilation(source); 9051var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9061comp = CreateCompilation(source); 9085var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9092comp = CreateCompilation(source); 9113var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9120comp = CreateCompilation(source); 9152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9173comp = CreateCompilation(source); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9295comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9298comp = CreateCompilation(source); 9322var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9365var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9390comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9393comp = CreateCompilation(source); 9428var comp = CreateCompilation(source); 9463var comp = CreateCompilation(source); 9513var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9556comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9559comp = CreateCompilation(source); 9584var comp = CreateCompilation(source); 9631var comp = CreateCompilation(source); 9684var comp = CreateCompilation(source); 9727var comp = CreateCompilation(source); 9789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9791comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9793comp = CreateCompilation(source); 9892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9894comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9896comp = CreateCompilation(source); 9946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9948comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9950comp = CreateCompilation(source); 10128var comp = CreateCompilation(source); 10152var comp = CreateCompilation(source); 10178var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 10190comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe); 10251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9.WithKind(SourceCodeKind.Script)); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10.WithKind(SourceCodeKind.Script)); 10280var comp = CreateCompilation(source); 10315var comp = CreateCompilation(source); 10341var comp = CreateCompilation(source); 10372var comp = CreateCompilation(source); 10414var comp = CreateCompilation(source); 10433var comp = CreateCompilation(source); 10466var comp = CreateCompilation(source); 10489var comp = CreateCompilation(source); 10513var comp = CreateCompilation(source); 10536var comp = CreateCompilation(source); 10577var comp = CreateCompilation(source); 10617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10619comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10621comp = CreateCompilation(source); 10664var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10699var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10717comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10719comp = CreateCompilation(source); 10741var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10777var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10792comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10794comp = CreateCompilation(source); 10816var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10875var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10887comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10889comp = CreateCompilation(source); 10947var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10970var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11008var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11139var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11193var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11267var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11384var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11475var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11650var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11718var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11757var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11798var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11839var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11928var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11959var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11998var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12106var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12260var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 13108CreateCompilation(source).VerifyDiagnostics( 13162CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 13218CreateCompilation(source).VerifyDiagnostics( 13563var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13598var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13644CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 13680var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13699var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13813var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13832var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13929var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13974var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 14226var comp = CreateCompilation(UnscopedRefAttributeDefinition, targetFramework: TargetFramework.Net60, assemblyName: attributeAssemblyName); 14237comp = CreateCompilation(sourceA, references: new[] { refAttribute }, targetFramework: TargetFramework.Net60); 14252comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net60); 14258comp = CreateCompilation(sourceB, references: new[] { refA, refAttribute }, targetFramework: TargetFramework.Net60); 14301var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 14315comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 14339var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 14436var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 14467var comp = CreateCompilation(source); 14508var comp = CreateCompilation(source); 14577var comp = CreateCompilation(source); 14641var comp = CreateCompilation(source); 14695var comp = CreateCompilation(source); 14740var comp = CreateCompilation(source); 14820var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14823comp = CreateCompilation(source); 14868var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14871comp = CreateCompilation(source); 14938var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14941comp = CreateCompilation(source); 15027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15030comp = CreateCompilation(source); 15087var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15090comp = CreateCompilation(source); 15164var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15167comp = CreateCompilation(source); 15252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15255comp = CreateCompilation(source); 15317var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15320comp = CreateCompilation(source); 15361var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15364comp = CreateCompilation(source); 15414var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15417comp = CreateCompilation(source); 15449var comp = CreateCompilation(source); 15479var comp = CreateCompilation(source); 15509var comp = CreateCompilation(source); 15532var comp = CreateCompilation(source); 15556var comp = CreateCompilation(source); 15977CreateCompilation(source).VerifyDiagnostics( 16039CreateCompilation(source).VerifyDiagnostics( 16064CreateCompilation(source).VerifyDiagnostics( 16085CreateCompilation(source).VerifyDiagnostics( 16104CreateCompilation(source).VerifyDiagnostics(); 16123CreateCompilation(source).VerifyDiagnostics( 16146CreateCompilation(source).VerifyDiagnostics( 16167CreateCompilation(source).VerifyDiagnostics( 16192CreateCompilation(source).VerifyDiagnostics( 16220CreateCompilation(source).VerifyDiagnostics( 16357CreateCompilation(source).VerifyDiagnostics( 16378CreateCompilation(source).VerifyDiagnostics( 16505CreateCompilation(source, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 16557CreateCompilation(source).VerifyDiagnostics( 16810CreateCompilation(source).VerifyDiagnostics(); 16883CreateCompilation(source).VerifyDiagnostics( 17002CreateCompilation(source).VerifyDiagnostics( 17024CreateCompilation(source).VerifyDiagnostics( 17049CreateCompilation(source).VerifyDiagnostics( 17074CreateCompilation(source).VerifyDiagnostics( 17092CreateCompilation(source).VerifyDiagnostics(); 17112CreateCompilation(source).VerifyDiagnostics( 17135CreateCompilation(source).VerifyDiagnostics( 17239CreateCompilation(source).VerifyDiagnostics(); 17248CreateCompilation(source).VerifyDiagnostics( 17261CreateCompilation(source).VerifyDiagnostics(); 17285CreateCompilation(new[] { source, handler }).VerifyDiagnostics( 17297CreateCompilation(source).VerifyDiagnostics( 17318CreateCompilation(source).VerifyDiagnostics( 17338CreateCompilation(source).VerifyDiagnostics( 17350CreateCompilation(source).VerifyDiagnostics( 17366var comp1 = CreateCompilation(source1); 17372var comp2 = CreateCompilation(source2, new[] { ref1 }); 17389var comp1 = CreateCompilation(source1); 17395var comp2 = CreateCompilation(source2, new[] { ref1 }); 17476CreateCompilation(source).VerifyDiagnostics( 17770CreateCompilation(source).VerifyDiagnostics(); 18386CreateCompilation(source).VerifyDiagnostics( 18482var comp = CreateCompilation(source); 18486comp = CreateCompilation(source); 18490comp = CreateCompilation(source); 18505var comp = CreateCompilation(source); 18523var comp = CreateCompilation(source); 18541var comp = CreateCompilation(source); 18565var comp = CreateCompilation(source); 18585var comp = CreateCompilation(source); 18602var comp = CreateCompilation(source); 18623var comp = CreateCompilation(source); 18639var comp = CreateCompilation(source); 18659var comp = CreateCompilation(source); 18677var comp = CreateCompilation(source); 18704var comp = CreateCompilation(source); 18730var comp = CreateCompilation(source); 18750var comp = CreateCompilation(source); 18775var comp = CreateCompilation(source); 18791var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18796var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18817var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18822var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18836var comp = CreateCompilation(source); 18854var comp = CreateCompilation(source); 18862CreateCompilation(source2, new[] { comp.EmitToImageReference() }).VerifyEmitDiagnostics( 18878var comp = CreateCompilation(source); 18895var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18908var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18912comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18916comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18920comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18938var comp = CreateCompilation(source); 18959var comp = CreateCompilation(source); 18985var comp = CreateCompilation(source); 18989comp = CreateCompilation(source); 19008var comp = CreateCompilation(source); 19028var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19033var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19058var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19063var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19084var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19101var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19105comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19109comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19119var comp = CreateCompilation(source); 19133var comp = CreateCompilation(source); 19151var comp = CreateCompilation(source); 19168var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19173var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19190var comp = CreateCompilation(source); 19207var comp = CreateCompilation(source); 19437CreateCompilation(source).VerifyDiagnostics( 19457CreateCompilation(source).VerifyDiagnostics( 19479CreateCompilation(source).VerifyDiagnostics( 19498CreateCompilation(source).VerifyDiagnostics(); 19520CreateCompilation(source).VerifyDiagnostics( 19541CreateCompilation(source).VerifyDiagnostics( 19585CreateCompilation(source).VerifyDiagnostics( 19626CreateCompilation(source).VerifyDiagnostics( 19667CreateCompilation(source).VerifyDiagnostics( 19704CreateCompilation(source).VerifyDiagnostics( 19725CreateCompilation(source).VerifyDiagnostics( 19750var comp = CreateCompilation(source); 19789var comp = CreateCompilation(source);
Semantics\DynamicTests.cs (159)
68var c = CreateCompilation("", new[] { CSharpRef }); 263CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics(); 286CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics( 616CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3747var comp = CreateCompilation(source); 3971CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)).VerifyDiagnostics( 4044var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 4067var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4094var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4271var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4294var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4395var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4411var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4676var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4696CreateCompilation(code).VerifyDiagnostics( 4720CreateCompilation(code, targetFramework: TargetFramework.StandardAndCSharp).VerifyDiagnostics( 4751CreateCompilation(code, targetFramework: TargetFramework.StandardAndCSharp).VerifyDiagnostics( 4776CreateCompilation(code).VerifyDiagnostics( 4801CreateCompilation(code).VerifyDiagnostics( 4834CreateCompilation(code, targetFramework: TargetFramework.StandardAndCSharp).VerifyDiagnostics( 4895CreateCompilation(code, targetFramework: TargetFramework.StandardAndCSharp).VerifyDiagnostics( 4933CreateCompilation(code).VerifyDiagnostics( 4973var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5025var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5055var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5097var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5149var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5178var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5220var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5272var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5302var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5338var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5379var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5423var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5467var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5511var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5550var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 5575var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5613var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5652var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5688var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5729var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5774var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5819var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5864var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5905var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 5932var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5971var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6019var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6100var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6142var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6193var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6223var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6262var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 6313var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 6343var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6373var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6416var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6462var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6506var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6549var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6603var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6668var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6732var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6777var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6841var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6887var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6952var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6988var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7056var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7114var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7159var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7226var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7272var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7339var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7388var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7456var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7501var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7578var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7638var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7683var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7744var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7789var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7850var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7892var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7964var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8025var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8070var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8131var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8175var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8235var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8280var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8344var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8389var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8453var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8498var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8562var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8608var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8673var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8721var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8790var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8858var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8921var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8980var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9011var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9102var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9161var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9192var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9248var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9309var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9366var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9398var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9430var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9487var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9519var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9606var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9637var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9664var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9716var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9748var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9775var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9827var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9859var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9886var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9937var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9968var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10006var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10086var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10134var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10214var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10262var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10342var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10379var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10416var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10495var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10637var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10698var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10786var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10847var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10887var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 10923var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10968var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11054var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 11097var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11181var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11259var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11314var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11367var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11414var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11447var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11491var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11532var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11581var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11633var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11676var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12);
Semantics\ExpressionBodiedMemberTests.cs (22)
438var comp = CreateCompilation(@" 453var comp = CreateCompilation(@" 484var comp = CreateCompilation(@" 515var comp = CreateCompilation(@" 553var comp = CreateCompilation(@" 593var comp = CreateCompilation(@" 622var comp = CreateCompilation(@" 658var comp = CreateCompilation(@" 689var comp = CreateCompilation(@" 720var comp = CreateCompilation(@" 751var comp = CreateCompilation(@" 786var comp = CreateCompilation(@" 817var comp = CreateCompilation(@" 853var comp = CreateCompilation(@" 888var comp = CreateCompilation(@" 927var comp = CreateCompilation(@" 949var comp = CreateCompilation(@" 965var comp = CreateCompilation(@" 981var comp = CreateCompilation(@" 998var comp = CreateCompilation(@" 1043CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics(); 1044CreateCompilation(source, parseOptions: TestOptions.Regular6).VerifyDiagnostics(
Semantics\FieldInitializerBindingTests.cs (1)
245var compilation = CreateCompilation(source);
Semantics\ForEachTests.cs (58)
41CreateCompilation(text).VerifyDiagnostics( 60CreateCompilation(text).VerifyDiagnostics( 80CreateCompilation(text).VerifyDiagnostics( 102CreateCompilation(text).VerifyDiagnostics( 121CreateCompilation(text).VerifyDiagnostics( 140CreateCompilation(text).VerifyDiagnostics( 159CreateCompilation(text).VerifyDiagnostics( 190CreateCompilation(text).VerifyDiagnostics( 221CreateCompilation(text).VerifyDiagnostics( 252CreateCompilation(text).VerifyDiagnostics( 285CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 290CreateCompilation(text).VerifyDiagnostics( 324CreateCompilation(text).VerifyDiagnostics( 357CreateCompilation(text).VerifyDiagnostics( 390CreateCompilation(text).VerifyDiagnostics( 423CreateCompilation(text).VerifyDiagnostics( 454CreateCompilation(text).VerifyDiagnostics( 485CreateCompilation(text).VerifyDiagnostics( 521CreateCompilation(text).VerifyDiagnostics( 554CreateCompilation(text).VerifyDiagnostics( 587CreateCompilation(text).VerifyDiagnostics( 620CreateCompilation(text).VerifyDiagnostics( 651CreateCompilation(text).VerifyDiagnostics( 687CreateCompilation(text).VerifyDiagnostics( 718CreateCompilation(text).VerifyDiagnostics( 749CreateCompilation(text).VerifyDiagnostics( 779CreateCompilation(text).VerifyDiagnostics( 809CreateCompilation(text).VerifyDiagnostics( 856CreateCompilation(text).VerifyDiagnostics( 905CreateCompilation(text).VerifyDiagnostics( 941CreateCompilation(text).VerifyDiagnostics( 959CreateCompilation(text).VerifyDiagnostics( 977CreateCompilation(text).VerifyDiagnostics( 996CreateCompilation(text).VerifyDiagnostics( 1039CreateCompilation(text).VerifyDiagnostics( 1058CreateCompilation(text).VerifyDiagnostics( 1091Assert.NotEmpty(CreateCompilation(source).GetDiagnostics()); 1110CreateCompilation(source).VerifyDiagnostics( 1132CreateCompilation(source).VerifyDiagnostics( 1160CreateCompilation(source).VerifyDiagnostics( 1185CreateCompilation(source).VerifyDiagnostics( 1792var compilation = CreateCompilation(text); 2052CreateCompilation(source, parseOptions: options).VerifyDiagnostics( 2062CreateCompilation(condDefSource).VerifyDiagnostics( 2106Assert.NotEmpty(CreateCompilation(source).GetDiagnostics()); 2173var comp = CreateCompilation(source); 2856CreateCompilation(source).VerifyDiagnostics( 2921CreateCompilation(source).VerifyDiagnostics( 2962CreateCompilation(source).VerifyDiagnostics( 2987CreateCompilation(source).VerifyDiagnostics( 3312var comp = CreateCompilation(""" 3334var comp = CreateCompilation(""" 3418var compilation = CreateCompilation(source); 3511CreateCompilation(@" 3542CreateCompilation(@" 3573CreateCompilation(@" 3602CreateCompilation(@" 3655CreateCompilation(@"
Semantics\ForLoopErrorTests.cs (7)
27CreateCompilation(text).VerifyDiagnostics( 55CreateCompilation(text). 76CreateCompilation(text). 94CreateCompilation(text).VerifyDiagnostics( 115CreateCompilation(text). 146CreateCompilation(text). 199var comp = CreateCompilation(text);
Semantics\FunctionPointerTests.cs (2)
21return CreateCompilation(source, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard); 2107var cComp = CreateCompilation(cDefinition, assemblyName: "cLib");
Semantics\GenericConstraintsTests.cs (165)
24CreateCompilation(@" 54CreateCompilation(@" 87CreateCompilation(@" 121CreateCompilation(@" 154CreateCompilation(@" 190var reference = CreateCompilation(@" 214CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 226var reference = CreateCompilation(@" 250CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 265var reference = CreateCompilation(@" 289CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 304var reference = CreateCompilation(@" 328CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 353CreateCompilation(code, parseOptions: oldOptions).VerifyDiagnostics( 358var reference = CreateCompilation(code).EmitToImageReference(); 373CreateCompilation(legacyCode, parseOptions: oldOptions, references: new[] { reference }).VerifyDiagnostics( 390CreateCompilation($@" 415CreateCompilation(@" 522CreateCompilation(@" 549var reference = CreateCompilation(@" 555CreateCompilation(@" 578CreateCompilation(@" 595var reference = CreateCompilation(@" 601CreateCompilation(@" 614var comp = CreateCompilation(@" 705CreateCompilation(code).VerifyDiagnostics( 717CreateCompilation(@" 743CreateCompilation(@" 769CreateCompilation(@" 782CreateCompilation(@" 814var reference = CreateCompilation(@" 819CreateCompilation(@" 842var reference = CreateCompilation(@" 847CreateCompilation(@" 870var reference = CreateCompilation(@" 875CreateCompilation(@" 910CreateCompilation(code, parseOptions: oldOptions).VerifyDiagnostics( 915var reference = CreateCompilation(code).EmitToImageReference(); 929CreateCompilation(legacyCode, parseOptions: oldOptions, references: new[] { reference }).VerifyDiagnostics( 938CreateCompilation(@" 989var compilation = CreateCompilation("public class Test<T> where T : struct, System.Delegate { }") 1041CreateCompilation(@" 1066var reference = CreateCompilation(@" 1072CreateCompilation(@" 1093CreateCompilation(@" 1110var reference = CreateCompilation(@" 1116CreateCompilation(@" 1129var comp = CreateCompilation(@" 1198CreateCompilation(@" 1224CreateCompilation(@" 1250CreateCompilation(@" 1263CreateCompilation(@" 1295var reference = CreateCompilation(@" 1300CreateCompilation(@" 1323var reference = CreateCompilation(@" 1328CreateCompilation(@" 1351var reference = CreateCompilation(@" 1356CreateCompilation(@" 1392CreateCompilation(code, parseOptions: oldOptions).VerifyDiagnostics( 1397var reference = CreateCompilation(code).EmitToImageReference(); 1411CreateCompilation(legacyCode, parseOptions: oldOptions, references: new[] { reference }).VerifyDiagnostics( 1420CreateCompilation(@" 1474var compilation = CreateCompilation("public class Test<T> where T : struct, System.MulticastDelegate { }") 1526CreateCompilation(@" 1551var reference = CreateCompilation(@" 1557CreateCompilation(@" 1578CreateCompilation(@" 1595var reference = CreateCompilation(@" 1601CreateCompilation(@" 1614var comp = CreateCompilation(@" 1687CreateCompilation(code).VerifyDiagnostics(); 1693CreateCompilation(code).VerifyDiagnostics( 1702CreateCompilation(@" 1734CreateCompilation(@" 1768CreateCompilation(@" 1795CreateCompilation(@" 1828var c = CreateCompilation("public class Test<T> where T : class, unmanaged {}"); 1846var c = CreateCompilation("public class Test<T> where T : struct, unmanaged {}"); 1864CreateCompilation("public class Test<T> where T : unmanaged, new() {}").VerifyDiagnostics( 1873CreateCompilation("public class Test<T> where T : unmanaged, System.Exception { }").VerifyDiagnostics( 1883CreateCompilation("public class Test<T> where T : System.Exception, unmanaged { }").VerifyDiagnostics( 1892CreateCompilation("public class Test<T> where T : System.Enum, System.IDisposable, unmanaged { }").VerifyDiagnostics( 1918CreateCompilation("public class Test<T, U> where T : U, unmanaged { }").VerifyDiagnostics( 1927CreateCompilation("public class Test<T, U> where T : unmanaged, U { }").VerifyDiagnostics(); 1928CreateCompilation("public class Test<T, U> where U: class where T : unmanaged, U, System.IDisposable { }").VerifyDiagnostics(); 1978var reference = CreateCompilation(@" 1998CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 2013var reference = CreateCompilation(@" 2034CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 2050var reference = CreateCompilation(@" 2066CreateCompilation(code, references: new[] { reference }).VerifyDiagnostics( 2088CreateCompilation(code, parseOptions: oldOptions).VerifyDiagnostics( 2093var reference = CreateCompilation(code).EmitToImageReference(); 2105CreateCompilation(legacyCode, parseOptions: oldOptions, references: new[] { reference }).VerifyDiagnostics( 2209CreateCompilation(@" 2241var reference = CreateCompilation(@" 2247CreateCompilation(@" 2275CreateCompilation(@" 2292CreateCompilation(@" 2329CreateCompilation(@" 2363var reference = CreateCompilation(@" 2370CreateCompilation(@" 2398var reference = CreateCompilation(@" 2405var reference1 = CreateCompilation(@" 2443var reference = CreateCompilation(@" 2449CreateCompilation(@" 2462CreateCompilation(@" 2679CreateCompilation(@" 2740CreateCompilation(@" 2864var compilation = CreateCompilation(@" 2888CreateCompilation(@" 2903CreateCompilation(@" 2920CreateCompilation(@" 3004CreateCompilation(code).VerifyDiagnostics( 3125var compilation = CreateCompilation(@" 3152var compilation = CreateCompilation(@" 3182var compilation = CreateCompilation(@" 3208var compilation = CreateCompilation(@" 3237CreateCompilation(@" 3296CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3320CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3350CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3385CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3414CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3417CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3457CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3492CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3534CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3558var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3578var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3599var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3623var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3654var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3679var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3707var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3735var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3763var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3794var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3830var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3862var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3890var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3979var compilation = CreateCompilation(code); 4001CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4008CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4031CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4040CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4057CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4064CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4081CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4087CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4104CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4110CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4127CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4134CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4154CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4161CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4184CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4194CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4221CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4231CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 4284CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4341CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 4352var comp = CreateCompilation(@" 4416var comp = CreateCompilation(@"
Semantics\GlobalUsingDirectiveTests.cs (313)
36CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 47CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 66CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 86CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 108CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 134CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 166var comp1 = CreateCompilation(source1); 191var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 234var comp3 = CreateCompilation(source3, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 275var comp1 = CreateCompilation(source1); 304var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 353var comp3 = CreateCompilation(source3, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 385var comp1 = CreateCompilation(source1); 404var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 421var comp3 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 434var extComp = CreateCompilation(ext); 541var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 544comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 547comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 550comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 553comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 556comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 563comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 580var extComp = CreateCompilation(ext); 680var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 683comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 686comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 689comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 692comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 695comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 702comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 811var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 814comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 817comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 820comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 823comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 869var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 889comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 892comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 895comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions: TestOptions.RegularPreview); 940var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 960comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 963comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions: TestOptions.RegularPreview); 1020var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1061var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1111var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1139var extComp = CreateCompilation(ext); 1235var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1238comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1241comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1244comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1247comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1250comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1257comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1274var extComp = CreateCompilation(ext); 1363var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1366comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1369comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1372comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1375comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1378comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1385comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1483var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1486comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1489comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1492comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1495comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1530var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 1550comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 1553comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 1556comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions: TestOptions.RegularPreview); 1590var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 1610comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 1613comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions: TestOptions.RegularPreview); 1691var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1807var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1810comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1813comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1816comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1819comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1927var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1963var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 2026var comp = CreateCompilation(new[] { source2, source1, source3, source6, source4, "", source5 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2044var comp1 = CreateCompilation(source1); 2073var comp2 = CreateCompilation(new[] { source2 + source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2083var comp3 = CreateCompilation(new[] { source2 + source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2096var comp4 = CreateCompilation(new[] { source2 + source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2109var comp5 = CreateCompilation(new[] { source2 + source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2129var comp6 = CreateCompilation(new[] { source2, source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2139var comp7 = CreateCompilation(new[] { source2, source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2152var comp8 = CreateCompilation(new[] { source2 + source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2155var comp9 = CreateCompilation(new[] { source2 + source5, source3, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2168var comp10 = CreateCompilation(new[] { source2 + source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2194var comp1 = CreateCompilation(source1); 2207var comp2 = CreateCompilation(new[] { source1, source2, source3 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2218comp2 = CreateCompilation(new[] { source1, source3, source2 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2242var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2253var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2267var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2270var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2273var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2276var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2279var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2282var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2300var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2307comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2329var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2340comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2343comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2384var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2398var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2415var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2418var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2421var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2424var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2427var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2430var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2480var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2494var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2511var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2514var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2517var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2520var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2523var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2526var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2548var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2559var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2570var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2577var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2587var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2597var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2607var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2610var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2634var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2641comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2662var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2673comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2676comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2702var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2713var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2724var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2731var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2741var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2751var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2761var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2764var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2788var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2795comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2816var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2827comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2830comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2871var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2905comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2909comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2913comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2917comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2957var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2991comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2995comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2999comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 3003comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 3043var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3077comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3081comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3085comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 3089comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 3170var comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3254comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3283comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3300comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3311comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3353var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 3356var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 3359var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 3363var newLibComp = CreateCompilation(alias1 + newLib_cs, 3368var newLibComp2 = CreateCompilation(alias1 + newLib_cs, 3372newLibComp = CreateCompilation(new[] { alias1, newLib_cs }, 3376newLibComp2 = CreateCompilation(new[] { alias1, newLib_cs }, 3380newLibComp = CreateCompilation(alias1 + alias2 + newLib_cs, 3388newLibComp2 = CreateCompilation(alias1 + alias2 + newLib_cs, 3396newLibComp = CreateCompilation(new[] { alias1, alias2 + newLib_cs }, 3404newLibComp2 = CreateCompilation(new[] { alias1, alias2 + newLib_cs }, 3412newLibComp = CreateCompilation(alias3 + alias4 + newLib_cs, 3420newLibComp2 = CreateCompilation(alias3 + alias4 + newLib_cs, 3428newLibComp = CreateCompilation(new[] { alias3, alias4 + newLib_cs }, 3436newLibComp2 = CreateCompilation(new[] { alias3, alias4 + newLib_cs }, 3453var extComp = CreateCompilation(ext, assemblyName: "Extern"); 3506var comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3509comp = CreateCompilation(new[] { externAlias + globalUsings1 + filler + usings + source, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3512comp = CreateCompilation(new[] { externAlias + usings + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3515comp = CreateCompilation(new[] { externAlias + usings + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3540comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3543comp = CreateCompilation(new[] { externAlias + globalUsings1 + filler + source, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3546comp = CreateCompilation(new[] { externAlias + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3549comp = CreateCompilation(new[] { externAlias + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3573comp = CreateCompilation(globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions); 3576comp = CreateCompilation(new[] { globalUsings1 + filler + usings + source, globalUsings2 }, parseOptions: parseOptions); 3579comp = CreateCompilation(new[] { usings + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions); 3582comp = CreateCompilation(new[] { usings + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions); 3605comp = CreateCompilation(globalUsings1 + globalUsings2 + source, parseOptions: parseOptions); 3608comp = CreateCompilation(new[] { globalUsings1 + filler + source, globalUsings2 }, parseOptions: parseOptions); 3611comp = CreateCompilation(new[] { filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions); 3614comp = CreateCompilation(new[] { filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions); 3617comp = CreateCompilation(source, parseOptions: parseOptions); 3644var extComp = CreateCompilation(ext, assemblyName: "Extern"); 3702var comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3705comp = CreateCompilation(new[] { externAlias + globalUsings1 + filler + usings + source, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3708comp = CreateCompilation(new[] { externAlias + usings + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3711comp = CreateCompilation(new[] { externAlias + usings + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3736comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3739comp = CreateCompilation(new[] { externAlias + globalUsings1 + filler + source, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3742comp = CreateCompilation(new[] { externAlias + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3745comp = CreateCompilation(new[] { externAlias + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions, references: new[] { extCompRef }); 3769comp = CreateCompilation(globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions); 3772comp = CreateCompilation(new[] { globalUsings1 + filler + usings + source, globalUsings2 }, parseOptions: parseOptions); 3775comp = CreateCompilation(new[] { usings + filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions); 3778comp = CreateCompilation(new[] { usings + filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions); 3801comp = CreateCompilation(globalUsings1 + globalUsings2 + source, parseOptions: parseOptions); 3804comp = CreateCompilation(new[] { globalUsings1 + filler + source, globalUsings2 }, parseOptions: parseOptions); 3807comp = CreateCompilation(new[] { filler + filler + source, globalUsings1 + globalUsings2 }, parseOptions: parseOptions); 3810comp = CreateCompilation(new[] { filler + filler + source, globalUsings1, globalUsings2 }, parseOptions: parseOptions); 3839var comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2 + usings, source }, parseOptions: TestOptions.RegularPreview); 3865comp = CreateCompilation(new[] { externAlias + globalUsings1 + usings, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3896comp = CreateCompilation(new[] { externAlias + usings, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3929comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3949comp = CreateCompilation(new[] { externAlias + globalUsings1, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3974comp = CreateCompilation(new[] { externAlias, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4001comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + usings, source }, parseOptions: TestOptions.RegularPreview); 4021comp = CreateCompilation(new[] { globalUsings1 + usings, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4046comp = CreateCompilation(new[] { usings, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4073comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4087comp = CreateCompilation(new[] { globalUsings1, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4108comp = CreateCompilation(new[] { externAlias + usings, source }, parseOptions: TestOptions.RegularPreview); 4130comp = CreateCompilation(new[] { externAlias, source }, parseOptions: TestOptions.RegularPreview); 4146comp = CreateCompilation(new[] { usings, source }, parseOptions: TestOptions.RegularPreview); 4212var comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + source }, parseOptions: TestOptions.RegularPreview); 4223comp = CreateCompilation(new[] { externAlias1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4226comp = CreateCompilation(new[] { externAlias1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4240comp = CreateCompilation(new[] { globalUsings1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4248comp = CreateCompilation(new[] { usings1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4256comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4259comp = CreateCompilation(new[] { externAlias1 + usings1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4262comp = CreateCompilation(new[] { externAlias1 + externAlias2 + source }, parseOptions: TestOptions.RegularPreview); 4276comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4284comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4292comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4300comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4308comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4366var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4377comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4380comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4383comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4386comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4393comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4400comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4462var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4473comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4476comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4479comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4482comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4489comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4496comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4513var comp1 = CreateCompilation(source1); 4562var comp2 = CreateCompilation(externAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4573comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4576comp2 = CreateCompilation(globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4580var comp2 = CreateCompilation(externAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4591comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4594comp2 = CreateCompilation(globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4598var comp2 = CreateCompilation(externAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4605comp2 = CreateCompilation(using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4609var comp2 = CreateCompilation(externAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4616comp2 = CreateCompilation(using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4678var comp2 = CreateCompilation(globalAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4689comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4692comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4695comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4698comp2 = CreateCompilation(new[] { source2, globalUsing1, globalAlias }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4701comp2 = CreateCompilation(globalUsing1 + regularAlias + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4704comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4707comp2 = CreateCompilation(globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4711var comp2 = CreateCompilation(globalAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4722comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4725comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4728comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4731comp2 = CreateCompilation(new[] { source2, globalUsing2, globalAlias }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4734comp2 = CreateCompilation(globalUsing2 + regularAlias + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4737comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4740comp2 = CreateCompilation(globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4744var comp2 = CreateCompilation(globalAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4755comp2 = CreateCompilation(new[] { globalAlias, using1 + source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4758comp2 = CreateCompilation(regularAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4761comp2 = CreateCompilation(using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4765var comp2 = CreateCompilation(globalAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4776comp2 = CreateCompilation(new[] { globalAlias, using2 + source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4779comp2 = CreateCompilation(regularAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4782comp2 = CreateCompilation(using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4865CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4925CreateCompilation(new[] { globalUsing1 + globalUsing2 + regularUsings + source }, parseOptions: TestOptions.RegularPreview). 4928CreateCompilation(new[] { globalUsing1 + regularUsings + source, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4931CreateCompilation(new[] { regularUsings + source, globalUsing1, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4944CreateCompilation(new[] { globalUsing1 + globalUsing2 + source }, parseOptions: TestOptions.RegularPreview). 4947CreateCompilation(new[] { globalUsing1 + source, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4950CreateCompilation(new[] { regularUsings + source }, parseOptions: TestOptions.RegularPreview). 4974var comp = CreateCompilation(new[] { globalUsings1, source }, parseOptions: TestOptions.RegularPreview); 5001CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5006CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 5022CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5044CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5063CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5082CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5101CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\HideByNameTests.cs (3)
757CreateCompilation(@" 780CreateCompilation(@" 801CreateCompilation(@"
Semantics\ImplicitlyTypeArraysTests.cs (3)
22var compilation = CreateCompilation(@" 64var comp = CreateCompilation(tree); 90var comp = CreateCompilation(tree);
Semantics\ImplicitlyTypedLocalsTests.cs (6)
19var compilation = CreateCompilation(@" 36var compilation = CreateCompilation(@" 73CreateCompilation(text).VerifyDiagnostics( 105CreateCompilation(text).VerifyDiagnostics( 152CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 153CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Semantics\ImplicitObjectCreationTests.cs (12)
23return CSharpTestBase.CreateCompilation(source, options: options, parseOptions: ImplicitObjectCreationTestOptions, references: references); 93var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 1839var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 2065var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4153var comp = CreateCompilation(source, parseOptions: ImplicitObjectCreationTestOptions); 4180var comp = CreateCompilation(source, parseOptions: ImplicitObjectCreationTestOptions); 4232var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4271var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4316var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4348var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4387var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: signedDll); 4388var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: signedDll);
Semantics\ImportsTests.cs (2)
103var comp = CreateCompilation( 146var comp = CreateCompilation(trees, targetFramework: TargetFramework.Mscorlib40, references: new[] { SystemCoreRef.WithAliases(externAliases) });
Semantics\IndexAndRangeTests.cs (10)
491var comp = CreateCompilation(src); 533var comp = CreateCompilation(src); 713var comp = CreateCompilation(source + @" 726comp = CreateCompilation(source + @" 803var compilation = CreateCompilation(@" 822var compilation = CreateCompilation(@" 877var compilation = CreateCompilation(@" 1057var compilation = CreateCompilation(@" 1752var comp = CreateCompilation(@" 1783var comp = CreateCompilation(@"
Semantics\InheritanceBindingTests.cs (183)
71CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 163CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 248CreateCompilation(text).VerifyDiagnostics( 319CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 411CreateCompilation(text).VerifyDiagnostics( 540CreateCompilation(text).VerifyDiagnostics( 674CreateCompilation(text).VerifyDiagnostics( 716CreateCompilation(text).VerifyDiagnostics( 757CreateCompilation(text).VerifyDiagnostics( 813CreateCompilation(text).VerifyDiagnostics( 876CreateCompilation(text).VerifyDiagnostics( 936CreateCompilation(text).VerifyDiagnostics( 989CreateCompilation(text).VerifyDiagnostics( 1070CreateCompilation(text).VerifyDiagnostics( 1278CreateCompilation(text).VerifyDiagnostics( 1364CreateCompilation(text).VerifyDiagnostics( 1404CreateCompilation(text).VerifyDiagnostics( 1466CreateCompilation(text).VerifyDiagnostics( 1528CreateCompilation(text).VerifyDiagnostics( 2011CreateCompilation(text).VerifyDiagnostics( 2043CreateCompilation(text).VerifyDiagnostics( 2073CreateCompilation(text).VerifyDiagnostics( 2105CreateCompilation(text).VerifyDiagnostics( 2133CreateCompilation(text).VerifyDiagnostics( 2158CreateCompilation(text).VerifyDiagnostics( 2185CreateCompilation(text).VerifyDiagnostics( 2212CreateCompilation(text).VerifyDiagnostics( 2241CreateCompilation(text).VerifyDiagnostics( 2346CreateCompilation(text).VerifyDiagnostics( 2391CreateCompilation(text).VerifyDiagnostics( 2439CreateCompilation(text).VerifyDiagnostics( 2460CreateCompilation(text).VerifyDiagnostics( 2792CreateCompilation(text).VerifyDiagnostics( 2908CreateCompilation(text).VerifyDiagnostics( 3007var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp12.EmitToImageReference() }, assemblyName: "lib2"); 3024var comp3 = CreateCompilation(new[] { source3 }, references: new[] { comp11.EmitToImageReference(), comp2.EmitToImageReference() }, assemblyName: "lib3"); 3203CreateCompilation(text).VerifyDiagnostics( 3230CreateCompilation(text).VerifyDiagnostics( 3258CreateCompilation(text).VerifyDiagnostics( 3295CreateCompilation(text).VerifyDiagnostics( 3332CreateCompilation(text).VerifyDiagnostics( 3390CreateCompilation(text).VerifyDiagnostics( 3451CreateCompilation(text).VerifyDiagnostics( 3512CreateCompilation(text).VerifyDiagnostics( 3573CreateCompilation(text).VerifyDiagnostics( 3701CreateCompilation(text).VerifyDiagnostics( 4166CreateCompilation(text).VerifyDiagnostics( 4264CreateCompilation(text).VerifyDiagnostics( 4645CreateCompilation(text).VerifyDiagnostics( 4730CreateCompilation(text).VerifyDiagnostics( 4752CreateCompilation(text).VerifyDiagnostics( 4819CreateCompilation(text).VerifyDiagnostics( 4863CreateCompilation(text).VerifyDiagnostics( 4897CreateCompilation(text).VerifyDiagnostics(); 4922CreateCompilation(text).VerifyDiagnostics(); 4946CreateCompilation(text).VerifyDiagnostics(); 4970CreateCompilation(text).VerifyDiagnostics(); 4988CSharpCompilation comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 5028CreateCompilation(text).VerifyDiagnostics( 5049var compilation = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 5208CreateCompilation(text, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 5467CreateCompilation(text).VerifyDiagnostics( 5485CreateCompilation(text).VerifyDiagnostics( 5847CreateCompilation(text).VerifyDiagnostics( 5920CreateCompilation(text).VerifyDiagnostics( 5937CreateCompilation(text).VerifyDiagnostics( 5970CreateCompilation(text).VerifyDiagnostics( 6004CreateCompilation(text).VerifyDiagnostics( 6092CreateCompilation(text).VerifyDiagnostics( 6128CreateCompilation(text).VerifyDiagnostics( 6150CreateCompilation(text).VerifyDiagnostics( 6183CreateCompilation(text).VerifyDiagnostics( 6202var comp1 = CreateCompilation(text1); 6240var compilation1 = CreateCompilation(source1); 6285CreateCompilation(source).VerifyDiagnostics( 6374CreateCompilation(source).VerifyDiagnostics( 6434CreateCompilation(text).VerifyDiagnostics( 6497CreateCompilation(text).VerifyDiagnostics( 6538CreateCompilation(text).VerifyDiagnostics( 6621var compilation = CreateCompilation(text); 6678CreateCompilation(text).VerifyDiagnostics( 6703var comp = CreateCompilation(text); 6752CreateCompilation(source).VerifyDiagnostics( 6803CreateCompilation(source).VerifyDiagnostics( 6919CreateCompilation(text).VerifyDiagnostics( 7022CreateCompilation(text).VerifyDiagnostics( 7093CreateCompilation(text).VerifyDiagnostics( 7137CreateCompilation(text).VerifyDiagnostics( 7198CreateCompilation(text).VerifyDiagnostics( 7234CreateCompilation(text).VerifyDiagnostics( 7313CreateCompilation(text).VerifyDiagnostics( 7431CreateCompilation(text).VerifyDiagnostics( 7518CreateCompilation(source).VerifyDiagnostics( 7584CreateCompilation(source).VerifyDiagnostics( 7641CreateCompilation(source).VerifyDiagnostics( 7726CreateCompilation(source).VerifyDiagnostics( 7789CreateCompilation(source).VerifyDiagnostics( 7855CreateCompilation(text).VerifyDiagnostics( 7915CreateCompilation(source).VerifyDiagnostics( 7966CreateCompilation(source).VerifyDiagnostics( 8012CreateCompilation(source).VerifyDiagnostics( 8063CreateCompilation(source).VerifyDiagnostics( 8109CreateCompilation(source).VerifyDiagnostics( 8135CreateCompilation(source).VerifyDiagnostics( 8169CreateCompilation(source).VerifyDiagnostics(); 8186CreateCompilation(source).VerifyDiagnostics( 8207CreateCompilation(source).VerifyDiagnostics( 8228CreateCompilation(source).VerifyDiagnostics( 8238var comp = CreateCompilation(text, refs); 8269CreateCompilation(source).VerifyDiagnostics(); 8328CreateCompilation(source).VerifyDiagnostics( 8353var comp = CreateCompilation(source); 8380var comp = CreateCompilation(source); 8408var comp = CreateCompilation(source); 8439var comp = CreateCompilation(source).VerifyDiagnostics(); 8466var comp = CreateCompilation(source).VerifyDiagnostics(); 8493var comp = CreateCompilation(source).VerifyDiagnostics(); 8523var comp = CreateCompilation(source).VerifyDiagnostics(); 8550var comp = CreateCompilation(source).VerifyDiagnostics(); 8577var comp = CreateCompilation(source).VerifyDiagnostics(); 8602var comp = CreateCompilation(source).VerifyDiagnostics(); 8624var comp = CreateCompilation(source).VerifyDiagnostics(); 8646var comp = CreateCompilation(source).VerifyDiagnostics(); 8671var comp = CreateCompilation(source).VerifyDiagnostics(); 8693var comp = CreateCompilation(source).VerifyDiagnostics(); 8715var comp = CreateCompilation(source).VerifyDiagnostics(); 8744var comp = CreateCompilation(source).VerifyDiagnostics(); 8750CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 8752CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 8773var comp = CreateCompilation(source).VerifyDiagnostics(); 8794var comp = CreateCompilation(source).VerifyDiagnostics(); 8811var comp = CreateCompilation(source).VerifyDiagnostics(); 8813CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 8815CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 8836var comp = CreateCompilation(source).VerifyDiagnostics( 8856var comp = CreateCompilation(source).VerifyDiagnostics( 8876var comp = CreateCompilation(source).VerifyDiagnostics( 8896var comp = CreateCompilation(source).VerifyDiagnostics( 8916var comp = CreateCompilation(source).VerifyDiagnostics(); 8933var comp = CreateCompilation(source).VerifyDiagnostics(); 8950var comp = CreateCompilation(source).VerifyDiagnostics( 8970var comp = CreateCompilation(source).VerifyDiagnostics( 8990var comp = CreateCompilation(source).VerifyDiagnostics( 9010var comp = CreateCompilation(source).VerifyDiagnostics( 9030var comp = CreateCompilation(source).VerifyDiagnostics( 9051var comp = CreateCompilation(source).VerifyDiagnostics( 9071var comp = CreateCompilation(source).VerifyDiagnostics( 9093var comp = CreateCompilation(source).VerifyDiagnostics( 9116var comp = CreateCompilation(source).VerifyDiagnostics( 9135var comp = CreateCompilation(source).VerifyDiagnostics( 9157var comp = CreateCompilation(source).VerifyDiagnostics( 9180var comp = CreateCompilation(source).VerifyDiagnostics( 9201var comp = CreateCompilation(source).VerifyDiagnostics( 9222var comp = CreateCompilation(source).VerifyDiagnostics( 9243var comp = CreateCompilation(source).VerifyDiagnostics( 9264var comp = CreateCompilation(source).VerifyDiagnostics( 9285var comp = CreateCompilation(source).VerifyDiagnostics( 9306var comp = CreateCompilation(source).VerifyDiagnostics( 9327var comp = CreateCompilation(source).VerifyDiagnostics( 9348var comp = CreateCompilation(source).VerifyDiagnostics( 9368var comp = CreateCompilation(source).VerifyDiagnostics( 9389var comp = CreateCompilation(source).VerifyDiagnostics( 9411var comp = CreateCompilation(source).VerifyDiagnostics( 9432var comp = CreateCompilation(source).VerifyDiagnostics( 9453var comp = CreateCompilation(source).VerifyDiagnostics( 9475var comp = CreateCompilation(source).VerifyDiagnostics( 9496var comp = CreateCompilation(source).VerifyDiagnostics( 9517var comp = CreateCompilation(source).VerifyDiagnostics( 9539var comp = CreateCompilation(source).VerifyDiagnostics( 9560var comp = CreateCompilation(source).VerifyDiagnostics( 9581var comp = CreateCompilation(source).VerifyDiagnostics( 9603var comp = CreateCompilation(source).VerifyDiagnostics( 9625var comp = CreateCompilation(source).VerifyDiagnostics( 9646var comp = CreateCompilation(source).VerifyDiagnostics( 9667var comp = CreateCompilation(source).VerifyDiagnostics(); 9685var comp = CreateCompilation(source).VerifyDiagnostics(); 9702var comp = CreateCompilation(source).VerifyDiagnostics( 9723var comp = CreateCompilation(source).VerifyDiagnostics( 9744var comp = CreateCompilation(source).VerifyDiagnostics( 9767var comp = CreateCompilation(source).VerifyDiagnostics( 9794var comp = CreateCompilation(source).VerifyDiagnostics(); 9820CreateCompilation(source1 + source2).VerifyDiagnostics(); 9821CreateCompilation(source2 + source1).VerifyDiagnostics();
Semantics\InitOnlyMemberTests.cs (115)
40var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 65var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 77var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 103var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 136var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 148var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 173var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 208var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 227comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 252var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 279var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 300var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8, assemblyName: "lib"); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { lib.ToMetadataReference() }, assemblyName: "comp"); 334var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 367var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 453var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 494var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 546var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 575var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 604var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 635var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 688var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 745var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 771var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 870var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 945var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 971var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1003var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1045var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1046var comp = CreateCompilation(new[] { source, main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1050libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1051comp = CreateCompilation(new[] { main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1081var libComp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1082var comp = CreateCompilation(new[] { main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1129var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1130var comp = CreateCompilation(new[] { source, main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1134libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1135comp = CreateCompilation(new[] { main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1149var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1212var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1251var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1281var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1335var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1362var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1409var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1441var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 1523var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1617var comp = CreateCompilation(source, 1687var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1715var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1764var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1788var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 1866var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1906var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1949var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2034var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2065var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2086var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2104var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2157var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2192var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2213var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2230var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2282var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2375var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2418var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2448var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2468var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2490var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2514var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2536var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2611var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2680var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2737var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2786var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 2823var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2876var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2957var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3009var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 3036var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3058var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3084var comp = CreateCompilation(source, 3109var compilation = CreateCompilation(@" 3172var comp = CreateCompilation(new[] { @" 3257var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3348var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3466var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3565var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3629var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3688var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3738var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3806var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3884var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3972var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4055var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4102var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4125var comp = CreateCompilation(new[] { @" 4193var comp1 = CreateCompilation(new[] { source0, source1, IsExternalInitTypeDefinition }, 4200var comp7 = CreateCompilation(source2, references: comp1Ref, 4367var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, @" 4390var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, @" 4483var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4512var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }); 4536var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4562var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe);
Semantics\InteractiveSemanticModelTests.cs (2)
25var compilation = CreateCompilation(@" 357var compilation = CreateCompilation(testSrc, parseOptions: TestOptions.Script);
Semantics\InteractiveUsingTests.cs (9)
142CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).Verify(expectedDiagnostics); 161CreateCompilation(source, options: options).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).Verify(expectedDiagnostics); 179CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).Verify(expectedDiagnostics); 251CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).Verify(expectedDiagnostics); 270CreateCompilation(source, options: options).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).Verify(expectedDiagnostics); 322var lib1 = CreateCompilation(string.Format(libSourceTemplate, 1), assemblyName: "Lib1").EmitToImageReference(); 323var lib2 = CreateCompilation(string.Format(libSourceTemplate, 2), assemblyName: "Lib2").EmitToImageReference(); 515var lib = CreateCompilation(libSource).EmitToImageReference(); 556var lib = CreateCompilation(libSource).EmitToImageReference();
Semantics\InterceptorsTests.cs (9)
67var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }); 70comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview-experimental")); 73comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "false")); 76comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview")); 79comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "Global")); 82comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "global.a")); 113var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS")); 119comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2")); 160var comp = CreateCompilation(source);
Semantics\InterpolationTests.cs (277)
939CreateCompilation(source).VerifyDiagnostics( 968CreateCompilation(source).VerifyDiagnostics( 989CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1000CreateCompilation(source).VerifyDiagnostics( 1170var comp = CreateCompilation(text, targetFramework: framework, 1273var comp = CreateCompilation(text, targetFramework: framework, 1374var comp = CreateCompilation(text, targetFramework: framework, 1426var comp = CreateCompilation(text, targetFramework: framework, 1465CreateCompilation(text).VerifyDiagnostics( 1507CreateCompilation(text).VerifyDiagnostics( 1646CreateCompilation(text).VerifyDiagnostics( 1844var comp1 = CreateCompilation(interpolatedStringBuilder); 1848var comp2 = CreateCompilation(source, new[] { reference }); 2222var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 2260var comp1 = CreateCompilation(interpolatedStringBuilder, targetFramework: TargetFramework.Net50); 2264var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 3282var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3312var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3342var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3373var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3402var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3430var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3458var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3660var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 3742var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 4053var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, 4106var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp); 4208var comp = CreateCompilation(source); 4233var comp = CreateCompilation(new[] { code, handler }); 4274var comp = CreateCompilation(new[] { code, handler }); 4316var comp = CreateCompilation(new[] { code, handler }); 4377var comp = CreateCompilation(source); 4403var comp = CreateCompilation(new[] { source, InterpolatedStringHandlerAttribute }); 4424var handlerRef = CreateCompilation(handlerSource).EmitToImageReference(); 4428var comp = CreateCompilation(source, references: new[] { handlerRef }); 4441var handlerRef = CreateCompilation(handlerSource).EmitToImageReference(); 4454var comp = CreateCompilation(source, references: new[] { handlerRef }); 4486var comp = CreateCompilation(source); 4524var comp = CreateCompilation(source); 4640var comp = CreateCompilation(new[] { code, builder }); 4778var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 4821var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }); 4889var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 4926comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular9); 4979var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5009var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5038var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5062var comp = CreateCompilation(new[] 5093var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5147var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5198var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5221var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 5247var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5275var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 5333var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 5380var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5435var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5494var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5559var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 5569comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 5617var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5684var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 5754var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5817var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 5845var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5851comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5871var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5932var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6003var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6029var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6089var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6116var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6173var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6200var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6279var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6343var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6408var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6435var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6491var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6536var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6557var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6600var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6646var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6692var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6739var comp = CreateCompilation(new[] 6816var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute }); 6846var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 6874var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6906var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6940var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 6981var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7015var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7056var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7093var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7134var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7168var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7209var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7242var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7276var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7316var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7356var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7396var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7437var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7473var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7514var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7550var comp = CreateCompilation(@"_ = new C($"""");", references: new[] { vbComp.EmitToImageReference() }); 7591var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7631var comp = CreateCompilation(@"C<CustomHandler>.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7684var comp = CreateCompilation(new[] { code, goodCode, InterpolatedStringHandlerArgumentAttribute, handler }); 7701comp = CreateCompilation(new[] { code, badCode, InterpolatedStringHandlerArgumentAttribute, handler }); 7803var comp = CreateCompilation("", references: new[] { vbComp.EmitToImageReference() }); 7841var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7879var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7907var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7910CreateCompilation(@"C.M(1, " + expression + @");", new[] { comp.ToMetadataReference() }).VerifyDiagnostics( 7956var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 7963var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7968comp = CreateCompilation(executableCode, new[] { dependency.EmitToImageReference() }); 7978comp = CreateCompilation(executableCode, new[] { dependency.ToMetadataReference() }); 8014var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: parseOptions); 8082var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8246var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8250var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8255comp = CreateCompilation(executableCode, new[] { d }); 8300var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8308var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8419var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8430var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8563var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8727var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8860var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8997var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9098var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 9161var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 9165CreateCompilation(@"C.M(1, """", " + expression + @");", new[] { comp.EmitToImageReference() }).VerifyDiagnostics( 9226var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9342var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9459var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9582var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9656var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9700var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9925var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9972comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 10025var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10128var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.DebugExe); 10274var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10373var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10471var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10525var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10624var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10723var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10821var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10865var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 10920var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11005var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11117var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11369var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11654var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11709var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 11771var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 11905var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12002var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12294var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12558var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12815var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12884var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12939var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13168var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13220var comp = CreateCompilation(code, new[] { vbComp.EmitToImageReference() }); 13254var comp = CreateCompilation(new[] { code, handler }); 13271var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13330var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13390var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13452var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13514var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13606var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13725var comp = CreateCompilation(code); 13747var comp = CreateCompilation(code); 13780var comp = CreateCompilation(new[] { code, customHandler }); 13825var comp = CreateCompilation(new[] { code, customHandler }); 13862var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 13891var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 13923var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 13968var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14013var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14056var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14105var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14161var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14257var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14356var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14531CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 14588CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 14628var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14631comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 14660var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 14697var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14700comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 14737var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14740comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 14777var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14786comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 14835var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14838comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 14869var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14872comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 14903var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14906comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 14940var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 14978var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14988comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 15033var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 15036comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 15081var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15122var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15158var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15209var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15255var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15295var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15323var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15356var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15392var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15440var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15478var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15519var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15601var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15640var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15680var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15719var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15763var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15811var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15853var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15914var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 15960var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16015var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16077var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16111var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16166var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16193var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16238var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16294var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) }); 16318var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16393var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16909var comp = CreateCompilation(code); 17073var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 17087var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17151var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17324var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17345var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17409var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17482var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17514var comp = CreateCompilation(code, references: new[] { vbComp.EmitToImageReference() }); 17782var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17816var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 17985var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18020var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: TestOptions.Regular11); 18072var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 18124var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18179var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18255CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 18274CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 18288var comp = CreateCompilation(text).VerifyDiagnostics( 18342CreateCompilation(code, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 18379CreateCompilation(code, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 18416CreateCompilation(code, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 18453CreateCompilation(code, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 18488CreateCompilation(code, targetFramework: TargetFramework.Net60).VerifyDiagnostics( 18515var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 18551var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 18604var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 18686var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 18785var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 18898var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 19009CreateCompilation(source).VerifyDiagnostics( 19028CreateCompilation(source).VerifyEmitDiagnostics(
Semantics\IteratorTests.cs (8)
35var comp = CreateCompilation(text); 60var comp = CreateCompilation(text); 78var comp = CreateCompilation(text); 101var comp = CreateCompilation(text); 237CreateCompilation(source).VerifyDiagnostics(); 270var comp = CreateCompilation(text); 511var comp = CreateCompilation(text, options: TestOptions.DebugDll); 570var comp = CreateCompilation(text);
Semantics\LambdaDiscardParametersTests.cs (24)
22var comp = CreateCompilation(@" 77var comp = CreateCompilation(@" 97var comp = CreateCompilation(@" 124var comp = CreateCompilation(@" 147var comp = CreateCompilation(@" 170var comp = CreateCompilation(@" 190var comp = CreateCompilation(@" 212var comp = CreateCompilation(@" 234var comp = CreateCompilation(@" 267var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 277var comp2 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 284var comp3 = CreateCompilation(src, parseOptions: TestOptions.Regular9); 291var comp = CreateCompilation(@" 314var comp = CreateCompilation(@" 334var comp = CreateCompilation(@" 368var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 378comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 401var comp = CreateCompilation(@" 429var comp = CreateCompilation(@" 463var comp = CreateCompilation(@" 492var comp = CreateCompilation(@" 528var comp = CreateCompilation(@" 549var comp = CreateCompilation(@" 581var comp = CreateCompilation(@"
Semantics\LambdaTests.cs (247)
29var comp = CreateCompilation(@" 261var compilation = CreateCompilation(code); 284CreateCompilation(source).VerifyDiagnostics( 308CreateCompilation(source).VerifyDiagnostics( 337var comp = CreateCompilation(Parse(text)); 474var comp = CreateCompilation(Parse(text1)); 528var csProject = CreateCompilation( 575var csProject = CreateCompilation(Parse(csSource), new[] { MetadataReference.CreateFromImage(vbMetadata) }); 596var comp = CreateCompilation(source); 615var comp = CreateCompilation(source); 636var comp = CreateCompilation(source); 660var csProject = CreateCompilation(csSource); 687CreateCompilation(csSource).VerifyDiagnostics( 724CreateCompilation(csSource).VerifyDiagnostics( 752CreateCompilation(csSource).VerifyDiagnostics( 776CreateCompilation(csSource).VerifyDiagnostics( 795CreateCompilation(csSource).VerifyDiagnostics( 813CreateCompilation(source).VerifyDiagnostics( 838var comp = CreateCompilation(tree); 885CreateCompilation(csSource).VerifyDiagnostics( 937var compilation = CreateCompilation(source); 1170var comp = CreateCompilation(tree); 1203var comp = CreateCompilation(tree); 1235var comp = CreateCompilation(tree); 1428var comp = CreateCompilation(@" 1451var comp = CreateCompilation(@" 1470var comp = CreateCompilation(@" 1502var compilation = CreateCompilation(src); 1537var compilation = CreateCompilation(src); 1574var compilation = CreateCompilation(src); 1606var compilation = CreateCompilation(src); 1885var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1942CreateCompilation(source).VerifyDiagnostics( 2711var comp = CreateCompilation(source); 2813var comp = CreateCompilation(src, options: TestOptions.DebugDll); 2837var comp = CreateCompilation(src); 2863var comp = CreateCompilation(src); 2892var comp = CreateCompilation(src); 2918var comp = CreateCompilation(src); 2995var comp = CreateCompilation(tree); 3037var comp = CreateCompilation(tree); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3096comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3099comp = CreateCompilation(source); 3122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3137comp = CreateCompilation(source); 3160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3178comp = CreateCompilation(source); 3201var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3216comp = CreateCompilation(source); 3239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3254comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3257comp = CreateCompilation(source); 3279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3291comp = CreateCompilation(source); 3313var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3328comp = CreateCompilation(source); 3355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3370comp = CreateCompilation(source); 3388var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3394comp = CreateCompilation(source); 3412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3418comp = CreateCompilation(source); 3436var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3445comp = CreateCompilation(source); 3463var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3475comp = CreateCompilation(source); 3501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3510comp = CreateCompilation(source); 3540var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3555comp = CreateCompilation(source); 3609var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 3677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3695comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3731var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3734comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3761var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 3778var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3813var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3873var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3929var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3972var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4023var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4058var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4088var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4114var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4149var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 4205var comp = CreateCompilation( 4238var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4285var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4359var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4406var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4486var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4533var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4582var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition }); 4639var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, NotNullAttributeDefinition }); 4686var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4753var comp = CreateCompilation(source); 4778var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 4814var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 4844var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4864var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4898CreateCompilation(source).VerifyDiagnostics( 4922var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4949var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4975var comp = CreateCompilation( 5016var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 5048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5060comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5081var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5108var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5136var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5162var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5186var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5212var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5246var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5284var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5325var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5361var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5387var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5413var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5432var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5457var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5485var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5509var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5536var comp = CreateCompilation(source); 5567var comp = CreateCompilation(source); 5598var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5631var comp = CreateCompilation(source); 5711var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5745var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5767var comp = CreateCompilation(source); 5801var comp = CreateCompilation(source); 5833var comp = CreateCompilation(source); 5866var comp = CreateCompilation(source); 5893var comp = CreateCompilation(source); 5916var comp = CreateCompilation(source); 5938var comp = CreateCompilation(source); 5963var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5991var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6035var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6038comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6097var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6124comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6170var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6191var comp = CreateCompilation(source); 6214var comp = CreateCompilation(source); 6239var comp = CreateCompilation(source); 6261var comp = CreateCompilation(source); 6282var comp = CreateCompilation(source); 6304var comp = CreateCompilation(source); 6325var comp = CreateCompilation(source); 6346var comp = CreateCompilation(source); 6368var comp = CreateCompilation(source); 6389var comp = CreateCompilation(source); 6410var comp = CreateCompilation(source); 6431var comp = CreateCompilation(source); 6452var comp = CreateCompilation(source); 6472var comp = CreateCompilation(source); 6492var comp = CreateCompilation(source); 6524var comp = CreateCompilation(@" 6560var comp = CreateCompilation(@" 6595var comp = CreateCompilation(@" 6629var comp = CreateCompilation(@" 6665var comp = CreateCompilation(@" 6697var comp = CreateCompilation(@" 6720var comp = CreateCompilation(@" 6753var comp = CreateCompilation(@" 6777var comp = CreateCompilation(@" 6801var comp = CreateCompilation(@" 6830var comp = CreateCompilation(@" 6871var comp = CreateCompilation(source); 6907CreateCompilation(""" 6927CreateCompilation(""" 6962CreateCompilation(""" 7008var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7034var comp = CreateCompilation(source); 7063var comp = CreateCompilation(source); 7094var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7134CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7139CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 7158var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 7177var comp = CreateCompilation(source); 7199var comp = CreateCompilation(source); 7225var comp = CreateCompilation(source); 7245var comp = CreateCompilation(source); 7267var comp = CreateCompilation(source); 7286var comp = CreateCompilation(source); 7308var comp = CreateCompilation(source); 7327var comp = CreateCompilation(source); 7359var comp = CreateCompilation(source); 7388var comp = CreateCompilation(source); 7412var comp = CreateCompilation(source); 7432var comp = CreateCompilation(source); 7461var comp = CreateCompilation(source); 7484var comp = CreateCompilation(source); 7505var comp = CreateCompilation(source); 7523var comp = CreateCompilation(source); 7543var comp = CreateCompilation(source); 7559var comp = CreateCompilation(source); 7575var comp = CreateCompilation(source); 7591var comp = CreateCompilation(source); 7610var comp = CreateCompilation(source); 7628var comp = CreateCompilation(source); 7666var comp = CreateCompilation(source); 7688var comp = CreateCompilation(source); 7710var comp = CreateCompilation(source); 7729var comp = CreateCompilation(source); 7748var comp = CreateCompilation(source); 7771var comp = CreateCompilation(source); 7788var comp = CreateCompilation(source); 7812var comp = CreateCompilation(source); 7836var comp = CreateCompilation(source); 7860var comp = CreateCompilation(source); 7886CreateCompilation(source).VerifyDiagnostics( 7912CreateCompilation(source).VerifyDiagnostics( 7930CreateCompilation(source).VerifyDiagnostics( 7944CreateCompilation(source).VerifyDiagnostics( 7956CreateCompilation(source).VerifyDiagnostics( 7974CreateCompilation(source).VerifyDiagnostics(); 7990CreateCompilation(source).VerifyDiagnostics( 8006var comp = CreateCompilation(source).VerifyDiagnostics(); 8054var comp = CreateCompilation(source).VerifyDiagnostics(); 8079var comp = CreateCompilation(source).VerifyDiagnostics(); 8111var comp = CreateCompilation(source).VerifyDiagnostics( 8151var comp = CreateCompilation(source).VerifyDiagnostics(); 8202CreateCompilation(source).VerifyDiagnostics( 8228var comp = CreateCompilation(tree); 8253CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8258CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 8270CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 8304CreateCompilation(source).VerifyDiagnostics( 8316CreateCompilation(source).VerifyDiagnostics( 8339CreateCompilation(source).VerifyDiagnostics( 8356var comp = CreateCompilation(source).VerifyDiagnostics(); 8389var comp = CreateCompilation(source); 8465CreateCompilation(source).VerifyDiagnostics( 8477CreateCompilation(source).VerifyDiagnostics( 8489CreateCompilation(source).VerifyDiagnostics( 8502CreateCompilation(source).VerifyDiagnostics( 8515CreateCompilation(source).VerifyDiagnostics(); 8527CreateCompilation(source).VerifyDiagnostics( 8539CreateCompilation(source).VerifyDiagnostics( 8551CreateCompilation(source).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (237)
50var comp = CreateCompilation(source); 344var comp = CreateCompilation(tree); 392var comp = (Compilation)CreateCompilation(tree); 439var comp = CreateCompilation(tree); 484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 532var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 603var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 656var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 710var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 758var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 796var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 886var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 901comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 946var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1050var comp = CreateCompilation(text); 1081var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1118var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1283var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1348var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1379var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1415var comp = CreateCompilation(text); 1444var comp = CreateCompilation(source); 1452var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1489var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1518var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1525var comp = CreateCompilation(@" 1544var comp = CreateCompilation(@" 1570var comp = CreateCompilation(@" 1598var comp = CreateCompilation(@" 1614var comp = CreateCompilation(@" 1634var comp = CreateCompilation(@" 1655var comp = CreateCompilation(@" 1692var comp = CreateCompilation(tree); 1739var comp = (Compilation)CreateCompilation(@" 1814var comp = (Compilation)CreateCompilation(@" 1899var comp = CreateCompilation(tree); 1955var comp = CreateCompilation(tree); 2023var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2156var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 2186comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 2211var comp = CreateCompilation(@" 2369var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12.WithFeature("run-nullable-analysis", "never")); 2441CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular13.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 2442CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 2449var comp = CreateCompilation(@" 2534var comp = CreateCompilation(@" 2583var comp = CreateCompilation(source); 2844var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 3032var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3038comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3065comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3205var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)); 3654var comp = CreateCompilation(source); 3675var comp = CreateCompilation(source); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3737comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3740comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4012CreateCompilation(source, options: option, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 4750CreateCompilation(source).VerifyDiagnostics(); 5101var comp = CreateCompilation(src); 5254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5257comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5260comp = CreateCompilation(source); 5303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5321comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5324comp = CreateCompilation(source); 5347var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5365comp = CreateCompilation(source); 5388var comp = CreateCompilation(source); 5410var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5427comp = CreateCompilation(source); 5449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5467comp = CreateCompilation(source); 5493var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5511comp = CreateCompilation(source); 5541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5544comp = CreateCompilation(source); 5580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5598comp = CreateCompilation(source); 5620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5632comp = CreateCompilation(source); 5663var comp = CreateCompilation(source); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5702comp = CreateCompilation(source); 5727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5735comp = CreateCompilation(source); 5755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5760comp = CreateCompilation(source); 5781var comp = CreateCompilation(source); 5812var comp = CreateCompilation(source); 5842var comp = CreateCompilation(source); 5867var comp = CreateCompilation(source); 5946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithPreprocessorSymbols("MyDefine")); 5949comp = CreateCompilation(source, parseOptions: TestOptions.Regular); 5987var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6094var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6125var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6163var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6222var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6263var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6290var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6319var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6337var comp = CreateCompilation(source); 6356var comp = CreateCompilation(source); 6377var comp = CreateCompilation(source); 6405var comp = CreateCompilation(source); 6438var comp = CreateCompilation(source); 6482var comp = CreateCompilation(source); 6529var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 6600var comp = CreateCompilation(source); 6623var comp = CreateCompilation(source); 6652var comp = CreateCompilation(source); 6678var comp = CreateCompilation(source); 6707var comp = CreateCompilation(source); 6739var comp = CreateCompilation(source); 6794var comp = CreateCompilation(source); 6824var comp = CreateCompilation(source); 6868var comp = CreateCompilation(source); 7027var comp = CreateCompilation(source); 7081var comp = CreateCompilation(source); 7140var comp = CreateCompilation(source); 7189var comp = CreateCompilation(source); 7252var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7282var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7310var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7340var comp = CreateCompilation(source, parseOptions: parseOptions); 7414var comp = CreateCompilation(source, parseOptions: parseOptions); 7485var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7509comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7559var comp = CreateCompilation(source, parseOptions: parseOptions); 7618var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7682var comp = CreateCompilation(@" 7718var comp = CreateCompilation(@" 7753var comp = CreateCompilation(@" 7790var comp = CreateCompilation(@" 7826var comp = CreateCompilation(@" 7862var comp = CreateCompilation(@" 7897var comp = CreateCompilation(@" 7924var comp = CreateCompilation(@" 7958var comp = CreateCompilation(@" 7992var comp = CreateCompilation(@" 8019var comp = CreateCompilation(@" 8048var comp = CreateCompilation(@" 8067var comp = CreateCompilation(@" 8086var comp = CreateCompilation(@" 8113var comp = CreateCompilation(@" 8149var comp = CreateCompilation(@" 8185var comp = CreateCompilation(@" 8212var comp = CreateCompilation(@" 8239var comp = CreateCompilation(@" 8273var comp = CreateCompilation(@" 8300var comp = CreateCompilation(@" 8336var comp = CreateCompilation(@" 8371var comp = CreateCompilation(@" 8398var comp = CreateCompilation(@" 8433var comp = CreateCompilation(@" 8452var comp = CreateCompilation(@" 8481var comp = CreateCompilation(@" 8512var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8516comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8532var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 8536comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 8558var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 8579var comp = CreateCompilation(source); 8591var comp = CreateCompilation(source); 8612var comp = CreateCompilation(source); 8638var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 8670var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8728var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8767var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8808var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8850var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8884var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8915var comp = CreateCompilation(source, parseOptions: parseOptions); 8983var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9004var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9028var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9052var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9076var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9099var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9122var comp = CreateCompilation(source); 9149var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9166var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9186var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9195var comp = CreateCompilation(@" 9231var comp = CreateCompilation(@" 9266var comp = CreateCompilation(@" 9303var comp = CreateCompilation(@" 9355var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9383var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9419var comp = CreateCompilation(source, parseOptions: parseOptions); 9462var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9482var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9509var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 9540var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 9574var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9591var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9611var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9631var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9654var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9677var comp = CreateCompilation(source); 9708var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9737var comp = CreateCompilation(source, parseOptions: parseOptions); 9777var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9786var comp = CreateCompilation(@" 9820var comp = CreateCompilation(@" 9846var comp = CreateCompilation(@" 9872var comp = CreateCompilation(@" 9913var comp = CreateCompilation(@" 9953var comp = CreateCompilation(@" 9987var comp = CreateCompilation(@" 10018var comp = CreateCompilation(@" 10042var comp = CreateCompilation(@" 10073var comp = CreateCompilation(@" 10097var comp = CreateCompilation(@" 10130var comp = CreateCompilation(@" 10168var comp = CreateCompilation(text); 10217CreateCompilation(text).VerifyDiagnostics( 10254CreateCompilation(text).VerifyDiagnostics(); 10289CreateCompilation(text).VerifyDiagnostics( 10326CreateCompilation(text).VerifyDiagnostics( 10363CreateCompilation(text).VerifyDiagnostics( 10373var compilation = CreateCompilation(""" 10417var comp = CreateCompilation(src); 10453var comp = CreateCompilation(src); 10483var comp = CreateCompilation(src); 10513var comp = CreateCompilation(src); 10546var comp = CreateCompilation(src); 10576var comp = CreateCompilation(src);
Semantics\LockTests.cs (28)
39var compilation = CreateCompilation(source); 76CreateCompilation(source).VerifyDiagnostics( 96CreateCompilation(source).VerifyDiagnostics( 116CreateCompilation(source).VerifyDiagnostics(); 135CreateCompilation(source).VerifyDiagnostics( 162CreateCompilation(source).VerifyDiagnostics( 194CreateCompilation(source).VerifyDiagnostics( 219CreateCompilation(source).VerifyDiagnostics( 240CreateCompilation(source).VerifyDiagnostics( 261CreateCompilation(source).VerifyDiagnostics( 289CreateCompilation(source).VerifyDiagnostics( 316CreateCompilation(source).VerifyDiagnostics(// (6,19): error CS1026: ) expected 352CreateCompilation(source).VerifyDiagnostics( 382CreateCompilation(source).VerifyDiagnostics( 431CreateCompilation(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i")); 449CreateCompilation(source).VerifyDiagnostics( 474var compilation = CreateCompilation( 498var compilation = CreateCompilation( 517var compilation = CreateCompilation( 536var compilation = CreateCompilation( 584var compilation = CreateCompilation( 612var compilation = CreateCompilation( 636var compilation = CreateCompilation( 655var compilation = CreateCompilation( 674var compilation = CreateCompilation( 734CreateCompilation(source).VerifyDiagnostics( 774var regularCompilation = CreateCompilation(source); 775var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature());
Semantics\LookupPositionTests.cs (2)
2269var compilation = CreateCompilation(source); 2298var compilation = CreateCompilation(source);
Semantics\LookupTests.cs (14)
424var comp = CreateCompilation(testSrc); 580var comp = CreateCompilation(testSrc); 1318CreateCompilation(testSrc).VerifyDiagnostics(); 1498var compilation = CreateCompilation(source); 1515CreateCompilation(source).VerifyDiagnostics( 1615var compilation = CreateCompilation(source).VerifyDiagnostics( 1639var compilation = CreateCompilation(source); 1666var compilation = CreateCompilation(source); 1707var comp = CreateCompilation(source); 1753var comp = CreateCompilation(source); 1781var comp = CreateCompilation(source); 1816var comp = CreateCompilation(source); 1977var comp = CreateCompilation(source); 2117var comp = CreateCompilation(source);
Semantics\MethodBodyModelTests.cs (34)
55var comp = CreateCompilation(tree); 77var comp = CreateCompilation(tree); 100var comp = CreateCompilation(tree); 123var comp = CreateCompilation(tree); 163var comp = CreateCompilation(tree); 203var comp = CreateCompilation(tree); 243var comp = CreateCompilation(tree); 266var comp = CreateCompilation(tree); 294var comp = CreateCompilation(tree); 344CreateCompilation(text).VerifyDiagnostics( 370var comp = CreateCompilation(tree); 394var comp = CreateCompilation(tree); 417var comp = CreateCompilation(tree); 441var comp = CreateCompilation(tree); 464var comp = CreateCompilation(tree); 487var comp = CreateCompilation(tree); 510var comp = CreateCompilation(tree); 533var comp = CreateCompilation(tree); 564var comp = CreateCompilation(tree); 616var comp = CreateCompilation(tree); 640var comp = CreateCompilation(tree); 667var comp = CreateCompilation(tree); 699var comp = CreateCompilation(tree); 726var comp = CreateCompilation(tree); 751var comp = CreateCompilation(tree); 771var comp = CreateCompilation(tree); 796var comp = CreateCompilation(tree); 833var comp = CreateCompilation(tree); 860var comp = CreateCompilation(tree); 885var comp = CreateCompilation(tree); 912var comp = CreateCompilation(tree); 933var comp = CreateCompilation(tree); 954var comp = CreateCompilation(tree); 993var comp = CreateCompilation(tree);
Semantics\MethodTypeInferenceTests.cs (13)
490CreateCompilation(source).VerifyDiagnostics( 574CreateCompilation(source).VerifyDiagnostics(); 633CreateCompilation(source).VerifyDiagnostics( 696var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 751var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 797var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 828var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 887CreateCompilation(source).VerifyDiagnostics( 913CreateCompilation(source).VerifyDiagnostics( 993CreateCompilation(source).VerifyDiagnostics(); 1014CreateCompilation(source).VerifyDiagnostics( 1041var comp = CreateCompilation(source); 1071var comp = CreateCompilation(source);
Semantics\MultiDimensionalArrayTests.cs (1)
198CreateCompilation(text).VerifyDiagnostics(
Semantics\NameCollisionTests.cs (34)
259CreateCompilation(source).VerifyDiagnostics( 347CreateCompilation(source).VerifyDiagnostics(); 389CreateCompilation(source).VerifyDiagnostics(); 417CreateCompilation(source).VerifyDiagnostics(); 455CreateCompilation(source).VerifyDiagnostics( 538CreateCompilation(source).VerifyDiagnostics(); 582CreateCompilation(source).VerifyDiagnostics( 607CreateCompilation(source).VerifyDiagnostics(); 632CreateCompilation(source).VerifyDiagnostics(); 760CreateCompilation(source).VerifyDiagnostics( 834CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 861CreateCompilation(source).VerifyDiagnostics( 894CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 909CreateCompilation(source).VerifyDiagnostics( 934CreateCompilation(source).VerifyDiagnostics( 1032CreateCompilation(source).VerifyDiagnostics( 1099CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1125CreateCompilation(source).VerifyDiagnostics( 1168CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1173CreateCompilation(source).VerifyDiagnostics(); 1234CreateCompilation(source).VerifyDiagnostics( 1337CreateCompilation(source).VerifyDiagnostics( 1378CreateCompilation(source).VerifyDiagnostics(); 1428CreateCompilation(source).VerifyDiagnostics( 1560CreateCompilation(source).VerifyDiagnostics( 1776CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1797CreateCompilation(source).VerifyDiagnostics( 1839CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1860CreateCompilation(source).VerifyDiagnostics( 1919CreateCompilation(source).VerifyDiagnostics(); 1938CreateCompilation(source).VerifyDiagnostics( 1967CreateCompilation(source).VerifyDiagnostics( 1996CreateCompilation(source).VerifyDiagnostics( 2031CreateCompilation(source).VerifyDiagnostics(
Semantics\NamedAndOptionalTests.cs (23)
38var comp = CreateCompilation(source); 127CreateCompilation(source).VerifyDiagnostics(); 174CreateCompilation(source, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 196CreateCompilation(source).VerifyDiagnostics( 226CreateCompilation(source).VerifyDiagnostics( 256CreateCompilation(source).VerifyDiagnostics( 275CreateCompilation(source).VerifyDiagnostics( 740CreateCompilation(source).VerifyDiagnostics( 810var comp = CreateCompilation(text); 834CreateCompilation(source).VerifyDiagnostics( 851CreateCompilation(source).VerifyDiagnostics( 874CreateCompilation(source).VerifyDiagnostics( 889CreateCompilation(source).VerifyDiagnostics(); 964CreateCompilation(source).VerifyDiagnostics( 1012var comp = CreateCompilation(source); 1123CreateCompilation(source).VerifyDiagnostics( 1379var comp = CreateCompilation(source); 1427CreateCompilation(source).VerifyDiagnostics( 1676var libComp = CreateCompilation(library, options: TestOptions.ReleaseDll, assemblyName: "Library"); 1746var comp = CreateCompilation(source); 2455var comp = CreateCompilation(csharp); 2481var comp = CreateCompilation(csharp); 2521var comp = CreateCompilation(source);
Semantics\NameLengthTests.cs (13)
70var comp = CreateCompilation(source); 188var comp = CreateCompilation(source); 221var comp = CreateCompilation(source); 270var comp = CreateCompilation(source); 313var comp = CreateCompilation(source); 340var comp = CreateCompilation(source); 374var comp = CreateCompilation(source); 404var comp = CreateCompilation(source, options: TestOptions.DebugDll); 429var comp = CreateCompilation(source, options: TestOptions.DebugDll); 460var comp = CreateCompilation(source); 483var comp = CreateCompilation(source); 555var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 567var comp = CreateCompilation(source);
Semantics\NameOfTests.cs (67)
514var comp = CreateCompilation(@" 591var compilation = CreateCompilation( 615var compilation = CreateCompilation( 634var compilation = CreateCompilation( 656var compilation = CreateCompilation( 682var compilation = CreateCompilation(source); 708var compilation = CreateCompilation(source); 968var comp = CreateCompilation(source).VerifyDiagnostics(); 1039var comp = CreateCompilation(source).VerifyDiagnostics(); 1122var comp = CreateCompilation(source).VerifyDiagnostics(); 1202var comp = CreateCompilation(source).VerifyDiagnostics(); 1708CreateCompilation(source, options: option).VerifyDiagnostics( 1725CreateCompilation(source, options: option).VerifyDiagnostics(); 1738CreateCompilation(source, options: option).VerifyDiagnostics(); 1753CreateCompilation(source, options: option).VerifyDiagnostics(); 1767CreateCompilation(source, options: option).VerifyDiagnostics( 1792CreateCompilation(source, options: option).VerifyDiagnostics(); 1851CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1907CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1948CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1968CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1991CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1992CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 1993CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2012CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2038CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2057CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2076CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2097CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2116CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 2128CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2142CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2158CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2174CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2194CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2210CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2272CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2297CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2322CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2344CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2345CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2346CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2365CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2366CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2367CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2385CreateCompilation(""" 2412CreateCompilation(""" 2428CreateCompilation(""" 2444CreateCompilation(""" 2526CreateCompilation(""" 2544CreateCompilation(""" 2562CreateCompilation(""" 2577CreateCompilation(""" 2592CreateCompilation(""" 2609CreateCompilation(""" 2650CreateCompilation(""" 2665CreateCompilation(""" 2793CreateCompilation(""" 2812CreateCompilation(""" 2831CreateCompilation(""" 2860CreateCompilation(""" 2891CreateCompilation(""" 2913CreateCompilation(""" 2938CreateCompilation(""" 2972CreateCompilation(""" 3000CreateCompilation(""" 3029var compilation = CreateCompilation($$"""
Semantics\NativeIntegerTests.cs (240)
70var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 85comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 103var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 776var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib40); 791comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461); 1064comp = CreateCompilation(sourceB, references: new[] { refA1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1080comp = CreateCompilation(sourceC, references: new[] { refA2, refB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1570var comp = CreateCompilation(""); 2925var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2934comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2972var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2981comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3014var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3112var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3115comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3120comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3123comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3159var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3164comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3167comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3194var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3199comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3202comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3253var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3256comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3261comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3264comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3299var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3320comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3323comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3358var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3379comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3382comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3450var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3459comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3473comp = CreateCompilation(source3, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3489var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9); 3492comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 3527var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3530comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3535comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3538comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3563var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3568comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3571comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3596var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3601comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3604comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3627comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3670var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseExe); 3673comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3709comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3743comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3772var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3786comp = CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3794comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 3815var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3818comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 3821comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview); 3833var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3842comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3851comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 3879var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3888comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3897comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 3933var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3936comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3965var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3968comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4001var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4004comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4023var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4026comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4051var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4054comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4106var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4110comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4152comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4170var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 4179comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4211comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4240comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4266comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4282var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4288comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4309var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4340var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 4373CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4382CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4401CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 4402CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 4416var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 4452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.StandardAndCSharp); 4544var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4687var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4758var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4762comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4884var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4887comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 4890comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 4996var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4999comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5063comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5147comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5206comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5226var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5247comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8); 5338var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5357comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5447comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5487var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5503comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5506comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5535var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5550comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5553comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5579var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5606comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5609comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5671var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5684comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5687comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5713var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5734comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5737comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5782var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5823comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5844var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5868comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5871comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5889var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6001comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6004comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6019var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6033comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6036comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6105var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6286var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6360var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6387comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6427comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6545var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6592var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6731var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6840var comp = CreateCompilation(source); 6895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6941var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6953comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 6970var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6984comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 7003var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7022comp = CreateCompilation(source1, references: new[] { ref0 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7042var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7116var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7146var comp = CreateCompilation(source); 7214var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7217comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 7221comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7224comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7227comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 7230comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 7287var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7454var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 9490var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 9725var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10099var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10326var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10493var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 12376var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 12437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12662var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12865var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12940var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13264var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 13282comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13308var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13336var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13366comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13383comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13401var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13431comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13448comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13487var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13516var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13540var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13569var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13605var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13664var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13727var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13872var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 14010var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 14218var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14370var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 14419var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14441var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14474var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14598var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14650var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14704var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14729var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14764var comp = CreateCompilation(source); 14815var comp = CreateCompilation(source); 15064var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15120var comp = CreateCompilation(source); 15162var comp = CreateCompilation(source); 15229var comp = CreateCompilation(source); 15297var comp = CreateCompilation(source); 15312var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15333var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15356var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15407var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15433var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15832var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 15856var comp = CreateCompilation(source); 15877var comp = CreateCompilation(source);
Semantics\NonTrailingNamedArgumentsTests.cs (32)
89var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 197var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 264var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 300var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 334var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular7); 358var comp = CreateCompilation(source); 414var comp = CreateCompilation(source); 446var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 525var comp = CreateCompilation(source); 558var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 589var comp = CreateCompilation(source); 618var comp = CreateCompilation(source); 640var comp = CreateCompilation(source); 673var comp = CreateCompilation(source, options: TestOptions.DebugExe); 701var comp = CreateCompilation(source); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 822var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 874var comp = CreateCompilation(source); 906var comp = CreateCompilation(source); 925var comp = CreateCompilation(source); 971var comp = CreateCompilation(source); 1009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1044var comp = CreateCompilation(source); 1072var comp = CreateCompilation(source); 1090var comp = CreateCompilation(source); 1143var comp = CreateCompilation(source); 1159var comp = CreateCompilation(source); 1177var comp = CreateCompilation(source); 1197var comp = CreateCompilation(source);
Semantics\NullableContextTests.cs (31)
63var comp = CreateCompilation(source, options: WithNullable(globalContext)); 95var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 196var comp = CreateCompilation(source, parseOptions: parseOptions); 245var comp = CreateCompilation(source, parseOptions: parseOptions); 275var refA = CreateCompilation(sourceA).EmitToImageReference(); 304var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: parseOptions); 346var comp = CreateCompilation(source, parseOptions: parseOptions); 385var comp = CreateCompilation(source, parseOptions: parseOptions); 420var comp = CreateCompilation(source, parseOptions: parseOptions); 542var refA = CreateCompilation(sourceA).EmitToImageReference(); 560var comp = CreateCompilation(sourceB, options: options, references: new[] { refA }); 723var comp = CreateCompilation(source); 983var comp = CreateCompilation(source); 1064var comp = CreateCompilation(source, options: options); 1148var comp = CreateCompilation(source); 1207var comp = CreateCompilation(source); 1298var comp = CreateCompilation(source); 1355var comp = CreateCompilation(source); 1450var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 1484var comp = CreateCompilation(new[] { source1, source2 }); 1514var comp = CreateCompilation(source); 1585var comp = CreateCompilation(source); 1737var comp = CreateCompilation(source, options: options); 1767var comp = CreateCompilation(source); 1836var comp = CreateCompilation(source); 1874var comp = CreateCompilation(source); 1923var comp = CreateCompilation(source); 1965var comp = CreateCompilation(source); 2005var comp = CreateCompilation(source); 2044var comp = CreateCompilation(source); 2225var comp = CreateCompilation(source, options: options);
Semantics\NullableConversionTests.cs (2)
653var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithWarningLevel(0)); 747var compilation = CreateCompilation(source);
Semantics\NullableReferenceTypesTests.cs (3722)
101return CreateCompilation(source, options: WithNullableEnable(), references: references, parseOptions: parseOptions); 117CreateCompilation(source).VerifyDiagnostics(); 177var comp = CreateCompilation(@" 231var comp = CreateCompilation(@" 273var comp = CreateCompilation(@" 315var comp = CreateCompilation(@" 357var comp = CreateCompilation(@" 381var comp = CreateCompilation(@" 424var comp = CreateCompilation(@" 441var comp = CreateCompilation(@" 468var comp = CreateCompilation(@" 513var comp = CreateCompilation(@" 533var comp = CreateCompilation(@" 557var comp = CreateCompilation(@" 579var comp = CreateCompilation(@" 602var comp = CreateCompilation(@" 629var comp = CreateCompilation(@" 652var comp = CreateCompilation(@" 677var comp = CreateCompilation(@" 707var comp = CreateCompilation(@" 740var comp = CreateCompilation(@" 770var comp = CreateCompilation(@" 800var comp = CreateCompilation(@" 834var comp = CreateCompilation(@" 863var comp = CreateCompilation(@" 895var comp = CreateCompilation(@" 934var comp = CreateCompilation(@" 967var comp = CreateCompilation(@" 998var comp = CreateCompilation(@" 1031var comp = CreateCompilation(@" 1061var comp = CreateCompilation(@" 1101var comp = CreateCompilation(@" 1125var comp = CreateCompilation(source, options: WithNullableEnable()); 1150var comp = CreateCompilation(source, options: WithNullableEnable()); 1189var compilation = CreateCompilation(source); 1243var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1302var comp = CreateCompilation(@" 1332var comp = CreateCompilation(@" 1346var comp = CreateCompilation(@" 1396var comp = CreateCompilation(@" 1433var comp = CreateCompilation(@" 1473var comp = CreateCompilation(source); 1509var comp = CreateCompilation(source); 1516var comp = CreateCompilation(@" 1557CreateCompilation(text).VerifyDiagnostics( 1609CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1641var comp = CreateCompilation(@" 1747var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1781var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1834var comp = CreateCompilation(source, options: WithNullableEnable()); 1862var comp = CreateCompilation(source, options: WithNullableEnable()); 1887var comp = CreateCompilation(source, options: WithNullableEnable()); 1918CSharpCompilation c = CreateCompilation(new[] { @" 1952var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2001CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2087var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 2104var comp = CreateCompilation(source, options: WithNullableEnable()); 2134var comp = CreateCompilation(source, options: WithNullableEnable()); 2237var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2259var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2298var comp = CreateCompilation(source, options: WithNullableEnable()); 2337var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2370var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2413var comp = CreateCompilation(source, options: WithNullableEnable()); 2455var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2516var comp = CreateCompilation(source, options: WithNullableEnable()); 2564var comp = CreateCompilation(source, options: WithNullableEnable()); 2582CreateCompilation(source).VerifyDiagnostics( 2667var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2693var comp = CreateCompilation(source, options: WithNullable(TestOptions.UnsafeReleaseDll, NullableContextOptions.Enable)); 2734var comp = CreateCompilation(source, options: WithNullableEnable()); 2763var comp = CreateCompilation(@" 2782var comp = CreateCompilation(@" 2815var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2821comp = CreateCompilation(source, options: WithNullableEnable()); 2842comp = CreateCompilation(source, options: WithNullableEnable()); 2859var comp = CreateCompilation(source, options: WithNullableEnable()); 2897var comp = CreateCompilation(source, options: WithNullableEnable()); 2914var comp = CreateCompilation(@" 2998var comp = CreateCompilation(source, options: WithNullableEnable()); 3040var comp = CreateCompilation(source, options: WithNullableEnable()); 3099var comp = CreateCompilation(source, options: WithNullableEnable()); 3122var comp = CreateCompilation(source, options: WithNullableEnable()); 3212var comp = CreateCompilation(source, options: WithNullableEnable()); 3254var comp = CreateCompilation(source.Replace("FIELDTYPE", fieldType), options: WithNullableEnable()); 3289var comp = CreateCompilation(source, options: WithNullableEnable()); 3357var comp = CreateCompilation(source); 3377var comp = CreateCompilation(source); 3434var comp = CreateCompilation(src); 3474var comp = CreateCompilation(src); 3496CreateCompilation(text).VerifyDiagnostics( 3600CreateCompilation(source).VerifyDiagnostics( 3632var comp = CreateCompilation(source); 3678var comp = CreateCompilation(source); 3726var comp = CreateCompilation(source, options: WithNullableEnable()); 3741var comp = CreateCompilation(source, options: WithNullableEnable()); 3756var comp = CreateCompilation(source, options: WithNullableEnable()); 3778var comp = CreateCompilation(source, options: WithNullableEnable()); 3816var comp = CreateCompilation(source, options: WithNullableEnable()); 3880var comp = CreateCompilation(source, options: WithNullableEnable()); 3945CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4020CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4104CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4138var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 4148var c2 = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4399CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4434CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4457CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4481CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 4497CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 4521var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4554var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4586var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4615CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4639CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 4674CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4743var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 4929var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 4973var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5018var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5068var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5104var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5145var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll); 5285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5331var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5393var comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll); 5406comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5419comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5460var comp = CreateCompilation(source); 5486var comp = CreateCompilation(source); 5511var comp = CreateCompilation(source, options: WithNullableEnable()); 5536var comp = CreateCompilation(source, options: WithNullableDisable()); 5556var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5576var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5598var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5616var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5638var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5667var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5701var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5736var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5813var comp = CreateCompilation(new[] { source1, source2, source3, source4 }, 5856var comp = CreateCompilation(source); 5882var comp = CreateCompilation(source, options: WithNullableEnable()); 5902var comp = CreateCompilation(source); 5920var comp = CreateCompilation(source); 5938var comp = CreateCompilation(source); 5954var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Annotations)); 5972var comp = CreateCompilation(source, options: WithNullableDisable()); 5990var comp = CreateCompilation(source, options: WithNullableEnable()); 6015var comp = CreateCompilation(source); 6035var comp = CreateCompilation(source); 6055var comp = CreateCompilation(source); 6074var comp = CreateCompilation(source); 6093var comp = CreateCompilation(source); 6112var comp = CreateCompilation(source); 6135var comp = CreateCompilation(source); 6159var comp = CreateCompilation(source); 6178var comp = CreateCompilation(source); 6201var comp = CreateCompilation(source); 6222var comp = CreateCompilation(source); 6246var comp = CreateCompilation(source); 6270var comp = CreateCompilation(source); 6292var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Warnings)); 6316var comp = CreateCompilation(source, options: WithNullableDisable()); 6340var comp = CreateCompilation(source, options: WithNullableEnable()); 6357var comp1 = CreateCompilation(source); 6364var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 6381var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6398var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6418var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6442var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6465var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6487var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6509var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6532var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6554var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6576var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6601var comp = CreateCompilation(source); 6623var comp = CreateCompilation(source); 6643var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 6667var comp = CreateCompilation(source); 6704var comp = CreateCompilation(source); 6735var comp = CreateCompilation(source); 6789var comp = CreateCompilation(source); 6851var comp = CreateCompilation(source); 6882var comp = CreateCompilation(source); 6904var comp = CreateCompilation(source); 6922var comp = CreateCompilation(source); 6947var comp = CreateCompilation(source); 6965var comp = CreateCompilation(source); 6987var comp = CreateCompilation(source); 7014var comp = CreateCompilation(source); 7045var comp = CreateCompilation(source); 7067var comp = CreateCompilation(source); 7094var comp = CreateCompilation(source); 7124var comp = CreateCompilation(source); 7153var comp = CreateCompilation(source); 7180var comp = CreateCompilation(source); 7209var comp = CreateCompilation(source); 7238var comp = CreateCompilation(source); 7259var comp = CreateCompilation(source); 7280var comp = CreateCompilation(source); 7311var comp = CreateCompilation(source); 7352var comp = CreateCompilation(source); 7424var comp = CreateCompilation(source); 7528var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 7577comp = CreateCompilation(source, options: WithNullableEnable()); 7620var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7644var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7672var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7702var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7724var c = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 7748var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7796var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7811var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7853var c = CreateCompilation(new[] { source }); 7856c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7866var c2 = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 7887var c = CreateCompilation(new[] { source }); 7906var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7940var c = CreateCompilation(new[] { source }); 7943c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7961var c = CreateCompilation(new[] { source }); 7964c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7985var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8007var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8048var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8107var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8129var c = CreateCompilation(source); 8143CSharpCompilation c = CreateCompilation(new[] { @" 8166CSharpCompilation c = CreateCompilation(new[] { @" 8183CSharpCompilation c = CreateCompilation(new[] { @" 8205CSharpCompilation c = CreateCompilation(new[] { @" 8227CSharpCompilation c = CreateCompilation(new[] { @" 8252CSharpCompilation c = CreateCompilation(new[] { @" 8424var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8427var c2 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 8461var c3 = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 8486CSharpCompilation c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8517var comp2 = CreateCompilation(new[] { client }, options: WithNullableEnable(), references: new[] { c.ToMetadataReference() }); 8524c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8527comp2 = CreateCompilation(new[] { client }, options: WithNullableEnable(), references: new[] { c.EmitToImageReference() }); 8534comp2 = CreateCompilation(new[] { client }, options: WithNullableEnable(), references: new[] { c.ToMetadataReference() }); 8560var comp = CreateCompilation(source); 8572comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8582var comp = CreateCompilation("", options: WithNullableDisable(), parseOptions: TestOptions.Regular7); 8589var comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8595comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8601comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8604comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8607comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8610comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8613comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8616comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8619comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8622comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8625comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8628comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8679CSharpCompilation c = CreateCompilation(new[] { @" 8811var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8818var comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8821comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8826comp1 = CreateCompilation(source1, references: compRefs0); 8829comp1 = CreateCompilation(source1, references: metadataRefs0); 8834comp0 = CreateCompilation(source0); 8841comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8844comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8849comp1 = CreateCompilation(source1, references: compRefs0); 8852comp1 = CreateCompilation(source1, references: metadataRefs0); 8856comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: compRefs0); 8859comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: metadataRefs0); 8864comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 8871comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8874comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8879comp1 = CreateCompilation(source1, references: compRefs0); 8882comp1 = CreateCompilation(source1, references: metadataRefs0); 8886comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: compRefs0); 8892comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: metadataRefs0); 8928var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8945var comp1A = CreateCompilation(source1, references: new MetadataReference[] { new CSharpCompilationReference(comp0) }); 8948var comp1B = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }); 8975var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8998var comp1B = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }); 9017var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9043var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9081var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9083var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), 9155var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9158var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), 9174comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), 9242var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 9246var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9250var comp2A = CreateCompilation(source2, references: new[] { ref0, ref1 }, parseOptions: TestOptions.Regular7); 9253var comp2B = CreateCompilation(source2, references: new[] { ref0, ref1 }); 9256var comp2C = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 9277var comp2D = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { ref0, ref1 }); 9325var comp0 = CreateCompilation(source0); 9336var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9340var comp2 = CreateCompilation(source2, references: new[] { ref0, ref1 }); 9368comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 9372comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9376comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 9424var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9427var comp1 = CreateCompilation(source1, references: new MetadataReference[] { new CSharpCompilationReference(comp0) }); 9430comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }); 9448var comp = CreateCompilation(new[] { source }); 9467var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9478var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9492var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9500var lib = CreateCompilation(lib_cs, assemblyName: "lib"); 9503var lib2 = CreateCompilation(lib2_cs, references: new[] { lib.EmitToImageReference() }, assemblyName: "lib2"); 9509var comp = CreateCompilation(source_cs, references: new[] { lib2.EmitToImageReference() }); 9534var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9548var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9566var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9653var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9698var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9717var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9735var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9804var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9854var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9863var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9923var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9956var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9967var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10032var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10083var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10095var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10161var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10203var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10213var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10278var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10312var obliviousComp = CreateCompilation(new[] { obliviousLib }); 10315var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 10330var comp = CreateCompilation(new[] { source }); 10349var comp = CreateCompilation(new[] { source }); 10379var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10382comp = CreateCompilation(new[] { source }); 10385comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10404var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10407comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 10413comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10427var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10441var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10511var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10611var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10684var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10770var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10845var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10933var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10976var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11027var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11078var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11123var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 11170var comp = CreateCompilation(new[] { source }); 11245var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 11330var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11361var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11385CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics(); 11406CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics(); 11429CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics(); 11450var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11488var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11563var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11622var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11689var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11728var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11756var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11816var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 11881var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11919var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11995var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12077var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12172var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12243var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12304var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12394var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12450var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 12484var comp = CreateCompilation(new[] { source }); 12511var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12537var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12559var comp = CreateCompilation(new[] { source }); 12603var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12661var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12760var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12866var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12948var compilation = CreateCompilation(new[] { source }); 13014var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13105var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13184var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13246var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13308var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13376var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13449var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13507var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13554var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13587var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13625var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13662var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13724var compilation = CreateCompilation(new[] { source }); 13849var compilation = CreateCompilation(new[] { source }, new[] { CompileIL(ilSource, prependDefaultHeader: false) }, 13892var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13962var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14013var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14070var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14126var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14170var compilation = CreateCompilation(new[] { source }); 14223var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14279var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14333var compilation1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 14338var compilation2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), 14385var compilation1 = CreateCompilation(new[] { source1 }, options: options1); 14392var compilation2 = CreateCompilation(new[] { source2 }, options: options2, 14399var compilation3 = CreateCompilation(new[] { source1, source2 }, options: options1); 14403var compilation4 = CreateCompilation(new[] { source2, source1 }, options: options1); 14435var comp = CreateCompilation(source, options: TestOptions.DebugDll); 14485var comp = CreateCompilation(source, options: TestOptions.DebugDll); 14561var comp = CreateCompilation(src, options: WithNullableEnable()); 14663var comp = CreateCompilation(src, options: WithNullableEnable()); 14690var comp = CreateCompilation(src, options: WithNullableEnable()); 14763var comp = CreateCompilation(src, options: WithNullableEnable()); 14869var comp = CreateCompilation(src, options: WithNullableEnable()); 14900var comp = CreateCompilation(src, options: WithNullableEnable()); 14930var comp = CreateCompilation(src, options: WithNullableEnable()); 14946var comp = CreateCompilation(@" 14990var comp = CreateCompilation(@" 15052var comp = CreateCompilation(src, options: WithNullableEnable()); 15106var comp = CreateCompilation(src, options: WithNullableEnable()); 15171var comp = CreateCompilation(src, options: WithNullableEnable()); 15213var comp = CreateCompilation(src, options: WithNullableEnable()); 15246var comp = CreateCompilation(src, options: WithNullableEnable()); 15271var comp = CreateCompilation(src, options: WithNullableEnable()); 15319var comp = CreateCompilation(src, options: WithNullableEnable()); 15340var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15361var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15382var comp = CreateCompilation(src, options: WithNullableEnable()); 15403var comp = CreateCompilation(src, options: WithNullableEnable()); 15436var comp = CreateCompilation(src, options: WithNullableEnable()); 15469var comp = CreateCompilation(src, options: WithNullableEnable()); 15495var comp = CreateCompilation(src, options: WithNullableEnable()); 15537var comp = CreateCompilation(src, options: WithNullableEnable()); 15558var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15579var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15600var comp = CreateCompilation(src, options: WithNullableEnable()); 15621var comp = CreateCompilation(src, options: WithNullableEnable()); 15669var comp = CreateCompilation(src, options: WithNullableEnable()); 15726var comp = CreateCompilation(src, options: WithNullableEnable()); 15794var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15853var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15899var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15927var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15948var comp = CreateCompilation(src, options: WithNullableEnable()); 15982var comp = CreateCompilation(src, options: WithNullableEnable()); 16010var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 16038var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 16059var comp = CreateCompilation(src, options: WithNullableEnable()); 16087var comp = CreateCompilation(src, options: WithNullableEnable()); 16134var comp = CreateCompilation(src, options: WithNullableEnable()); 16178var comp = CreateCompilation(src, options: WithNullableEnable()); 16232var comp = CreateCompilation(src, options: WithNullableEnable()); 16260var comp = CreateCompilation(src, options: WithNullableEnable()); 16298var comp = CreateCompilation(src, options: WithNullableEnable()); 16342var comp = CreateCompilation(src, options: WithNullableEnable()); 16399var comp = CreateCompilation(src, options: WithNullableEnable()); 16441var comp = CreateCompilation(src, options: WithNullableEnable()); 16492var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16548var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16620var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16705var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16790var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16863var comp = CreateCompilation(source, options: WithNullableEnable()); 16996var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17071var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17143var comp = CreateCompilation(source, options: WithNullableEnable()); 17169var comp1 = CreateCompilation(source1, options: WithNullableEnable()); 17185var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options: WithNullableEnable()); 17229var comp = CreateCompilation(source, options: WithNullableEnable()); 17345var comp = CreateCompilation(source, options: WithNullableEnable()); 17405var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17473var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17554var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17638var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17722var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17783var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17833var compilation = CreateCompilation(source).VerifyDiagnostics(); 17864var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17888compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 17909var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 17982var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 18034var compilation = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 18103CreateCompilation(new[] { source }, options: WithNullableEnable()). 18129var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18136CSharpCompilation c = CreateCompilation( 18635CSharpCompilation c = CreateCompilation(new[] { @" 18783CSharpCompilation c = CreateCompilation(new[] { @" 18815CSharpCompilation c = CreateCompilation(new[] { @" 18877var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18941var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18963var c2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable()); 18974CSharpCompilation c = CreateCompilation(new[] { @" 19019CSharpCompilation c = CreateCompilation(new[] { @" 19064CSharpCompilation c = CreateCompilation(new[] { @" 19096CSharpCompilation c = CreateCompilation(new[] { @" 19131CSharpCompilation c = CreateCompilation(new[] { @" 19194var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19248var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19272var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19308var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19352CSharpCompilation c = CreateCompilation(new[] { @" 19417CSharpCompilation c = CreateCompilation(new[] { @" 19494CSharpCompilation c = CreateCompilation(new[] { @" 19537CSharpCompilation c = CreateCompilation(new[] { @" 19601var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19630var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19649CSharpCompilation c0 = CreateCompilation(@" 19671CSharpCompilation c = CreateCompilation(new[] { @" 19800CSharpCompilation c0 = CreateCompilation(@" 19807CSharpCompilation c = CreateCompilation(new[] { @" 19868CSharpCompilation c0 = CreateCompilation(@" 19875CSharpCompilation c = CreateCompilation(new[] { @" 19913CSharpCompilation c0 = CreateCompilation(@" 19920CSharpCompilation c = CreateCompilation(new[] { @" 19984CSharpCompilation c0 = CreateCompilation(@" 19991CSharpCompilation c = CreateCompilation(new[] { @" 20034CSharpCompilation c0 = CreateCompilation(@" 20041CSharpCompilation c = CreateCompilation(new[] { @" 20114CSharpCompilation c0 = CreateCompilation(@" 20121CSharpCompilation c = CreateCompilation(new[] { @" 20169CSharpCompilation c0 = CreateCompilation(@" 20189CSharpCompilation c = CreateCompilation(new[] { @" 20296CSharpCompilation c = CreateCompilation(new[] { @" 20334CSharpCompilation c = CreateCompilation(new[] { @" 20370CSharpCompilation c = CreateCompilation(new[] { @" 20403var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 20437var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 20457CSharpCompilation c = CreateCompilation(new[] { @" 20515CSharpCompilation c = CreateCompilation(new[] { @" 20559CSharpCompilation c = CreateCompilation(new[] { @" 20603CSharpCompilation c = CreateCompilation(new[] { @" 20638CSharpCompilation c = CreateCompilation(new[] { @" 20684CSharpCompilation c = CreateCompilation(new[] { @" 20730CSharpCompilation c = CreateCompilation(new[] { @" 20771CSharpCompilation c = CreateCompilation(new[] { @" 20813CSharpCompilation c = CreateCompilation(new[] { @" 23695var c = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular8); 23714var c2 = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26895var c = CreateCompilation(@" 26926var c = CreateCompilation(new[] { @" 26959var c = CreateCompilation(new[] { @" 26998var c = CreateCompilation(new[] { @" 27037var c = CreateCompilation(new[] { @" 27073var c = CreateCompilation(new[] { @" 27107var c = CreateCompilation(new[] { @" 27139var c = CreateCompilation(new[] { @" 27170var c = CreateCompilation(new[] { @" 27199var c = CreateCompilation(new[] { @" 27280var comp = CreateCompilation(src); 27313var comp = CreateCompilation(src); 27340var comp = CreateCompilation(src); 27363var comp = CreateCompilation(src); 27395var comp = CreateCompilation(src); 27420var comp = CreateCompilation(src); 27462var comp = CreateCompilation(src); 27500var comp = CreateCompilation(src); 27562var comp = CreateCompilation(src); 27585var c = CreateCompilation(new[] { @" 27616var c = CreateCompilation(new[] { @" 27647var c = CreateCompilation(new[] { @" 27683var c = CreateCompilation(new[] { @" 27722var c = CreateCompilation(new[] { @" 27759var c = CreateCompilation(new[] { @" 27792var c = CreateCompilation(new[] { @" 27825var c = CreateCompilation(new[] { @" 27858var c = CreateCompilation(new[] { @" 27896var c = CreateCompilation(new[] { @" 27927var c = CreateCompilation(new[] { @" 27962var c = CreateCompilation(new[] { @" 28000var c = CreateCompilation(new[] { @" 28029var c = CreateCompilation(new[] { @" 28064var c = CreateCompilation(new[] { @" 28105var c = CreateCompilation(new[] { @" 28135var c = CreateCompilation(new[] { @" 28169var c = CreateCompilation(new[] { @" 28203var c = CreateCompilation(new[] { @" 28237var c = CreateCompilation(new[] { @" 28271var c = CreateCompilation(new[] { @" 28305var c = CreateCompilation(new[] { @" 28338var c = CreateCompilation(new[] { @" 28365var c = CreateCompilation(new[] { @" 28392var c = CreateCompilation(new[] { @" 28419var c = CreateCompilation(new[] { @" 28442var c = CreateCompilation(new[] { @" 28469var c = CreateCompilation(new[] { @" 28586var c = CreateCompilation(new[] { @" 28617var c = CreateCompilation(new[] { @" 28874CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }).VerifyDiagnostics( 29635var c = CreateCompilation(new[] { @" 29798var c = CreateCompilation(new[] { @" 29893var c = CreateCompilation(new[] { @" 29924var c = CreateCompilation(new[] { @" 29952var c = CreateCompilation(new[] { @" 29982var c = CreateCompilation(new[] { @" 30018var c = CreateCompilation(new[] { @" 30047var c = CreateCompilation(new[] { @" 30939var c = CreateCompilation(new[] { @" 30967var c = CreateCompilation(new[] { @" 31364var c = CreateCompilation(new[] { @" 31396var c = CreateCompilation(new[] { @" 31762CSharpCompilation c = CreateCompilation(new[] { @" 31793CSharpCompilation c = CreateCompilation(new[] { @" 31822CSharpCompilation c = CreateCompilation(new[] { @" 31850CSharpCompilation c = CreateCompilation(new[] { @" 31888CSharpCompilation c = CreateCompilation(new[] { @" 31920CSharpCompilation c = CreateCompilation(new[] { @" 31951CSharpCompilation c = CreateCompilation(new[] { @" 31967CSharpCompilation c = CreateCompilation(new[] { @" 32069var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, 33935CSharpCompilation c = CreateCompilation(new[] { @" 34716CSharpCompilation c = CreateCompilation(new[] { @" 34753CSharpCompilation c = CreateCompilation(new[] { @" 34793CSharpCompilation c = CreateCompilation(new[] { @" 34811CSharpCompilation c = CreateCompilation(new[] { @" 34829CSharpCompilation c = CreateCompilation(new[] { @" 34848CSharpCompilation c = CreateCompilation(new[] { @" 34870CSharpCompilation c = CreateCompilation(new[] { @" 34889CSharpCompilation c = CreateCompilation(new[] { @" 34914CSharpCompilation c = CreateCompilation(new[] { @" 34940CSharpCompilation c = CreateCompilation(new[] { @" 35020CSharpCompilation c = CreateCompilation(new[] { @" 35044CSharpCompilation c = CreateCompilation(new[] { @" 35064CSharpCompilation c = CreateCompilation(new[] { @" 35099var comp = CreateCompilation(source); 35106CSharpCompilation c = CreateCompilation(new[] { @" 35131CSharpCompilation c = CreateCompilation(new[] { @" 35153CSharpCompilation c = CreateCompilation(new[] { @" 35177CSharpCompilation c = CreateCompilation(new[] { @" 35204CSharpCompilation c = CreateCompilation(new[] { @" 35229CSharpCompilation c = CreateCompilation(new[] { @" 35253CSharpCompilation c = CreateCompilation(new[] { @" 35280CSharpCompilation c = CreateCompilation(new[] { @" 35301var c = CreateCompilation(@" 35325var c = CreateCompilation(@" 35350var c = CreateCompilation(@" 35378var c = CreateCompilation(@" 35407var c = CreateCompilation(@" 35451var c = CreateCompilation(@" 35486var c = CreateCompilation(@" 35510var c = CreateCompilation(@" 35534var c = CreateCompilation(@" 35580var c = CreateCompilation(@" 35617var c = CreateCompilation(@" 35733var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 35765var comp = CreateCompilation(source); 35789var comp = CreateCompilation(source); 35824var comp = CreateCompilation(source); 35859var comp = CreateCompilation(source); 35954var c = CreateCompilation(@" 35974var c = CreateCompilation(@" 35999var c = CreateCompilation(@" 36047var c = CreateCompilation(@" 36074var c = CreateCompilation(@" 36099var c = CreateCompilation(@" 36133var c = CreateCompilation(@" 36165var c = CreateCompilation(@" 36189var c = CreateCompilation(@" 36213var c = CreateCompilation(@" 36233var c = CreateCompilation(@" 36259var c = CreateCompilation(@" 36303CSharpCompilation c = CreateCompilation(new[] { @" 36324CSharpCompilation c = CreateCompilation(new[] { @" 36345CSharpCompilation c = CreateCompilation(new[] { @" 36370CSharpCompilation c = CreateCompilation(new[] { @" 36397CSharpCompilation c = CreateCompilation(new[] { @" 36418CSharpCompilation c = CreateCompilation(new[] { @" 36445CSharpCompilation c = CreateCompilation(new[] { @" 36469CSharpCompilation c = CreateCompilation(new[] { @" 36493CSharpCompilation c = CreateCompilation(new[] { @" 36513CSharpCompilation c = CreateCompilation(new[] { @" 36537CSharpCompilation c = CreateCompilation(new[] { @" 36558CSharpCompilation c = CreateCompilation(new[] { @" 36585CSharpCompilation c = CreateCompilation(new[] { @" 36611CSharpCompilation c = CreateCompilation(@" 36631CSharpCompilation c = CreateCompilation(new[] { @" 36653CSharpCompilation c = CreateCompilation(new[] { @" 36673var libComp = CreateCompilation(@" 36680var comp = CreateCompilation(new[] { @" 36702var comp = CreateCompilation(new[] { @" 36729var obliviousComp = CreateCompilation(@" 36736var comp = CreateCompilation(new[] { @" 36794CSharpCompilation c = CreateCompilation(new[] { @" 36818CSharpCompilation c = CreateCompilation(new[] { @" 36842CSharpCompilation c = CreateCompilation(new[] { @" 36876CSharpCompilation c = CreateCompilation(new[] { @" 36906CSharpCompilation c = CreateCompilation(new[] { @" 36935CSharpCompilation c = CreateCompilation(new[] { @" 37016var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 37288CSharpCompilation c = CreateCompilation(new[] { @" 37334CSharpCompilation c = CreateCompilation(new[] { @" 37355CSharpCompilation c = CreateCompilation(new[] { @" 37379CSharpCompilation c = CreateCompilation(new[] { @" 37401CSharpCompilation c = CreateCompilation(new[] { @" 37426CSharpCompilation c = CreateCompilation(new[] { @" 37453CSharpCompilation c = CreateCompilation(new[] { @" 37494CSharpCompilation c = CreateCompilation(new[] { @" 37520CSharpCompilation c = CreateCompilation(new[] { @" 37539CSharpCompilation c = CreateCompilation(new[] { @" 37562CSharpCompilation c = CreateCompilation(new[] { @" 37585CSharpCompilation c = CreateCompilation(new[] { @" 37612CSharpCompilation c = CreateCompilation(new[] { @" 37640CSharpCompilation c = CreateCompilation(new[] { @" 37660CSharpCompilation c = CreateCompilation(new[] { @" 37686CSharpCompilation c = CreateCompilation(new[] { $@" 37783var comp = CreateCompilation(source); 37809CSharpCompilation c = CreateCompilation(new[] { @" 37843CSharpCompilation c = CreateCompilation(new[] { @" 37859CSharpCompilation c = CreateCompilation(new[] { @" 37898CSharpCompilation c = CreateCompilation(new[] { @" 37937CSharpCompilation c = CreateCompilation(new[] { @" 37968CSharpCompilation c = CreateCompilation(new[] { @" 37997CSharpCompilation c = CreateCompilation(new[] { @" 38026CSharpCompilation c = CreateCompilation(new[] { @" 38077var compilation2 = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }); 38084CSharpCompilation c = CreateCompilation(new[] { @" 38127CSharpCompilation c = CreateCompilation(new[] { @" 38158CSharpCompilation c = CreateCompilation(new[] { @" 38176CSharpCompilation c = CreateCompilation(new[] { @" 38207CSharpCompilation c = CreateCompilation(new[] { @" 38241CSharpCompilation c = CreateCompilation(new[] { @" 38264CSharpCompilation c = CreateCompilation(new[] { @" 38290CSharpCompilation c = CreateCompilation(new[] { @" 38319CSharpCompilation c = CreateCompilation(new[] { @" 38353CSharpCompilation c = CreateCompilation(new[] { @" 38471CSharpCompilation c = CreateCompilation(new[] { @" 38503CSharpCompilation c = CreateCompilation(new[] { @" 38535CSharpCompilation c = CreateCompilation(new[] { @" 38560CSharpCompilation c = CreateCompilation(new[] { @" 38585CSharpCompilation c = CreateCompilation(new[] { @" 38614CSharpCompilation c = CreateCompilation(new[] { @" 38643CSharpCompilation c = CreateCompilation(new[] { @" 38664CSharpCompilation c = CreateCompilation(new[] { @" 38683CSharpCompilation c = CreateCompilation(new[] { @" 38756CSharpCompilation c = CreateCompilation(new[] { @" 38780CSharpCompilation c = CreateCompilation(new[] { @" 38804CSharpCompilation c = CreateCompilation(new[] { @" 38827CSharpCompilation c = CreateCompilation(new[] { @" 38846CSharpCompilation c = CreateCompilation(@" 38865CSharpCompilation c = CreateCompilation(new[] { @" 38884CSharpCompilation c = CreateCompilation(new[] { @" 38908CSharpCompilation c = CreateCompilation(new[] { @" 38947CSharpCompilation c = CreateCompilation(new[] { @" 38979CSharpCompilation c = CreateCompilation(new[] { @" 38998CSharpCompilation c = CreateCompilation(new[] { @" 39179CSharpCompilation c = CreateCompilation(new[] { @" 39206CSharpCompilation c = CreateCompilation(@" 39224CSharpCompilation c = CreateCompilation(new[] { @" 39251CSharpCompilation c = CreateCompilation(new[] { @" 39275CSharpCompilation c = CreateCompilation(new[] { @" 39300CSharpCompilation c = CreateCompilation(new[] { @" 39326CSharpCompilation c = CreateCompilation(new[] { @" 39350CSharpCompilation c = CreateCompilation(new[] { @" 39369CSharpCompilation c = CreateCompilation(new[] { @" 39392CSharpCompilation c = CreateCompilation(new[] { @" 39431CSharpCompilation c = CreateCompilation(new[] { @" 39456CSharpCompilation c = CreateCompilation(new[] { @" 39476CSharpCompilation c = CreateCompilation(new[] { @" 39501CSharpCompilation c = CreateCompilation(new[] { @" 39520CSharpCompilation c = CreateCompilation(new[] { @" 39584var comp = CreateCompilation( 39655var comp = CreateCompilation( 39713var comp = CreateCompilation( 39780var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39857var comp = CreateCompilation( 39895var comp = CreateCompilation( 39941var comp = CreateCompilation( 39993var comp = CreateCompilation( 40069var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40187var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40221var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40291var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40305var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 40323comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 41256var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41301var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 42169var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 42221var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 43059var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }); 43143var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }); 43459var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43488var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43887var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44076var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 44168var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44228var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44268var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44287var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 45847var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 45967var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46093var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable()); 46191var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46217var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46235var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46252comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 46285var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46302comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 46345var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46373var c = CreateCompilation(new[] { @" 47214var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }); 47243var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 47298var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47374var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47420var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47439var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47453var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source0 }, options: WithNullableEnable()); 47470comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 47633var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 48800var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 48843var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 48862CSharpCompilation c = CreateCompilation(new[] { @" 48965CSharpCompilation c = CreateCompilation(new[] { @" 49068CSharpCompilation c = CreateCompilation(new[] { @" 49143CSharpCompilation c = CreateCompilation(new[] { @" 49206CSharpCompilation c = CreateCompilation(new[] { @" 49260CSharpCompilation c = CreateCompilation(new[] { @" 49333CSharpCompilation c = CreateCompilation(new[] { @" 49407CSharpCompilation c = CreateCompilation(@" 49437CSharpCompilation c = CreateCompilation(new[] { @" 49463CSharpCompilation c = CreateCompilation(new[] { @" 49490CSharpCompilation c = CreateCompilation(new[] { @" 49513CSharpCompilation c = CreateCompilation(new[] { @" 49549CSharpCompilation c = CreateCompilation(new[] { @" 49585var compilation = CreateCompilation(new[] { @" 49726var compilation = CreateCompilation(new[] { @" 49759var compilation = CreateCompilation(new[] { @" 49785var compilation = CreateCompilation(new[] { @" 49812var compilation = CreateCompilation(new[] { @" 49837CSharpCompilation c = CreateCompilation(@" 49870CSharpCompilation c = CreateCompilation(@" 51236CreateCompilation(source).VerifyDiagnostics( 51946CreateCompilation(source).VerifyDiagnostics( 52213CreateCompilation(source).VerifyDiagnostics( 52241CreateCompilation(source).VerifyDiagnostics( 52286CreateCompilation(source).VerifyDiagnostics( 54307CSharpCompilation c = CreateCompilation(new[] { @" 54334CSharpCompilation c = CreateCompilation(new[] { @" 54362CSharpCompilation c = CreateCompilation(new[] { @" 54389CSharpCompilation c = CreateCompilation(new[] { @" 54416CSharpCompilation c = CreateCompilation(new[] { @" 54443CSharpCompilation c = CreateCompilation(new[] { @" 54461CSharpCompilation c = CreateCompilation(new[] { @" 54494var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54521var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54545var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54572var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54611var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54648var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54697var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54730var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54783var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54821var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54843var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54859var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54940var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 55031var comp = CreateCompilation(source, options: WithNullableEnable()); 55108CreateCompilation(source).VerifyDiagnostics( 55187var comp = CreateCompilation(source, options: WithNullableEnable()); 55226var comp = CreateCompilation(source, options: WithNullableEnable()); 55247var comp = CreateCompilation(source, options: WithNullableEnable()); 55266var comp = CreateCompilation(source, options: WithNullableEnable()); 55313var comp = CreateCompilation(source, options: WithNullableEnable()); 55366var comp = CreateCompilation(source, options: WithNullableEnable()); 55410var comp = CreateCompilation(source, options: WithNullableEnable()); 55435var comp = CreateCompilation(source, options: WithNullableEnable()); 55459var comp = CreateCompilation(source, options: WithNullableEnable()); 55479var comp = CreateCompilation(source, options: WithNullableEnable()); 55512var comp = CreateCompilation(source, options: WithNullableEnable()); 55537var comp = CreateCompilation(source, options: WithNullableEnable()); 55594var comp = CreateCompilation(source, options: WithNullableEnable()); 55650var comp = CreateCompilation(source, options: WithNullableEnable()); 55706var comp = CreateCompilation(source, options: WithNullableEnable()); 55741var comp = CreateCompilation(source, options: WithNullableEnable()); 55771var comp = CreateCompilation(source, options: WithNullableEnable()); 55781var comp = CreateCompilation(@" 55802var comp = CreateCompilation(@" 55827var comp = CreateCompilation(@" 55852var comp = CreateCompilation(@" 55871var comp = CreateCompilation(@" 55889var comp = CreateCompilation(@" 55910var comp = CreateCompilation(@" 55938var comp = CreateCompilation(@" 55963var comp = CreateCompilation(@" 55982var comp = CreateCompilation(@" 55997var comp = CreateCompilation(@" 56012var comp = CreateCompilation(@" 56073var comp = CreateCompilation(source, options: WithNullableEnable()); 56103var comp = CreateCompilation(source, options: WithNullableEnable()); 56136var comp = CreateCompilation(source, options: WithNullableEnable()); 56173var comp = CreateCompilation(source, options: WithNullableEnable()); 56208var comp = CreateCompilation(source, options: WithNullableEnable()); 56242var comp = CreateCompilation(source, options: WithNullableEnable()); 56273var comp = CreateCompilation(source, options: WithNullableEnable()); 56301var comp = CreateCompilation(source, options: WithNullableEnable()); 56340var comp = CreateCompilation(source, options: WithNullableEnable()); 56374var comp = CreateCompilation(source, options: WithNullableEnable()); 56405var comp = CreateCompilation(source, options: WithNullableEnable()); 56434var comp = CreateCompilation(source, options: WithNullableEnable()); 56469var comp = CreateCompilation(source, options: WithNullableEnable()); 56505var comp = CreateCompilation(source, options: WithNullableEnable()); 56546var comp = CreateCompilation(source); 56584var comp = CreateCompilation(source); 56616var comp = CreateCompilation(source, options: WithNullableEnable()); 56645var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 56662var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56684var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56711var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56761var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56786var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56822var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56850var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56876var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56897var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56917var comp = CreateCompilation(source, options: WithNullableEnable(), references: new[] { ref0 }); 56943var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56990var comp = CreateCompilation(source, options: WithNullableEnable(), references: new[] { ref0 }); 57067CreateCompilation(source).VerifyDiagnostics( 57093CreateCompilation(source).VerifyDiagnostics( 57131CreateCompilation(source).VerifyDiagnostics( 57177CreateCompilation(source).VerifyDiagnostics(); 57193CreateCompilation(source).VerifyDiagnostics( 57215CreateCompilation(source).VerifyDiagnostics(); 57236CreateCompilation(source).VerifyDiagnostics( 57269CreateCompilation(source).VerifyDiagnostics( 57304var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57308var comp = CreateCompilation(@" 57396var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57456var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57488var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57512var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57534var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57550var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57565var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { ref0 }); 57609var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 57685var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57725var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57754var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57781var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57809var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57837var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57865var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57893var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57910var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57927var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57944var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57961var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57994var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable(TestOptions.ReleaseExe)); 58047var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58137var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58187var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58239var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58336var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58433var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58448var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 58528var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 58574var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58635var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58685var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58711CSharpCompilation c = CreateCompilation(new[] { @" 58777CSharpCompilation c = CreateCompilation(new[] { @" 58826var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58861var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 58885var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58919var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 58951CreateCompilation(source).VerifyDiagnostics( 58960CSharpCompilation c = CreateCompilation(new[] { @" 59007var comp = CreateCompilation( 59044var comp = CreateCompilation( 59071var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59099var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59135var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59165var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59197var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59230var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59264var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59292var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59317var comp = CreateCompilation( 59349var comp = CreateCompilation( 59389var comp = CreateCompilation( 59416var comp = CreateCompilation( 59428CSharpCompilation c = CreateCompilation(new[] { @" 59500CSharpCompilation c = CreateCompilation(new[] { @" 59559CSharpCompilation c = CreateCompilation(new[] { @" 59592CSharpCompilation c = CreateCompilation(new[] { @" 59692CSharpCompilation c = CreateCompilation(new[] { @" 59764var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 59771CSharpCompilation c = CreateCompilation(new[] { @" 59913CSharpCompilation c = CreateCompilation(new[] { @" 60018CSharpCompilation c = CreateCompilation(new[] { @" 60081var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60120var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60155var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60197var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60222var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60244var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60267var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60341var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60365var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60404var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60448var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60466var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60490var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60512var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60528var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60549var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60583var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60633var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60661var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60715var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60750var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60815var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60855var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60888var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60914var comp = CreateCompilation(source); 61021var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61068var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61142var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 61175var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 61245var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61293var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61322var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61351var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61380var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61409var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61416CSharpCompilation c = CreateCompilation( 61473var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61500var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61646var comp = CreateCompilation(src); 61686var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61714var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61727CSharpCompilation c = CreateCompilation(new[] { @" 61808CSharpCompilation c = CreateCompilation(new[] { @" 61985CSharpCompilation c = CreateCompilation(new[] { @" 62047CSharpCompilation c = CreateCompilation(new[] { @" 62083CSharpCompilation c = CreateCompilation(new[] { @" 62256CSharpCompilation c = CreateCompilation(new[] { @" 62305CSharpCompilation c = CreateCompilation(new[] { @" 62334CSharpCompilation c = CreateCompilation(new[] { @" 62405var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62447var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62466var comp = CreateCompilation(source, options: WithNullableEnable()); 62489var comp = CreateCompilation(source, options: WithNullableEnable()); 62525var comp = CreateCompilation(source, options: WithNullableEnable()); 62558var comp = CreateCompilation(source, options: WithNullableEnable()); 62594var comp = CreateCompilation(source, options: WithNullableEnable()); 62625var comp = CreateCompilation(source, options: WithNullableEnable()); 62662var comp = CreateCompilation(source, options: WithNullableEnable()); 62694var comp = CreateCompilation(source, options: WithNullableEnable()); 62721var comp = CreateCompilation(source, options: WithNullableEnable()); 62742var comp = CreateCompilation(source, options: WithNullableEnable()); 62765var comp = CreateCompilation(source, options: WithNullableEnable()); 62786var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62807var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62830var comp = CreateCompilation(source).VerifyDiagnostics( 62854CSharpCompilation c = CreateCompilation(new[] { @" 62879CSharpCompilation c = CreateCompilation(new[] { @" 62965CSharpCompilation c = CreateCompilation(new[] { @" 63052CSharpCompilation c = CreateCompilation(new[] { @" 63107CSharpCompilation c = CreateCompilation(new[] { @" 63150CSharpCompilation c = CreateCompilation(new[] { @" 63183CSharpCompilation c = CreateCompilation(new[] { @" 63238CSharpCompilation c = CreateCompilation(new[] { @" 63277CSharpCompilation c = CreateCompilation(new[] { @" 63338CSharpCompilation c = CreateCompilation(new[] { @" 63387CSharpCompilation c = CreateCompilation(new[] { @" 63447CSharpCompilation c = CreateCompilation(new[] { @" 63495CSharpCompilation c = CreateCompilation(new[] { @" 63553CSharpCompilation c = CreateCompilation(new[] { @" 63605CSharpCompilation c = CreateCompilation(new[] { @" 63660CSharpCompilation c = CreateCompilation(new[] { @" 63727CSharpCompilation c = CreateCompilation(new[] { @" 63782CSharpCompilation c = CreateCompilation(new[] { @" 63825CSharpCompilation notAnnotated = CreateCompilation(@" 63842CSharpCompilation c = CreateCompilation(new[] { @" 63885CSharpCompilation c = CreateCompilation(new[] { @" 63920CSharpCompilation c = CreateCompilation(new[] { @" 63971var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64045var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64074var comp = CreateCompilation(source); 64114var comp = CreateCompilation(@" 64138var comp = CreateCompilation(@" 64162var comp = CreateCompilation(""" 64213var comp = CreateCompilation(source, options: WithNullableEnable()); 64418var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64446var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64482var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64511var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64538var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64563var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64583var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64603var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64628var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64661var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64710var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64734var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64772var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64819var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64862var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64901var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64926var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65243var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65357var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65460var comp = CreateCompilation( 65494var comp = CreateCompilation(source, options: WithNullableEnable()); 65516var comp = CreateCompilation( 65561var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65581var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65646var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65692var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65727var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65758var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65865var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65886var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 65939CreateCompilation(source).VerifyDiagnostics(); 65972CreateCompilation(source).VerifyDiagnostics(); 66006CreateCompilation(source).VerifyDiagnostics(); 66034CreateCompilation(source).VerifyDiagnostics( 66065CreateCompilation(source).VerifyDiagnostics( 66101CreateCompilation(source).VerifyDiagnostics( 66137CreateCompilation(source).VerifyDiagnostics( 66167CreateCompilation(source).VerifyDiagnostics( 66191CreateCompilation(source).VerifyDiagnostics( 66217CreateCompilation(source).VerifyDiagnostics( 66246CreateCompilation(source).VerifyDiagnostics( 66275CreateCompilation(source).VerifyDiagnostics(); 66298CreateCompilation(source).VerifyDiagnostics( 66326CreateCompilation(source).VerifyDiagnostics( 66354CreateCompilation(source).VerifyDiagnostics( 66390CreateCompilation(source).VerifyDiagnostics( 66419CreateCompilation(source).VerifyDiagnostics( 66460CreateCompilation(source).VerifyDiagnostics(); 66489CreateCompilation(source).VerifyDiagnostics( 66523CreateCompilation(source).VerifyDiagnostics(); 66552CreateCompilation(source).VerifyDiagnostics(); 66581CreateCompilation(source).VerifyDiagnostics(); 66610CreateCompilation(source).VerifyDiagnostics(); 66644CreateCompilation(source).VerifyDiagnostics(); 66681CreateCompilation(source).VerifyDiagnostics(); 66708CreateCompilation(source).VerifyDiagnostics( 66744CreateCompilation(source).VerifyDiagnostics( 66786CreateCompilation(source).VerifyDiagnostics( 66825CreateCompilation(source).VerifyDiagnostics( 66875var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 66952CSharpCompilation c = CreateCompilation(new[] { @" 66993var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 67022var comp = CreateCompilation(source, options: WithNullableEnable()); 67069var comp = CreateCompilation(source, options: WithNullableEnable()); 67116var comp = CreateCompilation(source, options: WithNullableEnable()); 67163var comp = CreateCompilation(source, options: WithNullableEnable()); 67188CSharpCompilation c = CreateCompilation(new[] { @" 67266CSharpCompilation c = CreateCompilation(new[] { @" 67305CSharpCompilation c = CreateCompilation(new[] { @" 67344CSharpCompilation c = CreateCompilation(new[] { @" 67383CSharpCompilation c = CreateCompilation(new[] { @" 67422CSharpCompilation c = CreateCompilation(new[] { @" 67462CSharpCompilation c = CreateCompilation(new[] { @" 67502CSharpCompilation c = CreateCompilation(new[] { @" 67527CSharpCompilation c = CreateCompilation(new[] { @" 67569CSharpCompilation c = CreateCompilation(new[] { @" 67622CSharpCompilation c = CreateCompilation(new[] { @" 67668CSharpCompilation c = CreateCompilation(new[] { @" 67706CSharpCompilation c = CreateCompilation(new[] { @" 67743CSharpCompilation c = CreateCompilation(new[] { @" 67780CSharpCompilation c = CreateCompilation(new[] { @" 67817CSharpCompilation c = CreateCompilation(new[] { @" 67855CSharpCompilation c = CreateCompilation(new[] { @" 67893CSharpCompilation c = CreateCompilation(new[] { @" 67918CSharpCompilation c = CreateCompilation(new[] { @" 67957CSharpCompilation c = CreateCompilation(new[] { @" 68001CSharpCompilation c = CreateCompilation(new[] { @" 68053CSharpCompilation c = CreateCompilation(new[] { @" 68138CSharpCompilation c = CreateCompilation(new[] { @" 68165CSharpCompilation c = CreateCompilation(new[] { @" 68190CSharpCompilation c = CreateCompilation(new[] { @" 68216CSharpCompilation c = CreateCompilation(new[] { @" 68243CSharpCompilation c = CreateCompilation(new[] { @" 68279CSharpCompilation c = CreateCompilation(new[] { @" 68309CSharpCompilation c = CreateCompilation(new[] { @" 68345CSharpCompilation c = CreateCompilation(new[] { @" 68392CSharpCompilation c = CreateCompilation(new[] { @" 68466var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68499var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68533var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68563var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68589var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68626var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68653var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68687var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68723var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68756var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68790var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68824var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68855var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68889var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68920var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68948var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68976var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69004var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69032var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69055var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 69090var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 69101CSharpCompilation c = CreateCompilation(new[] { @" 69127CSharpCompilation c = CreateCompilation(new[] { @" 69195var comp = CreateCompilation(source, options: WithNullableEnable()); 69229var comp = CreateCompilation(source, options: WithNullableEnable()); 69254var comp = CreateCompilation(source, options: WithNullableEnable()); 69278var comp = CreateCompilation(source, options: WithNullableEnable()); 69299var comp = CreateCompilation(source, options: WithNullableEnable()); 69317var comp = CreateCompilation(source, options: WithNullableEnable()); 69338var comp = CreateCompilation(source, options: WithNullableEnable()); 69372var comp = CreateCompilation(source, options: WithNullableEnable()); 69415var comp = CreateCompilation(source, options: WithNullableEnable()); 69458var comp = CreateCompilation(source, options: WithNullableEnable()); 69511var comp = CreateCompilation(source, options: WithNullableEnable()); 69554var comp = CreateCompilation(source, options: WithNullableEnable()); 69607var comp = CreateCompilation(source, options: WithNullableEnable()); 69650var comp = CreateCompilation(source, options: WithNullableEnable()); 69703var comp = CreateCompilation(source, options: WithNullableEnable()); 69745var comp = CreateCompilation(source, options: WithNullableEnable()); 69797var comp = CreateCompilation(source, options: WithNullableEnable()); 70839var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70881var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70926var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70957var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71001var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71044var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71075CSharpCompilation c = CreateCompilation(new[] { @" 71108var comp0 = CreateCompilation(source0, options: WithNullableEnable()); 71129var comp0 = CreateCompilation(source0, options: WithNullableEnable()); 71143CSharpCompilation c = CreateCompilation(new[] { @" 71170CSharpCompilation c = CreateCompilation(new[] { @" 71206CSharpCompilation c = CreateCompilation(new[] { @" 71242var comp = CreateCompilation( 71279var comp = CreateCompilation(source, options: WithNullableEnable()); 71312var comp = CreateCompilation( 71353var comp = CreateCompilation( 71390var comp = CreateCompilation( 71427var comp = CreateCompilation( 71460var comp = CreateCompilation( 71492var comp = CreateCompilation( 71543var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71578var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71605var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71631var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71660var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71686var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71718var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71746var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71775var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 71999var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72030var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72038CSharpCompilation c = CreateCompilation(new[] { @" 72064CSharpCompilation c = CreateCompilation(new[] { @" 72090CSharpCompilation c = CreateCompilation(new[] { @" 72284CSharpCompilation c = CreateCompilation(new[] { @" 72336CSharpCompilation c = CreateCompilation(new[] { @" 72381CSharpCompilation c = CreateCompilation(new[] { @" 72420CSharpCompilation c = CreateCompilation(new[] { @" 72462CSharpCompilation c = CreateCompilation(new[] { @" 72501CSharpCompilation c = CreateCompilation(new[] { @" 72551CSharpCompilation c = CreateCompilation(new[] { @" 72600CSharpCompilation c = CreateCompilation(new[] { @" 72662CSharpCompilation c = CreateCompilation(new[] { @" 72714CSharpCompilation c = CreateCompilation(new[] { @" 72778var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72798var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72830var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 72870var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72877CSharpCompilation c = CreateCompilation(new[] { @" 72911CSharpCompilation c = CreateCompilation(new[] { @" 72962CSharpCompilation c = CreateCompilation(new[] { @" 72997CSharpCompilation c = CreateCompilation(new[] { @" 73048CSharpCompilation c = CreateCompilation(new[] { @" 73114var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73130CSharpCompilation c = CreateCompilation(new[] { @" 73212var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73219CSharpCompilation c = CreateCompilation(new[] { @" 73372CSharpCompilation c = CreateCompilation(new[] { @" 73428var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73484var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73528var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73551var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73575var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73607var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73653var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73687var comp = CreateCompilation(source, options: WithNullableEnable()); 73715var comp = CreateCompilation(source, options: WithNullableEnable()); 73741var comp = CreateCompilation(source, options: WithNullableEnable()); 73758var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73792var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73847var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73887var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73921var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73956var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73996var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74058var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74111var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74148var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74161CSharpCompilation c = CreateCompilation(new[] { @" 74263CSharpCompilation c = CreateCompilation( 74350CSharpCompilation c = CreateCompilation(new[] { @" 74457CSharpCompilation c = CreateCompilation(new[] { @" 74506CSharpCompilation c = CreateCompilation(new[] { @" 74554CSharpCompilation c = CreateCompilation(new[] { @" 74601CSharpCompilation c = CreateCompilation(new[] { @" 74649CSharpCompilation c = CreateCompilation(new[] { @" 74691CSharpCompilation c = CreateCompilation(new[] { @" 74733CSharpCompilation c = CreateCompilation(new[] { @" 74813CSharpCompilation c = CreateCompilation(new[] { @" 74914CSharpCompilation c = CreateCompilation(new[] { @" 74952CSharpCompilation c = CreateCompilation( 75005CSharpCompilation c = CreateCompilation(new[] { @" 75098var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75139var comp = CreateCompilation(source); 75172var comp = CreateCompilation(source); 75206var comp = CreateCompilation(source); 75246var comp = CreateCompilation(source); 75287var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 75318var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 75348var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }); 75355CSharpCompilation c = CreateCompilation(new[] { @" 75440CSharpCompilation c = CreateCompilation(new[] { @" 75485CSharpCompilation c = CreateCompilation(new[] { @" 75517CSharpCompilation c = CreateCompilation(new[] { @" 75566CSharpCompilation c = CreateCompilation(new[] { @" 75645var comp = CreateCompilation(source, options: WithNullableEnable()); 75709var comp = CreateCompilation(source, options: WithNullableEnable()); 75861var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75887CSharpCompilation c = CreateCompilation(new[] { @" 75970var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75989var comp2 = CreateCompilation(source2, references: new[] { comp.EmitToImageReference() }, options: WithNullableEnable()); 76011var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76031var comp2 = CreateCompilation(source2, references: new[] { comp.EmitToImageReference() }, options: WithNullableEnable()); 76059var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76093CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76117CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76139CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76166CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76189CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76218CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 76236CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics(); 76251CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics(); 76442var comp = CreateCompilation(source, options: WithNullableEnable()); 76462var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76482var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76507var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76523var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76544var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76617var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76668var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76721var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76743var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76775var comp = CreateCompilation(source.Replace("OPERATOR", op), options: WithNullableEnable()); 76812var comp = CreateCompilation(source, options: WithNullableEnable()); 76848var comp = CreateCompilation(source, options: WithNullableEnable()); 76873var comp = CreateCompilation(source, options: WithNullableEnable()); 76964var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 77028var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 77065CSharpCompilation c0 = CreateCompilation(new[] { @" 77102CSharpCompilation c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77107c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77116CSharpCompilation c0 = CreateCompilation(new[] { @" 77143CSharpCompilation c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77148c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77177var compilation = CreateCompilation(new[] { source, NullableAttributeDefinition }, options: WithNullableEnable()); 77313CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77344CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77371c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77377c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 77478CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77494CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77506c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77512c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 77539c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77545c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 77646CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77665CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77678c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77684c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 77787CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77806CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77819c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77825c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 77933CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77964CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77980c = CreateCompilation(new[] { source2 }, new[] { c1.ToMetadataReference() }, 77996c = CreateCompilation(new[] { source2 }, new[] { c1.EmitToImageReference() }, 78025var comp = CreateCompilation( 78049var comp = CreateCompilation( 78085var comp = CreateCompilation( 78121var comp = CreateCompilation( 78180CSharpCompilation c = CreateCompilation(new[] { source }, 78226var comp = CreateCompilation(source); 78274var comp = CreateCompilation(source); 78300var comp = CreateCompilation(source); 78321var comp = CreateCompilation(source); 78353var comp = CreateCompilation(source); 78821var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 78848var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 78869var compA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular7); 78880var compB = CreateCompilation( 78908var comp = CreateCompilation( 78944var comp = CreateCompilation( 79074var comp = CreateCompilation( 79138var comp = CreateCompilation( 79194var comp = CreateCompilation( 79220comp = CreateCompilation( 79244var comp = CreateCompilation( 79298var comp = CreateCompilation( 79324var comp = CreateCompilation( 79413var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79437var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79479var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79505var comp = CreateCompilation(source); 79533var comp = CreateCompilation( 79567var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79633var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79670var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79696var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79725var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79754var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79794var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79831var comp = CreateCompilation( 79862var comp = CreateCompilation( 79930var comp = CreateCompilation( 79961var comp = CreateCompilation( 79991var comp = CreateCompilation( 80024var comp = CreateCompilation( 80077var comp = CreateCompilation(source, options: WithNullableEnable()); 80144var comp = CreateCompilation( 80188var comp = CreateCompilation( 80252var comp = CreateCompilation(src, options: WithNullableEnable(TestOptions.DebugDll)); 80279var comp = CreateCompilation( 80324var comp = CreateCompilation( 80350var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80390var comp = CreateCompilation(source, options: WithNullableEnable()); 80517var comp = CreateCompilation(source, options: WithNullableEnable()); 80588var comp = CreateCompilation(source, options: WithNullableEnable()); 80618var comp = CreateCompilation( 80624comp = CreateCompilation( 80630comp = CreateCompilation( 80656var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80676var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80695var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80715var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 80719comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 80723comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 80764var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80836var comp = CreateCompilation( 80859var comp = CreateCompilation( 80882var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80891comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80913var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80919comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80961var comp = CreateCompilation( 80996var comp = CreateCompilation( 81021var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81044var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81073var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81100var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), 81125var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 81131comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81151var comp = CreateCompilation( 81162comp = CreateCompilation( 81173comp = CreateCompilation( 81207var comp = CreateCompilation( 81216comp = CreateCompilation( 81243var comp = CreateCompilation( 81281var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), 81325var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81351var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81394var comp0 = CreateCompilation( 81413var comp1 = CreateCompilation( 81433var comp = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 81469var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81536var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81672var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81767comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 81807var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 81854var libComp = CreateCompilation(new[] { libSource }); 81874var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular7_3); 81881var comp2 = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 81906var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81951var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 81979comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82017var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82061var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: WithNullableEnable()); 82109var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 82154var comp = CreateCompilation(source, options: WithNullableEnable()); 82196var comp = CreateCompilation(source, options: WithNullableEnable()); 82229var comp = CreateCompilation(source, options: WithNullableEnable()); 82264var comp = CreateCompilation(source, options: WithNullableEnable()); 82294CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()).VerifyDiagnostics( 82323var comp = CreateCompilation( 82341var comp = CreateCompilation( 82396var comp = CreateCompilation(source, options: WithNullableEnable()); 82418var comp = CreateCompilation(source, options: WithNullableEnable()); 82443var comp = CreateCompilation(source, options: WithNullableEnable()); 82471var comp = CreateCompilation(source, options: WithNullableEnable()); 82496var comp = CreateCompilation(source, options: WithNullableEnable()); 82518var comp = CreateCompilation(source, options: WithNullableEnable()); 82543var comp = CreateCompilation(source, options: WithNullableEnable()); 82561var comp = CreateCompilation( 82592var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82614var comp = CreateCompilation( 82635var comp = CreateCompilation( 82650var comp = CreateCompilation( 82681var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82708var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82738var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82773var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82817var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82852var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82875var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82898var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82921var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82946var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82971var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82992var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83012var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83079var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 83213var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83260var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 83299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83325var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83365var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83389var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83414var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83433var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83449var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83482var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83540var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83605var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83643var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83692var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83723var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83806var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83921var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83999var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84161var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84251var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84324var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84384var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84441var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84473var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84495var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84523var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84554var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84589var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84617var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84664var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84717var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84746var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84775var comp = CreateCompilation(source, options: WithNullableEnable()); 84805var comp = CreateCompilation(source, options: WithNullableEnable()); 84828var comp = CreateCompilation(source, options: WithNullableEnable()); 84872var comp = CreateCompilation(source, options: WithNullableEnable()); 84923var comp = CreateCompilation(source, options: WithNullableEnable()); 84957var comp = CreateCompilation(source, options: WithNullableEnable()); 84997var comp = CreateCompilation(source, options: WithNullableEnable()); 85034var comp = CreateCompilation(source, options: WithNullableEnable()); 85075var comp = CreateCompilation(source, options: WithNullableEnable()); 85119var comp = CreateCompilation(source, options: WithNullableEnable()); 85181var comp = CreateCompilation(source, options: WithNullableEnable()); 85232var comp = CreateCompilation(source, options: WithNullableEnable()); 85284var comp = CreateCompilation(source, options: WithNullableEnable()); 85360var comp = CreateCompilation(source, options: WithNullableEnable()); 85439var comp = CreateCompilation(source, options: WithNullableEnable()); 85515var comp = CreateCompilation(source, options: WithNullableEnable()); 85571var comp = CreateCompilation(source, options: WithNullableEnable()); 85616var comp = CreateCompilation(source, options: WithNullableEnable()); 85647var comp = CreateCompilation(source, options: WithNullableEnable()); 85684var comp = CreateCompilation(source, options: WithNullableEnable()); 85710var comp = CreateCompilation(source, options: WithNullableEnable()); 85736var comp = CreateCompilation(source, options: WithNullableEnable()); 85765var comp = CreateCompilation(source, options: WithNullableEnable()); 85799var comp = CreateCompilation(source, options: WithNullableEnable()); 85823var comp = CreateCompilation(source, options: WithNullableEnable()); 85867var comp = CreateCompilation(source, options: WithNullableEnable()); 85902var comp = CreateCompilation(source, options: WithNullableEnable()); 85950var comp = CreateCompilation(source, options: WithNullableEnable()); 86013var comp = CreateCompilation(source, options: WithNullableEnable()); 86041var comp = CreateCompilation(source, options: WithNullableEnable()); 86067var comp = CreateCompilation(source, options: WithNullableEnable()); 86090var comp = CreateCompilation(source, options: WithNullableEnable()); 86123var comp = CreateCompilation(source, options: WithNullableEnable()); 86157var comp = CreateCompilation(source, options: WithNullableEnable()); 86193var comp = CreateCompilation(source, options: WithNullableEnable()); 86235var comp = CreateCompilation(source, options: WithNullableEnable()); 86273var comp = CreateCompilation(source, options: WithNullableEnable()); 86299var comp = CreateCompilation(source, options: WithNullableEnable()); 86324var comp = CreateCompilation(source, options: WithNullableEnable()); 86354var comp = CreateCompilation(source, options: WithNullableEnable()); 86383var comp = CreateCompilation(source, options: WithNullableEnable()); 86401var comp = CreateCompilation(source, options: WithNullableEnable()); 86423var comp = CreateCompilation(source, options: WithNullableEnable()); 86456var comp = CreateCompilation(source, options: WithNullableEnable()); 86482var comp = CreateCompilation(source, options: WithNullableEnable()); 86512var comp = CreateCompilation(source, options: WithNullableEnable()); 86537var comp = CreateCompilation(source, options: WithNullableEnable()); 86592var comp = CreateCompilation(source); 86639var comp = CreateCompilation(source); 86707var comp = CreateCompilation(source); 86775var comp = CreateCompilation(source); 86813var comp = CreateCompilation(source); 86841var comp = CreateCompilation(source); 86874var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 86895var comp = CreateCompilation(source, options: WithNullableEnable()); 86921var comp = CreateCompilation(source, options: WithNullableEnable()); 86951var comp = CreateCompilation(source, options: WithNullableEnable()); 86974var comp = CreateCompilation(source, options: WithNullableEnable()); 87002var comp = CreateCompilation(source, options: WithNullableEnable()); 87056var comp = CreateCompilation(source, options: WithNullableEnable()); 87102var comp = CreateCompilation(source, options: WithNullableEnable()); 87132var comp = CreateCompilation(source, options: WithNullableEnable()); 87159var comp = CreateCompilation(source, options: WithNullableEnable()); 87184var comp = CreateCompilation(source, options: WithNullableEnable()); 87218var comp = CreateCompilation(source, options: WithNullableEnable()); 87244var comp = CreateCompilation(source, options: WithNullableEnable()); 87267var comp = CreateCompilation(source, options: WithNullableEnable()); 87294var comp = CreateCompilation(source, options: WithNullableEnable()); 87328var comp = CreateCompilation(source, options: WithNullableEnable()); 87365var comp = CreateCompilation(source, options: WithNullableEnable()); 87392var comp = CreateCompilation(source, options: WithNullableEnable()); 87422var comp = CreateCompilation(source, options: WithNullableEnable()); 87449var comp = CreateCompilation(source, options: WithNullableEnable()); 87483var comp = CreateCompilation(source, options: WithNullableEnable()); 87519var comp = CreateCompilation(source, options: WithNullableEnable()); 87554var comp = CreateCompilation(source, options: WithNullableEnable()); 87584var comp = CreateCompilation(source, options: WithNullableEnable()); 87615var comp = CreateCompilation(source, options: WithNullableEnable()); 87645var comp = CreateCompilation(source, options: WithNullableEnable()); 87681var comp = CreateCompilation(source, options: WithNullableEnable()); 87727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 87752var comp = CreateCompilation(source, options: WithNullableEnable()); 87792var comp = CreateCompilation(source, options: WithNullableEnable()); 87836var comp = CreateCompilation(source, options: WithNullableEnable()); 87871var comp = CreateCompilation(source, options: WithNullableEnable()); 87901var comp = CreateCompilation(source, options: WithNullableEnable()); 87953var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 87994var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88029var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88065var comp = CreateCompilation(source, options: WithNullableEnable()); 88089var comp = CreateCompilation(source, options: WithNullableEnable()); 88119var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88146var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88179var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88208var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88232var comp = CreateCompilation(source, options: WithNullableEnable()); 88252var comp = CreateCompilation(source, options: WithNullableEnable()); 88278var comp = CreateCompilation(source, options: WithNullableEnable()); 88307var comp = CreateCompilation(source, options: WithNullableEnable()); 88338var comp = CreateCompilation(source, options: WithNullableEnable()); 88368var comp = CreateCompilation(source, options: WithNullableEnable()); 88401var comp = CreateCompilation(source, options: WithNullableEnable()); 88426var comp = CreateCompilation(source); 88449var comp = CreateCompilation(source, options: WithNullableEnable()); 88493var comp = CreateCompilation(source, options: WithNullableEnable()); 88542var comp = CreateCompilation(source, options: WithNullableEnable()); 88594var comp = CreateCompilation(source, options: WithNullableEnable()); 88623var comp = CreateCompilation(source, options: WithNullableEnable()); 88654var comp = CreateCompilation(source, options: WithNullableEnable()); 88676var comp = CreateCompilation(source, options: WithNullableEnable()); 88719var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), targetFramework: TargetFramework.Mscorlib46); 88778var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), targetFramework: TargetFramework.Mscorlib46); 88883var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 88889comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88915var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88943var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 88946comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88970var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88995var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89015var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89032var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89043var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89045comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89056var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89058comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89070var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89097var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89142var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89183var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89214var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 89236var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 89312var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89411var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89540var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89617var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89682var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89768var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89825var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89869var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89901var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89940var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89972var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90095var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90119var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90148var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90211var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90274var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90318var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90369var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90413var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90448var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90514var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90573var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90641var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90697var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90751var comp = CreateCompilation(source, options: WithNullableEnable()); 90782var comp = CreateCompilation(source, options: WithNullableEnable()); 90862var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 90932var comp = CreateCompilation(source, options: WithNullableEnable()); 90996var comp = CreateCompilation(source, options: WithNullableEnable()); 91060var comp = CreateCompilation(source, options: WithNullableEnable()); 91098var comp = CreateCompilation(source, options: WithNullableEnable()); 91140var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 91227CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)).VerifyDiagnostics( 91297var comp = CreateCompilation(source, options: WithNullableEnable()); 91475var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 91502var comp = CreateCompilation(src); 91538var comp = CreateCompilation(source, options: WithNullableEnable()); 91578var comp = CreateCompilation(source, options: WithNullableEnable()); 91617var comp = CreateCompilation(source, options: WithNullableEnable()); 91644var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 91672var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable()); 91696var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91723var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91752var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91790var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91822var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91851var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91881var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91908var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91938var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91968var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91995var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92027var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92054var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92088var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92118var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92142var comp = CreateCompilation(source); 92169var comp = CreateCompilation(source); 92649var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92674var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92689CreateCompilation(source).VerifyDiagnostics( 92715CreateCompilation(source).VerifyDiagnostics( 92735var comp = CreateCompilation( 92761var comp = CreateCompilation( 92796var comp = CreateCompilation( 92820var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92842var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92864var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 92878var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92900var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92920var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92968var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92991var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93015var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93035var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93086var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93108var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93130var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93152var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93192var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93253var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93273var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93294var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93319var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93341var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93376var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93407var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93446var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93476var comp = CreateCompilation( 93509var comp = CreateCompilation( 93536var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93561var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93592var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93617var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93651var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93665var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93687var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93708var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93738var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeDebugDll)); 93793var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93818var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93831var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93885var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93917var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93946var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 94010var comp = CreateCompilation( 94081var comp = CreateCompilation( 94129var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 94143var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { ref0 }); 94188var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 94239var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94273var comp = CreateCompilation(source); 94302var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94326var comp = CreateCompilation( 94350var comp = CreateCompilation( 94374var comp = CreateCompilation( 94398var comp = CreateCompilation( 94421var comp = CreateCompilation( 94442var comp = CreateCompilation( 94471var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94499var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94529var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94548var comp = CreateCompilation( 94567var comp = CreateCompilation( 94588var comp = CreateCompilation( 94620var comp = CreateCompilation( 94658var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94686var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94721var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94753var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94789var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94817var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94862var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94932var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95005var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95071var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95106var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95133var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95148var comp0 = CreateCompilation(source0); 95164var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 95187var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95215var comp = CreateCompilation(source, options: WithNullableEnable()); 95247var comp = CreateCompilation(source, options: WithNullableEnable()); 95286var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95322var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95369var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95416var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95449var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95486var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95530var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95564var comp = CreateCompilation(source, options: WithNullableEnable()); 95599var comp = CreateCompilation(source, options: WithNullableEnable()); 95629var comp = CreateCompilation(source, options: WithNullableEnable()); 95663var comp = CreateCompilation(source, options: WithNullableEnable()); 95699var comp = CreateCompilation(source, options: WithNullableEnable()); 95727var comp = CreateCompilation(source, options: WithNullableEnable()); 95750var comp = CreateCompilation(source, options: WithNullableEnable()); 95778var comp = CreateCompilation(source, options: WithNullableEnable()); 95814var comp = CreateCompilation(source, options: WithNullableEnable()); 95844var comp = CreateCompilation(source, options: WithNullableEnable()); 95871var comp = CreateCompilation(source, options: WithNullableEnable()); 95903var comp = CreateCompilation(source, options: WithNullableEnable()); 95941var comp = CreateCompilation(source, options: WithNullableEnable()); 95983var comp = CreateCompilation(source, options: WithNullableEnable()); 96018var comp = CreateCompilation(source, options: WithNullableEnable()); 96049var comp = CreateCompilation(source, options: WithNullableEnable()); 96078var comp = CreateCompilation(source, options: WithNullableEnable()); 96111var comp = CreateCompilation(source, options: WithNullableEnable()); 96140var comp = CreateCompilation(source, options: WithNullableEnable()); 96184var comp = CreateCompilation(source, options: WithNullableEnable()); 96226var comp = CreateCompilation(source, options: WithNullableEnable()); 96260var comp = CreateCompilation(source, options: WithNullableEnable()); 96300var comp = CreateCompilation(source, options: WithNullableEnable()); 96334var comp = CreateCompilation(source, options: WithNullableEnable()); 96365var comp = CreateCompilation(source, options: WithNullableEnable()); 96413var comp = CreateCompilation(source, options: WithNullableEnable()); 96467var comp = CreateCompilation(source, options: WithNullableEnable()); 96532var comp = CreateCompilation(source, options: WithNullableEnable()); 96584var comp = CreateCompilation(source, options: WithNullableEnable()); 96635var comp = CreateCompilation(source, options: WithNullableEnable()); 96677var comp = CreateCompilation(source, options: WithNullableEnable()); 96729var comp = CreateCompilation(source, options: WithNullableEnable()); 96765var comp = CreateCompilation(source, options: WithNullableEnable()); 96792var comp = CreateCompilation(source, options: WithNullableEnable()); 96819var comp = CreateCompilation(source, options: WithNullableEnable()); 96851var comp = CreateCompilation(source, options: WithNullableEnable()); 96892var comp = CreateCompilation(source, options: WithNullableEnable()); 96942var comp = CreateCompilation(source, options: WithNullableEnable()); 96995var comp = CreateCompilation(source, options: WithNullableEnable()); 97036var comp = CreateCompilation(source, options: WithNullableEnable()); 97066var comp = CreateCompilation(source, options: WithNullableEnable()); 97095var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97116var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97138var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97160var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97183var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97211var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97237var comp = CreateCompilation(source, options: WithNullableEnable()); 97269var comp = CreateCompilation(source, options: WithNullableEnable()); 97305var comp = CreateCompilation(source, options: WithNullableEnable()); 97355var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97387var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97420var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97450var comp = CreateCompilation(source, options: WithNullableEnable()); 97477var comp = CreateCompilation(source, options: WithNullableEnable()); 97519var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97544var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97590var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97631var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97691var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97748var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97789var comp = CreateCompilation(source); 97834comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 97848comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 97856comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, skipUsesIsNullable: true); 97859comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9, skipUsesIsNullable: true); 97882var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97915var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97945var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97985var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98013var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98047var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98118var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98143var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98177var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98211var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98241var comp = CreateCompilation(new[] { source, NullableAttributeDefinition }, parseOptions: TestOptions.Regular9); 98282var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98308var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98324var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }) 98350var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98366var comp3 = CreateCompilation(new[] { source3 }, options: WithNullableEnable(), 98393var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98409var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 98476var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98582var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 98645var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98649var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 98671var comp4 = CreateCompilation(new[] { source1 }); 98673var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 98706var comp = CreateCompilation(new[] { source }, 98758var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98773var comp2 = CreateCompilation(new[] { source2 }, 98827var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98829var comp2 = CreateCompilation(NullableContextAttributeDefinition); 98844var comp3 = CreateCompilation(new[] { source3 }, 98899var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98915var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 98976var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99004var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99037var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99077var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99112var comp = CreateCompilation(source); 99128comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99131comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 99134comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 99157var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99182var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99270var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 99333var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 99337var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99359var comp4 = CreateCompilation(new[] { source1 }); 99361var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 99437var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 99439var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 99453var comp3 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 99456var comp4 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp1.ToMetadataReference() }); 99459var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp1.EmitToImageReference() }); 99462var comp6 = CreateCompilation(new[] { source1 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 99472var comp7 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp6.ToMetadataReference() }); 99475var comp9 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp6.ToMetadataReference() }); 99542var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99619var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99702var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99785var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99862var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99936var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99992var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100074var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 100110var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 100114var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100145var comp4 = CreateCompilation(new[] { source1 }); 100147var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 100159var comp6 = CreateCompilation(new[] { source2 }, references: new[] { comp4.ToMetadataReference() }); 100207var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 100229var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 100233var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100256var comp4 = CreateCompilation(new[] { source1 }); 100258var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 100264var comp6 = CreateCompilation(new[] { source2 }, references: new[] { comp4.ToMetadataReference() }); 100282var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100320var comp = CreateCompilation(new[] { source }); 100363var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100407var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3); 100428comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 100460var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100483var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100527var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100569var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100610var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100652var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100747var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100836var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100908var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100935var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100961var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100984var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101022var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101105var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101221var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101285var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 101289var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { reference }); 101366var comp1 = CreateCompilation(source1, options: WithNullableEnable()); 101370var comp2 = CreateCompilation(source2, options: WithNullable(NullableContextOptions.Warnings), references: new[] { reference }); 101406var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101432var compilation = CreateCompilation(source); 101466var compilation = CreateCompilation(source); 101533var compilation = CreateCompilation(source); 101599var compilation = CreateCompilation(source); 101632var compilation = CreateCompilation(source); 101655var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101683var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101712var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib46); 101745var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101791var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101841var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101861var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 101918var comp1 = CreateCompilation(source1); 101941var comp2 = CreateCompilation(source2); 101970var comp1 = CreateCompilation(source1); 101997var comp1 = CreateCompilation(source1); 102024var comp1 = CreateCompilation(source1); 102051var comp1 = CreateCompilation(source1); 102078var comp1 = CreateCompilation(source1); 102105var comp1 = CreateCompilation(source1); 102147var comp1 = CreateCompilation(source1); 102178var comp1 = CreateCompilation(source1); 102212var comp2 = CreateCompilation(source2); 102252var comp1 = CreateCompilation(source1); 102290var comp1 = CreateCompilation(source1); 102328var comp1 = CreateCompilation(source1); 102356var comp1 = CreateCompilation(source1); 102384var comp1 = CreateCompilation(source1); 102412var comp1 = CreateCompilation(source1); 102451var comp1 = CreateCompilation(source1); 102478var comp1 = CreateCompilation(source1); 102500var comp2 = CreateCompilation(source2); 102528var comp1 = CreateCompilation(source1); 102554var comp1 = CreateCompilation(source1); 102580var comp1 = CreateCompilation(source1); 102606var comp1 = CreateCompilation(source1); 102632var comp1 = CreateCompilation(source1); 102658var comp1 = CreateCompilation(source1); 102699var comp1 = CreateCompilation(source1); 102729var comp1 = CreateCompilation(source1); 102762var comp2 = CreateCompilation(source2); 102801var comp1 = CreateCompilation(source1); 102838var comp1 = CreateCompilation(source1); 102875var comp1 = CreateCompilation(source1); 102902var comp1 = CreateCompilation(source1); 102929var comp1 = CreateCompilation(source1); 102956var comp1 = CreateCompilation(source1); 102993var comp1 = CreateCompilation(source1); 103025var comp1 = CreateCompilation(source1); 103056var comp1 = CreateCompilation(source1); 103099var comp1 = CreateCompilation(source1); 103143var comp1 = CreateCompilation(source1); 103184var comp1 = CreateCompilation(source1); 103204var comp2 = CreateCompilation(source2); 103229var comp3 = CreateCompilation(source3); 103258var comp1 = CreateCompilation(source1); 103278var comp2 = CreateCompilation(source2); 103309var comp1 = CreateCompilation(source1); 103329var comp2 = CreateCompilation(source2); 103356var comp3 = CreateCompilation(source3); 103387var comp1 = CreateCompilation(source1); 103408var comp2 = CreateCompilation(source2); 103436var comp1 = CreateCompilation(source1); 103462var comp2 = CreateCompilation(source2); 103489var comp3 = CreateCompilation(source3); 103523var comp1 = CreateCompilation(source1); 103546var comp2 = CreateCompilation(source2); 103570var comp3 = CreateCompilation(source3); 103603var comp1 = CreateCompilation(source1); 103627var comp2 = CreateCompilation(source2); 103652var comp3 = CreateCompilation(source3); 103685var comp1 = CreateCompilation(source1); 103712var comp2 = CreateCompilation(source2); 103740var comp3 = CreateCompilation(source3); 103774var comp1 = CreateCompilation(source1); 103800var comp2 = CreateCompilation(source2); 103827var comp3 = CreateCompilation(source3); 103861var comp1 = CreateCompilation(source1); 103884var comp2 = CreateCompilation(source2); 103908var comp3 = CreateCompilation(source3); 103941var comp1 = CreateCompilation(source1); 103968var comp2 = CreateCompilation(source2); 103996var comp3 = CreateCompilation(source3); 104033var comp1 = CreateCompilation(source1); 104058var comp2 = CreateCompilation(source2); 104084var comp3 = CreateCompilation(source3); 104117var comp1 = CreateCompilation(source1); 104137var comp1 = CreateCompilation(source1); 104159var comp1 = CreateCompilation(source1); 104181var comp2 = CreateCompilation(source2); 104207var comp1 = CreateCompilation(source1); 104228var comp2 = CreateCompilation(source2); 104253var comp1 = CreateCompilation(source1); 104274var comp1 = CreateCompilation(source1); 104304var comp1 = CreateCompilation(source1); 104330var comp1 = CreateCompilation(source1); 104359var comp1 = CreateCompilation(source1); 104391var comp1 = CreateCompilation(source1); 104417var comp1 = CreateCompilation(source1); 104446var comp1 = CreateCompilation(source1); 104474var comp1 = CreateCompilation(source1); 104494var comp1 = CreateCompilation(source1); 104516var comp1 = CreateCompilation(source1); 104543var comp1 = CreateCompilation(source1); 104568var comp1 = CreateCompilation(source1); 104589var comp1 = CreateCompilation(source1); 104619var comp1 = CreateCompilation(source1); 104646var comp1 = CreateCompilation(source1); 104675var comp1 = CreateCompilation(source1); 104706var comp1 = CreateCompilation(source1); 104732var comp1 = CreateCompilation(source1); 104761var comp1 = CreateCompilation(source1); 104800var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 104880var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 104896var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 104953var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 104955var comp2 = CreateCompilation(NullableAttributeDefinition); 104971var comp3 = CreateCompilation(new[] { source3 }, options: WithNullableEnable(), 105028var comp = CreateCompilation(new[] { source }); 105074var comp1 = CreateCompilation(new[] { source1 }); 105125var comp1 = CreateCompilation(new[] { source1 }); 105167var comp1 = CreateCompilation(new[] { source1 }); 105210var comp1 = CreateCompilation(new[] { source1 }); 105249var comp1 = CreateCompilation(new[] { source1 }); 105289var comp1 = CreateCompilation(new[] { source1 }); 105329var comp1 = CreateCompilation(new[] { source1 }); 105375var comp1 = CreateCompilation(new[] { source1 }); 105412var comp1 = CreateCompilation(new[] { source1 }); 105442var comp1 = CreateCompilation(new[] { source1 }); 105528var comp1 = CreateCompilation(new[] { source1 }); 105600var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 105636var comp1 = CreateCompilation(new[] { source1 }); 105669var comp1 = CreateCompilation(new[] { source1 }); 105702var comp1 = CreateCompilation(new[] { source1 }); 105732var comp1 = CreateCompilation(new[] { source1 }); 105762var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105789var comp1 = CreateCompilation(new[] { source1 }); 105810var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105839var comp = CreateCompilation(source); 105864var comp1 = CreateCompilation(new[] { source }, options: options); 105893var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 105904var comp2 = CreateCompilation(new[] { source }, options: WithNullableDisable()); 105968var comp1 = CreateCompilation(new[] { source1 }); 106109var comp2 = CreateCompilation(new[] { source2 }, references: new[] { reference }, parseOptions: TestOptions.Regular8); 106151var comp1 = CreateCompilation(new[] { source1 }); 106182var comp1 = CreateCompilation(new[] { source1 }); 106213var comp1 = CreateCompilation(new[] { source1 }); 106245var comp1 = CreateCompilation(new[] { source1 }); 106278var comp1 = CreateCompilation(new[] { source1 }); 106311var comp1 = CreateCompilation(new[] { source1 }); 106343var comp1 = CreateCompilation(new[] { source1 }); 106375var comp1 = CreateCompilation(new[] { source1 }); 106408var comp1 = CreateCompilation(new[] { source1 }); 106438var comp1 = CreateCompilation(new[] { source1 }); 106469var comp1 = CreateCompilation(new[] { source1 }); 106500var comp1 = CreateCompilation(new[] { source1 }); 106532var comp1 = CreateCompilation(new[] { source1 }); 106564var comp1 = CreateCompilation(new[] { source1 }); 106597var comp1 = CreateCompilation(new[] { source1 }); 106628var comp1 = CreateCompilation(new[] { source1 }); 106660var comp1 = CreateCompilation(new[] { source1 }); 106691var comp1 = CreateCompilation(new[] { source1 }); 106723var comp1 = CreateCompilation(new[] { source1 }); 106753var comp1 = CreateCompilation(new[] { source1 }); 106783var comp1 = CreateCompilation(new[] { source1 }); 106813var comp1 = CreateCompilation(new[] { source1 }); 106843var comp1 = CreateCompilation(new[] { source1 }); 107170var comp1 = CreateCompilation(new[] { source1 }); 107207var comp1 = CreateCompilation(new[] { source1 }); 107243var comp1 = CreateCompilation(new[] { source1 }); 107280var comp1 = CreateCompilation(new[] { source1 }); 107316var comp1 = CreateCompilation(new[] { source1 }); 107354var comp1 = CreateCompilation(new[] { source1 }); 107398var comp1 = CreateCompilation(new[] { source1 }); 107401var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 107439var comp1 = CreateCompilation(new[] { source1 }); 107480var comp1 = CreateCompilation(new[] { source1 }); 107516var comp1 = CreateCompilation(new[] { source1 }); 107553var comp1 = CreateCompilation(new[] { source1 }); 107589var comp1 = CreateCompilation(new[] { source1 }); 107625var comp1 = CreateCompilation(new[] { source1 }); 107661var comp1 = CreateCompilation(new[] { source1 }); 107697var comp1 = CreateCompilation(new[] { source1 }); 107722var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 107778var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107853var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107914var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107957var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108008var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108078var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108135var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108180var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108225var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108269var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108327var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108392var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108444var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108498var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108539var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108612var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108701var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108771var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108830var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108883var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108915var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108947var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108985var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109023var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109073var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109131var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109192var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109249var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 109253var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { reference }); 109308var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109347var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109408var comp1 = CreateCompilation(source); 109459var comp1 = CreateCompilation(source); 109531var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109647var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109702var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109736var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109763var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109831var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109880var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109907var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109971var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110012var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110133var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110164var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110194var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110228var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110287var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110343var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110415var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110441var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110471var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110494var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110537var comp = CreateCompilation(source1, new[] { ref0 }); 110617var comp = CreateCompilation(source1, new[] { ref0 }); 110632var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110680var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110717var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110781var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110825var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110872var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110906var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110953var comp = CreateCompilation(new[] { source1 }, new[] { ref0 }, options: WithNullableEnable()); 110986var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 110999comp = CreateCompilation(new[] { source1 }, new[] { ref0 }, options: WithNullableEnable()); 111002comp = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 111005comp = CreateCompilation(new[] { source1 }, new[] { ref0 }, options: WithNullableEnable()); 111032var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111055var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111108var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 111110comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111121var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111137var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111175var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111207var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111239var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111265var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111300var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111322var comp0 = CreateCompilation(source0); 111329var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111341var comp0 = CreateCompilation(source0); 111352var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111370var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111388var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111406var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111424var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111439var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111457var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111475var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111493var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111508var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111523var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111542var comp0 = CreateCompilation(new[] { source0 }); 111564var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111594var comp0 = CreateCompilation(new[] { source0 }, parseOptions: TestOptions.Regular8); 111658comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 111679comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 111745var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111799var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111846var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111864var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111888var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111898var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111908var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111950var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }); 111982var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112024var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }); 112070var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 112082var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 112125var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112181var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112210var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112251var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112278var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112341var comp = CreateCompilation(source, options: WithNullableEnable()); 112379var comp = CreateCompilation(source, options: WithNullableEnable()); 112418var comp = CreateCompilation(source, options: WithNullableEnable()); 112460var comp = CreateCompilation(source, options: WithNullableEnable()); 112488var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 112532var comp0 = CreateCompilation(source0); 112534var comp = CreateCompilation(source, references: new[] { ref0 }); 112555comp0 = CreateCompilation(new[] { source0 }, options: WithNullableDisable()); 112557comp = CreateCompilation(source, references: new[] { ref0 }); 112567comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 112570comp = CreateCompilation(source, references: new[] { ref0 }); 112586comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 112630var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 112641var comp = CreateCompilation(source, references: new[] { ref0 }); 112650comp0 = CreateCompilation(new[] { source0 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 112660comp = CreateCompilation(source, references: new[] { ref0 }); 112669comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 112672comp = CreateCompilation(source, references: new[] { ref0 }); 112680comp = CreateCompilation(source, references: new[] { ref0 }, options: WithNullableEnable()); 112715var comp = CreateCompilation(source); 112717comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 112780var comp = CreateCompilation(new[] { source }); 112870var comp = CreateCompilation(new[] { source }); 112907var comp = CreateCompilation(new[] { source }); 112927var comp = CreateCompilation(new[] { source }); 112987var comp = CreateCompilation(new[] { source }); 113069var comp = CreateCompilation(new[] { source }); 113105var comp = CreateCompilation(new[] { source }); 113176var comp1 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "") }); 113179var comp2 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "annotations") }); 113231var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113260var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113297var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113369var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113391var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113421var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113446var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113476var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113501var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113531var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113556var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113589var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113620var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113647var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113666var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113690var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113712var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113745var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113766var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113798var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114023var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114247var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114272var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114305var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114333var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114366var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114394var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114424var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114460var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114497var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114533var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114563var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114595var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114626var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114657var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114687var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114718var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114748var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114777var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114976var comp = CreateCompilation(new[] { source }); 114999var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115031var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 115117var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115150var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115199var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115228var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115255var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115284var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115325var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115363var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115397var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115435var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115480var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115520var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115551var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115586var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115605var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115641var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115953CreateCompilation(text, options: WithNullableEnable()).VerifyDiagnostics(); 115981CreateCompilation(text, options: WithNullableEnable()).VerifyDiagnostics(); 116013CreateCompilation(text, options: WithNullableEnable()).VerifyDiagnostics(); 116045CreateCompilation(text, options: WithNullableEnable()).VerifyDiagnostics(); 116090CreateCompilation(text, options: WithNullableEnable()).VerifyDiagnostics( 116129CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 116148var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116159var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116162var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116185var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116197var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116200var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116223var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116234var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116237var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116260var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116271var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116274var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116297var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116313var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116316var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116339var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116355var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116358var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116378var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116396var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116399var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116419var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116440var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116443var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116466var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116481var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116484var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116507var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116524var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116527var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116544CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll)).VerifyEmitDiagnostics(); 116545CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyEmitDiagnostics(); 116795var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(TestOptions.ReleaseExe)); 116813CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 116834CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 116859CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 116876CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 116894CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 116912CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 116943CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 116990CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117019CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 117041CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117075CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 117097CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117129CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117157CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117190CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117218CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117251CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117274CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117301CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117328CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117355CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117379CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117517CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117606CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117657CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117687CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117715CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117751CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117777CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 117794CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117815CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117838CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117861CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117882CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117906CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117932CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117955CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117976CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 117999CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118022CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118039CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118060CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118080CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118108CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118135CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118163CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118187CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118207CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118231CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118251CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118276CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118299CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118322CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118347CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118372CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118394CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118414CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118437CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118460CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118486CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118506CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118527CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118545CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118571CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118604CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118636CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118661CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118685CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118710CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118735CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118764CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118795CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118822CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118848CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118870CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118888CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118906CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 118929CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118956CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 118982CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119014CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119039CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119061CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119088CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119125CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119162CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119191CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119228CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119255CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119284CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119306CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119329CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119350CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119374CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119394CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119421CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119445CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119472CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119496CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119520CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119549CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119570CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119593CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119623CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119660CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119694CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119731CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119764CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119780CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119803CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 119830CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119859CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119881CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 119904CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119933CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119962CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 119991CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120020CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120045CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120071CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120097CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120122CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120155CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120188CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120218CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120254CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120290CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120321var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120347var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120373var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120397var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120421var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 120444var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120472CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120503CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120530CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120553CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120579CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120599var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120615var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120631var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120655var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120672CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120693CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120714CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120741CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120768CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120791CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120813CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120835CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120862CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120886var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120903CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120924CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120944CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 120967CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 120997CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121025CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121054CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121080CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121107CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121127CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121147CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 121164CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121191CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121222CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121252CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121278CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121305CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121332CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121356CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121384CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 121409CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121436CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121465CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121496CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121526CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121555CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121582CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121610CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121637CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121665CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121692CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121717CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121741CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121764CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121789CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121814CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121838CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121863CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121887CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121915CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121940CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121966CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 121988CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122014CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122035CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122056CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122078CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122099CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122120CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122142CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122164CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122185CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122204CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122229CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122255CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122280CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122305CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122331CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122356CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122382CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122406CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122428CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122449CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122471CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122496CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122522CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122547CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122572CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122597CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122615CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122636CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122655CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122681CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122706CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122733CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122760CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122780CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122803CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122824CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122852CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122879CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122904CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122926CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122944CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122963CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 122985CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123003CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123021CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123040CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123062CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123080CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123099CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123125CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123150CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123174CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123196CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123218CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123242CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123264CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123286CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123312CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123342CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123361CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123381CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123405CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123434CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123464CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123490CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 123509CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123546CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics( 123580var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123615var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123652var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123682var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123721var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123752var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123807var comp = CreateCompilation(new[] { source }); 123810comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Warnings)); 123813comp = CreateCompilation(new[] { @"#nullable enable warnings 123817comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123820comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations)); 123823comp = CreateCompilation(new[] { @"#nullable enable annotations 124131var compilation = CreateCompilation(new[] { source }, new[] { CompileIL(ilSource) }); 124222var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124257var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124293var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124333var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124376var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124423var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124469var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124511var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124553var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124593var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124833var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124880var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124918var comp = CreateCompilation(source, options: WithNullableEnable()); 124971var comp = CreateCompilation(source, options: WithNullableEnable()); 125023var comp = CreateCompilation(source, options: WithNullableEnable()); 125050var comp = CreateCompilation(source, options: WithNullableEnable()); 125074var comp = CreateCompilation(source, options: WithNullableEnable()); 125107var comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable()); 125112comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithSpecificDiagnosticOptions(id, option)); 125115comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithGeneralDiagnosticOption(option)); 125126comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 125135comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125144comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125153comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125164comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 125173comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125184comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125194comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125199comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125205comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125210comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125219comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125230comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125240comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125290var comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable()); 125295comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithSpecificDiagnosticOptions(id1, id2, option)); 125298comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithGeneralDiagnosticOption(option)); 125311comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 125314comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Default)); 125317comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125320comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125325comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Error)); 125328comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125333comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125337comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125341comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125346comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125350comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Hidden)); 125353comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125358comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125362comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 125461var comp = CreateCompilation(new[] { source, source2 }, options: options); 125470comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125479comp = CreateCompilation(new[] { source, source2 }, options: options.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125488comp = CreateCompilation(new[] { source, source2 }, options: options. 125499comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 125508comp = CreateCompilation(new[] { source, source2 }, options: options. 125519comp = CreateCompilation(new[] { source, source2 }, options: options. 125529comp = CreateCompilation(new[] { source, source2 }, options: options. 125534comp = CreateCompilation(new[] { source, source2 }, options: options. 125540comp = CreateCompilation(new[] { source, source2 }, options: options. 125545comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125554comp = CreateCompilation(new[] { source, source2 }, options: options. 125565comp = CreateCompilation(new[] { source, source2 }, options: options. 125575comp = CreateCompilation(new[] { source, source2 }, options: options. 125881var comp = CreateCompilation(source); 126000var comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 126004comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126008comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126012comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126018comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 126022comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126028comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126033comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126038comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126044comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126049comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126053comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126059comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126064comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions. 126075var comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 126080comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithSpecificDiagnosticOptions(id, option)); 126083comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithGeneralDiagnosticOption(option)); 126146var comp = CreateCompilation(new[] { source, source2 }, options: options); 126150comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126154comp = CreateCompilation(new[] { source, source2 }, options: options.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126158comp = CreateCompilation(new[] { source, source2 }, options: options. 126164comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 126168comp = CreateCompilation(new[] { source, source2 }, options: options. 126174comp = CreateCompilation(new[] { source, source2 }, options: options. 126179comp = CreateCompilation(new[] { source, source2 }, options: options. 126184comp = CreateCompilation(new[] { source, source2 }, options: options. 126190comp = CreateCompilation(new[] { source, source2 }, options: options. 126195comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126199comp = CreateCompilation(new[] { source, source2 }, options: options. 126205comp = CreateCompilation(new[] { source, source2 }, options: options. 126210comp = CreateCompilation(new[] { source, source2 }, options: options. 126680var comp = CreateCompilation(source, options: WithNullableEnable()); 126714var comp = CreateCompilation(source, options: WithNullableEnable()); 126751var comp = CreateCompilation(source, options: WithNullableEnable()); 126791var comp = CreateCompilation(source, options: WithNullableEnable()); 126823var comp = CreateCompilation(source, options: WithNullableEnable()); 127123var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: WithNullableEnable()); 127143var comp = CreateCompilation(source); 127159var comp = CreateCompilation(source, options: WithNullableEnable()); 127179var comp = CreateCompilation(source, options: WithNullableEnable()); 127194var comp = CreateCompilation(source, options: WithNullableEnable()); 127219var comp = CreateCompilation(source, options: WithNullableEnable()); 127242var comp = CreateCompilation(source, options: WithNullableEnable()); 127262var comp = CreateCompilation(source, options: WithNullableEnable()); 127288var comp = CreateCompilation(source, options: WithNullableEnable()); 127303var comp = CreateCompilation(source, options: WithNullableEnable()); 127328var comp = CreateCompilation(source, options: WithNullableEnable()); 127358var comp = CreateCompilation(source, options: WithNullableEnable()); 127390var comp = CreateCompilation(source, options: WithNullableEnable()); 127422var comp = CreateCompilation(source, options: WithNullableEnable()); 127473var comp = CreateCompilation(source, options: WithNullableEnable()); 127531var comp = CreateCompilation(source, options: WithNullableEnable()); 127573var comp = CreateCompilation(source, options: WithNullableEnable()); 127624var comp = CreateCompilation(source, options: WithNullableEnable()); 127660var comp = CreateCompilation(source, options: WithNullableEnable()); 127689var comp = CreateCompilation(source, options: WithNullableEnable()); 127752var comp = CreateCompilation(source, options: WithNullableEnable()); 127846var comp = CreateCompilation(source, options: WithNullableEnable()); 127928var comp = CreateCompilation(source, options: WithNullableEnable()); 127989var comp = CreateCompilation(source, options: WithNullableEnable()); 128054var comp = CreateCompilation(source, options: WithNullableEnable()); 128120var comp = CreateCompilation(source, options: WithNullableEnable()); 128174var comp = CreateCompilation(source, options: WithNullableEnable()); 128231var comp = CreateCompilation(source, options: WithNullableEnable()); 128269var comp = CreateCompilation(source, options: WithNullableEnable()); 128326var comp = CreateCompilation(source, options: WithNullableEnable()); 128374var comp = CreateCompilation(source, options: WithNullableEnable()); 128446var comp = CreateCompilation(source, options: WithNullableEnable()); 128487var comp = CreateCompilation(source, options: WithNullableEnable()); 128551var comp = CreateCompilation(source, options: WithNullableEnable()); 128604var comp = CreateCompilation(source, options: WithNullableEnable()); 128667var comp = CreateCompilation(source, options: WithNullableEnable()); 128717var comp = CreateCompilation(source, options: WithNullableEnable()); 128783var comp = CreateCompilation(source, options: WithNullableEnable()); 128839var comp = CreateCompilation(source, options: WithNullableEnable()); 128906var comp = CreateCompilation(source, options: WithNullableEnable()); 128950var comp = CreateCompilation(source, options: WithNullableEnable()); 129009var comp = CreateCompilation(source, options: WithNullableEnable()); 129058var comp = CreateCompilation(source, options: WithNullableEnable()); 129112var comp = CreateCompilation(source, options: WithNullableEnable()); 129163var comp = CreateCompilation(source, options: WithNullableEnable()); 129210var comp = CreateCompilation(source, options: WithNullableEnable()); 129258var comp = CreateCompilation(source, options: WithNullableEnable()); 129299var comp = CreateCompilation(source, options: WithNullableEnable()); 129359var comp = CreateCompilation(source, options: WithNullableEnable()); 129399var comp = CreateCompilation(source, options: WithNullableEnable()); 129422var comp = CreateCompilation(source, options: WithNullableEnable()); 129474var comp = CreateCompilation(source, options: WithNullableEnable()); 129527var comp = CreateCompilation(source, options: WithNullableEnable()); 129591var comp = CreateCompilation(source, options: WithNullableEnable()); 129639var comp = CreateCompilation(source, options: WithNullableEnable()); 129697var comp = CreateCompilation(source, options: WithNullableEnable()); 129738var comp = CreateCompilation(source, options: WithNullableEnable()); 129787var comp = CreateCompilation(source, options: WithNullableEnable()); 129835var comp = CreateCompilation(source, options: WithNullableEnable()); 129875var comp = CreateCompilation(source, options: WithNullableEnable()); 129906var comp = CreateCompilation(source, options: WithNullableEnable()); 129953var comp = CreateCompilation(source, options: WithNullableEnable()); 129986var comp = CreateCompilation(source, options: WithNullableEnable()); 130020var comp = CreateCompilation(source, options: WithNullableEnable()); 130062var comp = CreateCompilation(source, options: WithNullableEnable()); 130094var comp = CreateCompilation(source, options: WithNullableEnable()); 130124var comp = CreateCompilation(source, options: WithNullableEnable()); 130155var comp = CreateCompilation(source, options: WithNullableEnable()); 130186var comp = CreateCompilation(source, options: WithNullableEnable()); 130223var comp = CreateCompilation(source, options: WithNullableEnable()); 130246var comp = CreateCompilation(source, options: WithNullableEnable()); 130265var comp = CreateCompilation(source, options: WithNullableEnable()); 130282var comp = CreateCompilation(source, options: WithNullableEnable()); 130309var comp = CreateCompilation(source, options: WithNullableEnable()); 130353var comp = CreateCompilation(source, options: WithNullableEnable()); 130415var comp = CreateCompilation(source, options: WithNullableEnable()); 130454var comp = CreateCompilation(source, options: WithNullableEnable()); 130499var comp = CreateCompilation(source, options: WithNullableEnable()); 130529var comp = CreateCompilation(source, options: WithNullableEnable()); 130572var comp = CreateCompilation(source, options: WithNullableEnable()); 130611var comp = CreateCompilation(source, options: WithNullableEnable()); 130690var comp = CreateCompilation(source, options: WithNullableEnable()); 130747var comp = CreateCompilation(source, options: WithNullableEnable()); 130783var comp = CreateCompilation(source, options: WithNullableEnable()); 130815var comp = CreateCompilation(source, options: WithNullableEnable()); 130838var comp = CreateCompilation(source, options: WithNullableEnable()); 130873var comp = CreateCompilation(source, options: WithNullableEnable()); 130912var comp = CreateCompilation(source, options: WithNullableEnable()); 130936var comp = CreateCompilation(source, options: WithNullableEnable()); 130960var comp = CreateCompilation(source, options: WithNullableEnable()); 130987var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 131058var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }, options: WithNullableEnable()); 131093var comp = CreateCompilation(source, options: WithNullableEnable()); 131128var comp = CreateCompilation(source, options: WithNullableEnable()); 131167var comp = CreateCompilation(source, options: WithNullableEnable()); 131206var comp = CreateCompilation(source, options: WithNullableEnable()); 131289var comp = CreateCompilation(source, options: WithNullableEnable()); 131319var comp = CreateCompilation(source, options: WithNullableEnable()); 131346var comp = CreateCompilation(source, options: WithNullableEnable()); 131372var comp = CreateCompilation(source, options: WithNullableEnable()); 131398var comp = CreateCompilation(source, options: WithNullableEnable()); 131416var comp = CreateCompilation(source, options: WithNullableEnable()); 131434var comp = CreateCompilation(source, options: WithNullableEnable()); 131453var comp = CreateCompilation(source, options: WithNullableEnable()); 131472var comp = CreateCompilation(source, options: WithNullableEnable()); 131494var comp = CreateCompilation(source, options: WithNullableEnable()); 131528var comp = CreateCompilation(source, options: WithNullableEnable()); 131563var comp = CreateCompilation(source, options: WithNullableEnable()); 131601var comp = CreateCompilation(source, options: WithNullableEnable()); 131623var comp = CreateCompilation(source, options: WithNullableEnable()); 131645var comp = CreateCompilation(source, options: WithNullableEnable()); 131691var comp = CreateCompilation(source, options: WithNullableEnable()); 131724var comp = CreateCompilation(source, options: WithNullableEnable()); 131758var comp = CreateCompilation(source, options: WithNullableEnable()); 131791var comp = CreateCompilation(source, options: WithNullableEnable()); 131816var comp = CreateCompilation(source, options: WithNullableEnable()); 131849var comp = CreateCompilation(source, options: WithNullableEnable()); 131884var comp = CreateCompilation(source, options: WithNullableEnable()); 131919var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 131954var comp = CreateCompilation(source, options: WithNullableEnable()); 131982var comp = CreateCompilation(source, options: WithNullableEnable()); 132061var comp = CreateCompilation(source, options: WithNullableEnable()); 132105var comp = CreateCompilation(source, options: WithNullableEnable()); 132148var comp = CreateCompilation(source, options: WithNullableEnable()); 132201var comp = CreateCompilation(source, options: WithNullableEnable()); 132220var comp = CreateCompilation(source, options: WithNullableEnable()); 132246var comp = CreateCompilation(source, options: WithNullableEnable()); 132271var comp = CreateCompilation(source, options: WithNullableEnable()); 132289var comp = CreateCompilation(source, options: WithNullableEnable()); 132318var comp = CreateCompilation(source, options: WithNullableEnable()); 132337CreateCompilation(source, options: WithNullableEnable()).VerifyDiagnostics(); 132363var comp = CreateCompilation(source, options: WithNullableEnable()); 132389var comp = CreateCompilation(source, options: WithNullableEnable()); 132417var comp = CreateCompilation(source, options: WithNullableEnable()); 132443var comp = CreateCompilation(source, options: WithNullableEnable()); 132477var comp = CreateCompilation(source, options: WithNullableEnable()); 132501var comp = CreateCompilation(source, options: WithNullableEnable()); 132527var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 132553var comp = CreateCompilation(source, options: WithNullableEnable()); 132579var comp = CreateCompilation(source, options: WithNullableEnable()); 132608var comp = CreateCompilation(source, options: WithNullableEnable()); 132635var comp = CreateCompilation(source, options: WithNullableEnable()); 132661var comp = CreateCompilation(source, options: WithNullableEnable()); 132686var comp = CreateCompilation(source, options: WithNullableEnable()); 132710var comp = CreateCompilation(source, options: WithNullableEnable()); 132735var comp = CreateCompilation(source, options: WithNullableEnable()); 132759var comp = CreateCompilation(source, options: WithNullableEnable()); 132783var comp = CreateCompilation(source, options: WithNullableEnable()); 132807var comp = CreateCompilation(source, options: WithNullableEnable()); 132832var comp = CreateCompilation(source, options: WithNullableEnable()); 132857var comp = CreateCompilation(source, options: WithNullableEnable()); 132888var comp = CreateCompilation(source, options: WithNullableEnable()); 132915var comp = CreateCompilation(source, options: WithNullableEnable()); 132945var comp = CreateCompilation(source, options: WithNullableEnable()); 132975var comp = CreateCompilation(source, options: WithNullableEnable()); 133006var comp = CreateCompilation(source, options: WithNullableEnable()); 133038var comp = CreateCompilation(source, options: WithNullableEnable()); 133071var comp = CreateCompilation(source, options: WithNullableEnable()); 133106var comp = CreateCompilation(source, options: WithNullableEnable()); 133129var comp = CreateCompilation(source, options: WithNullableEnable()); 133154var comp = CreateCompilation(source, options: WithNullableEnable()); 133180var comp = CreateCompilation(source, options: WithNullableEnable()); 133208var comp = CreateCompilation(source, options: WithNullableEnable()); 133292var comp = CreateCompilation(source, options: WithNullableEnable()); 133352var comp = CreateCompilation(source, options: WithNullableEnable()); 133382var comp = CreateCompilation(source, options: WithNullableEnable()); 133406var comp = CreateCompilation(source, options: WithNullableEnable()); 133432var comp = CreateCompilation(source, options: WithNullableEnable()); 133468var comp = CreateCompilation(source, options: WithNullableEnable()); 133499var comp = CreateCompilation(source, options: WithNullableEnable()); 133532var comp = CreateCompilation(source, options: WithNullableEnable()); 133568var comp = CreateCompilation(source, options: WithNullableEnable()); 133599var comp = CreateCompilation(source, options: WithNullableEnable()); 133635var comp = CreateCompilation(source, options: WithNullableEnable()); 133670var comp = CreateCompilation(source, options: WithNullableEnable()); 133717var comp = CreateCompilation(source, options: WithNullableEnable()); 133752var comp = CreateCompilation(source, options: WithNullableEnable()); 133779var comp = CreateCompilation(source, options: WithNullableEnable()); 133807var comp = CreateCompilation(source, options: WithNullableEnable()); 133838var comp = CreateCompilation(source, options: WithNullableEnable()); 133867var comp = CreateCompilation(source, options: WithNullableEnable()); 133900var comp = CreateCompilation(source, options: WithNullableEnable()); 133936var comp = CreateCompilation(source, options: WithNullableEnable()); 133973var comp = CreateCompilation(source, options: WithNullableEnable()); 134004var comp = CreateCompilation(source, options: WithNullableEnable()); 134151var comp = CreateCompilation(source, options: WithNullableEnable()); 134193var comp = CreateCompilation(source, options: WithNullableEnable()); 134247var comp = CreateCompilation(source, options: WithNullableEnable()); 134318var comp = CreateCompilation(source, options: WithNullableEnable()); 134396var comp = CreateCompilation(source, options: WithNullableEnable()); 134467var comp = CreateCompilation(source, options: WithNullableEnable()); 134517var comp = CreateCompilation(source, options: WithNullableEnable()); 134548var comp = CreateCompilation(source, options: WithNullableEnable()); 134576var comp = CreateCompilation(source, options: WithNullableEnable()); 134611var comp = CreateCompilation(source, options: WithNullableEnable()); 134637var comp = CreateCompilation(source, options: WithNullableEnable()); 134669var comp = CreateCompilation(source, options: WithNullableEnable()); 134705var comp = CreateCompilation(source, options: WithNullableEnable()); 134723var comp = CreateCompilation(source, options: WithNullableEnable()); 134751var comp = CreateCompilation(source, options: WithNullableEnable()); 134789var comp = CreateCompilation(source, options: WithNullableEnable()); 134821var comp = CreateCompilation(source, options: WithNullableEnable()); 134854var comp = CreateCompilation(source, options: WithNullableEnable()); 134888var comp = CreateCompilation(source, options: WithNullableEnable()); 134917var comp = CreateCompilation(source, options: WithNullableEnable()); 134934var comp = CreateCompilation(source, options: WithNullableEnable()); 134952var comp = CreateCompilation(source, options: WithNullableEnable()); 134974var comp = CreateCompilation(source, options: WithNullableEnable()); 135001var comp = CreateCompilation(source, options: WithNullableEnable()); 135026var comp = CreateCompilation(source, options: WithNullableEnable()); 135050var comp = CreateCompilation(source, options: WithNullableEnable()); 135077var comp = CreateCompilation(source, options: WithNullableEnable()); 135107var comp = CreateCompilation(source, options: WithNullableEnable()); 135136var comp = CreateCompilation(source, options: WithNullableEnable()); 135168var comp = CreateCompilation(source, options: WithNullableEnable()); 135188var comp = CreateCompilation(source, options: WithNullableEnable()); 135212var comp = CreateCompilation(source, options: WithNullableEnable()); 135244var comp = CreateCompilation(source, options: WithNullableEnable()); 135291var comp = CreateCompilation(source, options: WithNullableEnable()); 135318var comp = CreateCompilation(source, options: WithNullableEnable()); 135345var comp = CreateCompilation(source, options: WithNullableEnable()); 135364var comp = CreateCompilation(source, options: WithNullableEnable()); 135401var comp = CreateCompilation(source, options: WithNullableEnable()); 135467var comp = CreateCompilation(source, options: WithNullableEnable()); 135545var comp = CreateCompilation(source, options: WithNullableEnable()); 135595var comp = CreateCompilation(source, options: WithNullableEnable()); 135638var comp = CreateCompilation(source, options: WithNullableEnable()); 135669var comp = CreateCompilation(source, options: WithNullableEnable()); 135693var comp = CreateCompilation(source, options: WithNullableEnable()); 135715var comp = CreateCompilation(source, options: WithNullableEnable()); 135736var comp = CreateCompilation(source, options: WithNullableEnable()); 135757var comp = CreateCompilation(source, options: WithNullableEnable()); 135780var comp = CreateCompilation(source, options: WithNullableEnable()); 135843var comp = CreateCompilation(source, options: WithNullableEnable()); 135910var comp = CreateCompilation(source, options: WithNullableEnable()); 135977var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 136032var comp = CreateCompilation(source, options: WithNullableEnable()); 136081var comp = CreateCompilation(source); 136121var comp = CreateCompilation(source); 136155var comp = CreateCompilation(source); 136176var comp = CreateCompilation(source, options: WithNullableEnable()); 136191var comp = CreateCompilation(source, options: WithNullableEnable()); 136221var comp = CreateCompilation(source, options: WithNullableEnable()); 136239var comp = CreateCompilation(source, options: WithNullableEnable()); 136273var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136337var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136369var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136516var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136540var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136559var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136601var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136642CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3) 136649CreateCompilation(new[] { source }, options: WithNullableEnable()) 136672CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3) 136678CreateCompilation(new[] { source }, options: WithNullableEnable()) 136724var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136751var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136780var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136805var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136830var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136862var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136889var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136916var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136938var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136957var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable()); 136976var comp = CreateCompilation(new[] { source1, source2 }); 136980comp = CreateCompilation(new[] { source2, source1 }); 137008var comp = CreateCompilation(new[] { source1, source2 }); 137012comp = CreateCompilation(new[] { source2, source1 }); 137042var comp = CreateCompilation(new[] { source1, source2 }); 137075var comp = CreateCompilation(new[] { source1, source2 }); 137079comp = CreateCompilation(new[] { source2, source1 }); 137104var comp = CreateCompilation(new[] { source1, source2 }); 137108comp = CreateCompilation(new[] { source2, source1 }); 137134var comp = CreateCompilation(new[] { source1 }); 137156var comp = CreateCompilation(new[] { source1 }); 137178var comp = CreateCompilation(new[] { source1 }); 137200var comp = CreateCompilation(new[] { source1 }); 137226var comp = CreateCompilation(new[] { source1 }); 137253var comp = CreateCompilation(new[] { source1 }); 137278var comp = CreateCompilation(new[] { source1 }); 137305var comp = CreateCompilation(new[] { source1, source2 }); 137309comp = CreateCompilation(new[] { source2, source1 }); 137362var comp1 = CreateCompilation(new[] { source0, source1 }); 137368var comp2 = CreateCompilation(new[] { source0, source2 }); 137374var comp3 = CreateCompilation(new[] { source0, source3 }); 137380var comp = CreateCompilation(new[] { source0, source1, source2, source3 }); 137384comp = CreateCompilation(new[] { source0, source1, source3, source2 }); 137388comp = CreateCompilation(new[] { source0, source2, source1, source3 }); 137392comp = CreateCompilation(new[] { source0, source2, source3, source1 }); 137396comp = CreateCompilation(new[] { source0, source3, source1, source2 }); 137400comp = CreateCompilation(new[] { source0, source3, source2, source1 }); 137440var comp1 = CreateCompilation(new[] { source }); 137481var comp1 = CreateCompilation(new[] { source }); 137520var comp1 = CreateCompilation(new[] { source }); 137559var comp1 = CreateCompilation(new[] { source }); 137608var comp1 = CreateCompilation(new[] { source }); 137644var comp = CreateCompilation(new[] { source0, source1, source2 }); 137647comp = CreateCompilation(new[] { source0, source2, source1 }); 137684var comp = CreateCompilation(new[] { source0, source1, source2 }); 137687comp = CreateCompilation(new[] { source0, source2, source1 }); 137728var comp = CreateCompilation(new[] { source0, source1, source2 }); 137731comp = CreateCompilation(new[] { source0, source2, source1 }); 137771var comp = CreateCompilation(new[] { source0, source1, source2 }); 137774comp = CreateCompilation(new[] { source0, source2, source1 }); 137813var comp = CreateCompilation(new[] { source0, source1, source2 }); 137816comp = CreateCompilation(new[] { source0, source2, source1 }); 137849var comp = CreateCompilation(new[] { source0, source1, source2 }); 137852comp = CreateCompilation(new[] { source0, source2, source1 }); 137892var comp = CreateCompilation(new[] { source0, source1, source2, source3 }); 137895comp = CreateCompilation(new[] { source0, source3, source2, source1 }); 137943var comp = CreateCompilation(new[] { source0, source1, source2 }); 137946comp = CreateCompilation(new[] { source0, source2, source1 }); 137988var comp = CreateCompilation(new[] { source0, source1, source2 }); 137991comp = CreateCompilation(new[] { source0, source2, source1 }); 138041var comp = CreateCompilation(new[] { source0, source1, source2 }); 138044comp = CreateCompilation(new[] { source0, source2, source1 }); 138094var comp = CreateCompilation(new[] { source0, source1, source2 }); 138139var comp = CreateCompilation(new[] { source0, source1, source2 }); 138142comp = CreateCompilation(new[] { source0, source2, source1 }); 138194var comp = CreateCompilation(new[] { source0, source1, source2 }); 138718var comp1 = CreateCompilation(source1, assemblyName: nameof(source1)).VerifyDiagnostics().EmitToImageReference(); 138763var comp = CreateCompilation(new[] { source1, source2 }); 138787var comp = CreateCompilation(new[] { source1, source2 }); 138825var comp = CreateCompilation(new[] { source1 }); 138863var comp = CreateCompilation(new[] { source1 }); 138888CreateCompilation(text).VerifyDiagnostics( 138914CreateCompilation(text).VerifyDiagnostics( 138940CreateCompilation(text).VerifyDiagnostics( 138971var comp = CreateCompilation(source).VerifyDiagnostics( 139004var comp = CreateCompilation(source).VerifyDiagnostics( 139037var comp = CreateCompilation(source).VerifyDiagnostics( 139069var comp = CreateCompilation(source).VerifyDiagnostics(); 139095var comp = CreateCompilation(source).VerifyDiagnostics(); 139122var comp = CreateCompilation(source).VerifyDiagnostics(); 139149var comp = CreateCompilation(source).VerifyDiagnostics( 139190var comp = CreateCompilation(source).VerifyDiagnostics( 139222var comp = CreateCompilation(source).VerifyDiagnostics( 139246var comp = CreateCompilation(source).VerifyDiagnostics( 139270var comp = CreateCompilation(source).VerifyDiagnostics(); 139291var comp = CreateCompilation(source).VerifyDiagnostics( 139315var comp = CreateCompilation(source).VerifyDiagnostics(); 139335var comp = CreateCompilation(source).VerifyDiagnostics( 139359var comp = CreateCompilation(source).VerifyDiagnostics( 139389var comp = CreateCompilation(source).VerifyDiagnostics( 139417var comp = CreateCompilation(source).VerifyDiagnostics(); 139445var comp = CreateCompilation(source).VerifyDiagnostics(); 139473var comp = CreateCompilation(source).VerifyDiagnostics(); 139501var comp = CreateCompilation(source).VerifyDiagnostics(); 139533var comp = CreateCompilation(source).VerifyDiagnostics(); 139561var comp = CreateCompilation(source).VerifyDiagnostics(); 139589var comp = CreateCompilation(source).VerifyDiagnostics(); 139616var comp = CreateCompilation(source).VerifyDiagnostics(); 139639var comp = CreateCompilation(source).VerifyDiagnostics(); 139662var comp = CreateCompilation(source).VerifyDiagnostics(); 139689var comp = CreateCompilation(source).VerifyDiagnostics(); 139712var comp = CreateCompilation(source).VerifyDiagnostics(); 139735var comp = CreateCompilation(source).VerifyDiagnostics(); 139764var comp = CreateCompilation(source).VerifyDiagnostics(); 139819CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 139886var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 139930var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 139969var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140010var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140057var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140192var comp = CreateCompilation(source); 140217var comp = CreateCompilation(source); 140246var comp = CreateCompilation(source); 140283var comp = CreateCompilation(source); 140313var comp = CreateCompilation(source); 140346var comp = CreateCompilation(source); 140379var comp = CreateCompilation(source); 140419var comp = CreateCompilation(source); 140466var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, options: WithNullableEnable()); 140495var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 140517var comp = CreateCompilation(source, options: WithNullableEnable()); 140615var comp = CreateCompilation(source, options: WithNullableEnable()); 140654var comp = CreateCompilation(source, options: WithNullableEnable()); 140688var comp = CreateCompilation(source, options: WithNullableEnable()); 140717var comp = CreateCompilation(source, options: WithNullableEnable()); 140751var comp = CreateCompilation(source, options: WithNullableEnable()); 140785var comp = CreateCompilation(source, options: WithNullableEnable()); 140818var comp = CreateCompilation(source, options: WithNullableEnable()); 140853var comp = CreateCompilation(source, options: WithNullableEnable()); 140892var comp = CreateCompilation(source, options: WithNullableEnable()); 140934CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }).VerifyDiagnostics(); 140966var comp = CreateCompilation(source, options: WithNullableEnable()); 141008var comp = CreateCompilation(source, options: WithNullableEnable()); 141050var comp = CreateCompilation(source, options: WithNullableEnable()); 141092var comp = CreateCompilation(source, options: WithNullableEnable()); 141134var comp = CreateCompilation(source, options: WithNullableEnable()); 141174var comp = CreateCompilation(source, options: WithNullableEnable()); 141224var comp = CreateCompilation(source, options: WithNullableEnable()); 141265var comp = CreateCompilation(source, options: WithNullableEnable()); 141300var comp = CreateCompilation(source, options: WithNullableEnable()); 141341var comp = CreateCompilation(source, options: WithNullableEnable()); 141382var comp = CreateCompilation(source, options: WithNullableEnable()); 141425var comp = CreateCompilation(source, options: WithNullableEnable()); 141470var comp = CreateCompilation(source, options: WithNullableEnable()); 141507var comp = CreateCompilation(source, options: WithNullableEnable()); 141538var comp = CreateCompilation(source, options: WithNullableEnable()); 141566var comp = CreateCompilation(source, options: WithNullableEnable()); 141625var comp = CreateCompilation(source); 141690var comp = CreateCompilation(source); 141758var comp = CreateCompilation(source); 141813var comp = CreateCompilation(source); 141867var comp = CreateCompilation(source); 141926var comp = CreateCompilation(source); 141963var comp = CreateCompilation(source); 141993var comp = CreateCompilation(source); 142028var comp = CreateCompilation(source); 142092var comp = CreateCompilation(source); 142114var comp = CreateCompilation(source); 142152var comp = CreateCompilation(source); 142200var comp = CreateCompilation(source); 142218var comp = CreateCompilation(source); 142261var comp = CreateCompilation(source); 142321var comp = CreateCompilation(source); 142357var comp = CreateCompilation(source); 142405var comp = CreateCompilation(source); 142469var comp = CreateCompilation(source); 142515var comp = CreateCompilation(source); 142561var comp = CreateCompilation(source); 142599var comp = CreateCompilation(source); 142644var comp = CreateCompilation(source); 142679var comp = CreateCompilation(source); 142705var comp = CreateCompilation(source); 142740var comp = CreateCompilation(source); 142744comp = CreateCompilation(source); 142782var comp = CreateCompilation(source); 142821var comp = CreateCompilation(source); 142852var comp = CreateCompilation(source); 142880var comp = CreateCompilation(source); 142908var comp = CreateCompilation(source); 142938var comp = CreateCompilation(source); 142971var comp = CreateCompilation(source); 142997var comp = CreateCompilation(source); 143030var comp = CreateCompilation(source); 143061var comp = CreateCompilation(source); 143091var comp = CreateCompilation(source); 143123var comp = CreateCompilation(source); 143154var comp = CreateCompilation(source); 143228var comp = CreateCompilation(source); 143279var comp = CreateCompilation(source); 143305var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143334var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143364var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143408var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143442var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143476var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143512var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143554var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143588var comp = CreateCompilation(source); 143619var comp = CreateCompilation(source); 143645var comp = CreateCompilation(source); 143671var comp = CreateCompilation(source); 143700var comp = CreateCompilation(source); 143732var comp = CreateCompilation(source); 143768var comp = CreateCompilation(source); 143806var comp = CreateCompilation(source); 143844var comp = CreateCompilation(source); 143873var comp = CreateCompilation(source); 143902var comp = CreateCompilation(source); 143938var comp = CreateCompilation(source); 143971var comp = CreateCompilation(source); 144001var comp = CreateCompilation(source); 144030var comp = CreateCompilation(source); 144057var comp = CreateCompilation(source); 144089var comp = CreateCompilation(source); 144124var comp = CreateCompilation(source); 144154var comp = CreateCompilation(source); 144229var comp = CreateCompilation(source, options: WithNullableEnable()); 144254var comp = CreateCompilation(source, options: WithNullableEnable()); 144304var comp = CreateCompilation(source, options: WithNullableDisable()); 144327var comp = CreateCompilation(source, options: WithNullableDisable()); 144393var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableDisable()); 144415var comp = CreateCompilation(source, options: WithNullableDisable()); 144471var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144503comp = CreateCompilation(source, options: WithNullableEnable()); 144528comp = CreateCompilation(source, options: WithNullableEnable()); 144564var comp = CreateCompilation(source, options: WithNullableEnable()); 144600var comp = CreateCompilation(source, options: WithNullableEnable()); 144634var comp = CreateCompilation(source, options: WithNullableEnable()); 144663var comp = CreateCompilation(source, options: WithNullableEnable()); 144702var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144734var comp = CreateCompilation(source, options: WithNullableEnable()); 144772var comp = CreateCompilation(source, options: WithNullableEnable()); 144814var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144844var comp = CreateCompilation(source, options: WithNullableEnable()); 144887var comp = CreateCompilation(source, options: WithNullableEnable()); 144918var comp = CreateCompilation(source, options: WithNullableEnable()); 144959var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 144961var comp = CreateCompilation(def + @" 144997var defComp = CreateCompilation(def, 145001var useComp = CreateCompilation(@" 145081var comp = CreateCompilation(@" 145112var comp = CreateCompilation(@" 145156var comp = CreateCompilation(source, options: WithNullableEnable()); 145186var comp = CreateCompilation(source, options: WithNullableEnable()); 145252var comp = CreateCompilation(source, options: WithNullableEnable()); 145310var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 145346var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 145372var comp = CreateCompilation(source); 145409var comp = CreateCompilation(source); 145449var comp = CreateCompilation(source); 145486var comp = CreateCompilation(source); 145525var comp = CreateCompilation(source); 145567var comp = CreateCompilation(source); 145600var comp = CreateCompilation(source); 145632var comp = CreateCompilation(source); 145667var comp = CreateCompilation(source); 145706var comp = CreateCompilation(source); 145737var comp = CreateCompilation(source); 145764var comp = CreateCompilation(source); 145786var comp = CreateCompilation(source); 145800var comp = CreateCompilation(source); 145829var comp = CreateCompilation(source); 145858var comp = CreateCompilation(source); 145887var comp = CreateCompilation(source); 145914var comp = CreateCompilation(source); 145947var comp = CreateCompilation(source); 145978var comp = CreateCompilation(source); 146007var comp = CreateCompilation(source); 146040var comp = CreateCompilation(source); 146065var comp = CreateCompilation(source); 146089var comp = CreateCompilation(source); 146110var comp = CreateCompilation(source); 146136var comp = CreateCompilation(source); 146159var comp = CreateCompilation(source); 146184var comp = CreateCompilation(source); 146208var comp = CreateCompilation(source); 146232var comp = CreateCompilation(source); 146256var comp = CreateCompilation(source); 146291var comp = CreateCompilation(text); 146330var comp = CreateCompilation(text); 146370var comp = CreateCompilation(text); 146409var comp = CreateCompilation(text); 146495var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146528var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146557var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146597var comp = CreateCompilation(source); 146635var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 146675var comp = CreateCompilation(source); 146724var comp = CreateCompilation(source, options: WithNullableEnable()); 146775var comp = CreateCompilation(source); 146844var comp = CreateCompilation(source); 146926var comp = CreateCompilation(source); 146991var comp = CreateCompilation(source); 147091var comp = CreateCompilation(source, options: WithNullableEnable()); 147178var comp = CreateCompilation(source); 147221var comp = CreateCompilation(source); 147250var comp = CreateCompilation(source); 147273var comp = CreateCompilation(source); 147301var comp = CreateCompilation(source); 147514var comp = CreateCompilation(source); 147539var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 147621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147712var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147834var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147894var comp = CreateCompilation(source); 148013var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148028comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148080var comp = CreateCompilation(source); 148121var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148184comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148303comp = CreateCompilation(source); 148356var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148368comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148402var comp = CreateCompilation(source); 148440var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148455comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148508var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148559comp = CreateCompilation(source); 148608var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148614comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148645var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148694var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148726var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148760var comp = CreateCompilation(source); 148786var comp = CreateCompilation(source); 148808var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148829var comp = CreateCompilation(source); 148850var comp = CreateCompilation(source); 148874var comp = CreateCompilation(source); 148912var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148959var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148999var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149043var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149067var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149102var comp = CreateCompilation(source); 149126var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149158var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149182var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149212var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149248var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149305var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149336var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149359var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149381var comp = CreateCompilation(source); 149420var comp = CreateCompilation(source); 149459var comp = CreateCompilation(source); 149499var comp = CreateCompilation(source); 149542var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149571var comp = CreateCompilation(source); 149612var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149652var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 149717var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149765var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149802var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149847var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149911var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149920comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 149934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 149940comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 149950comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 149960comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 149989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 150070comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150155var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150213var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150230comp = CreateCompilation(sourceB0, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150246comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150298comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150332comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150372comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150479var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150502comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150545var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150602var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150638comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular); 150686comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150766comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150846comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150926comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151009comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151089comp = CreateCompilation(sourceB6, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151181comp = CreateCompilation(sourceB7, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151244var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151280comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular8); 151382comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151462comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151554comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151644comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151704comp = CreateCompilation(sourceB2, references: new[] { refA }); 151752comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151812comp = CreateCompilation(sourceB4, references: new[] { refA }); 151857comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151905comp = CreateCompilation(sourceB6, references: new[] { refA }); 151953comp = CreateCompilation(sourceB7, references: new[] { refA }); 151995var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152020comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152080comp = CreateCompilation(sourceB2, references: new[] { refA }); 152128comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152188comp = CreateCompilation(sourceB4, references: new[] { refA }); 152233comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152281comp = CreateCompilation(sourceB6, references: new[] { refA }); 152329comp = CreateCompilation(sourceB7, references: new[] { refA }); 152368var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152389comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152439comp = CreateCompilation(sourceB2, references: new[] { refA }); 152480comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152530comp = CreateCompilation(sourceB4, references: new[] { refA }); 152562comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152603comp = CreateCompilation(sourceB6, references: new[] { refA }); 152644comp = CreateCompilation(sourceB7, references: new[] { refA }); 152674var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 152699comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152759comp = CreateCompilation(sourceB2, references: new[] { refA }); 152813comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152873comp = CreateCompilation(sourceB4, references: new[] { refA }); 152918comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152965var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152991comp = CreateCompilation(new[] { sourceB1, AllowNullAttributeDefinition }, references: new[] { refA }); 153052comp = CreateCompilation(new[] { sourceB3, AllowNullAttributeDefinition }, references: new[] { refA }); 153113comp = CreateCompilation(new[] { sourceB5, AllowNullAttributeDefinition }, references: new[] { refA }); 153162comp = CreateCompilation(new[] { sourceB6, AllowNullAttributeDefinition }, references: new[] { refA }); 153216var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153240comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153281comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153394comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153423var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153447comp = CreateCompilation(sourceB1, references: new[] { refA }); 153489comp = CreateCompilation(new[] { sourceB2, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, references: new[] { refA }); 153529var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153557var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 153581comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 153593comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 153617comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 153655var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153757var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153794var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153942var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153981var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154006comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154031comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154056comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154082comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154108comp = CreateCompilation(source6, parseOptions: TestOptions.Regular9); 154135var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154155var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154173comp = CreateCompilation(source2); 154188comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154206comp = CreateCompilation(source4); 154221comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154245var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154275var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154297comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154322comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154345comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154368comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154503var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154531comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154581var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154685comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154714var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154849var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154962var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 154986comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155015comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155062var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155087comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 155123var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155148comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 155193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155249comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155286var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 155306comp = CreateCompilation(sourceB, references: new[] { refA }); 155335var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155359comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 155379var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 155391comp = CreateCompilation(sourceB1, references: new[] { refA }); 155402comp = CreateCompilation(sourceB2, references: new[] { refA }); 155413comp = CreateCompilation(sourceB3, references: new[] { refA }); 155424comp = CreateCompilation(sourceB4, references: new[] { refA }); 155449var comp = CreateCompilation(source); 155475var comp = CreateCompilation(source); 155502var comp = CreateCompilation(source); 155535var comp = CreateCompilation(source); 155571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155583comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155630var comp = CreateCompilation(source); 155695var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }); 155732var comp = CreateCompilation(source); 155793var comp = CreateCompilation(source); 155813var nullableAttrComp = CreateCompilation(NullableAttributeDefinition); 155832var lib = CreateCompilation(lib_cs, references: new[] { nullableAttrRef }); 155845var comp = CreateCompilation(source_cs, references: new[] { libRef }); 155857var executeComp = CreateCompilation(executable_cs, 155941var comp = CreateCompilation(source); 155967var comp = CreateCompilation(source); 155992var comp = CreateCompilation(source); 156025var comp = CreateCompilation(source); 156054var comp = CreateCompilation( 156156var comp = CreateCompilation(source); 156196var comp = CreateCompilation(source); 156230var comp = CreateCompilation(source); 156264var comp = CreateCompilation(source); 156275var comp = CreateCompilation(@" 156451var comp = CreateCompilation(source); 156469var comp = CreateCompilation(source); 156487var comp = CreateCompilation(source); 156506var comp = CreateCompilation(source); 156525var comp = CreateCompilation(source); 156546var comp = CreateCompilation(source0); 156576var comp = CreateCompilation(source); 156594var comp = CreateCompilation(source0); 156641var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156674var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156742var comp = CreateCompilation(source); 156784var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156806var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156853var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156880var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156922var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156958var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156992var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157008var comp = CreateCompilation(source0); 157022comp = CreateCompilation(source1, references: new[] { ref0 }); 157044var comp = CreateCompilation(source0); 157058comp = CreateCompilation(source1, references: new[] { ref0 }); 157091var comp = CreateCompilation(source0); 157168var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157199var comp = CreateCompilation(sourceA); 157328comp = CreateCompilation(new[] { sourceB2 }, references: new[] { refA }); 157420var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157446var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157482var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157513var comp = CreateCompilation(src); 157534var comp = CreateCompilation(src); 157552var comp = CreateCompilation(src); 157576var comp = CreateCompilation(src); 157624var comp = CreateCompilation(src); 157675var comp = CreateCompilation(src); 157698var comp = CreateCompilation(src); 157721var comp = CreateCompilation(src); 157744var comp = CreateCompilation(src); 157767var comp = CreateCompilation(src); 157790var comp = CreateCompilation(src); 157813var comp = CreateCompilation(src); 157836var comp = CreateCompilation(src); 157871var comp = CreateCompilation(src, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable)); 157909var comp = CreateCompilation(src); 157946var comp = CreateCompilation(src); 157984var comp = CreateCompilation(src); 158018var comp = CreateCompilation(src); 158051var comp = CreateCompilation(src); 158092var comp = CreateCompilation(src); 158127var comp = CreateCompilation(src); 158160var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp); 158187var comp = CreateCompilation(src); 158220var comp = CreateCompilation(src); 158261var comp = CreateCompilation(src); 158301var comp = CreateCompilation(src); 158340var comp = CreateCompilation(src); 158377var comp = CreateCompilation(src); 158412var comp = CreateCompilation(src); 158445var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp); 158472var comp = CreateCompilation(src); 158511var comp = CreateCompilation(src); 158553var comp = CreateCompilation(src); 158595var comp = CreateCompilation(src); 158634var comp = CreateCompilation(src); 158670var comp = CreateCompilation(src); 158700var comp = CreateCompilation(src); 158736var comp = CreateCompilation(src); 158771var comp = CreateCompilation(src); 158810var comp = CreateCompilation(src); 158843var comp = CreateCompilation(src); 158878CreateCompilation(source).VerifyDiagnostics(); 158906CreateCompilation(source).VerifyDiagnostics(); 158932var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 158951var comp = CreateCompilation(source); 158977var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 159004var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159042var comp = CreateCompilation(source); 159064var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159102var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159143var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159178var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159204var comp = CreateCompilation(source); 159211var comp = CreateCompilation(@" 159264var comp = CreateCompilation(@" 159307var comp = CreateCompilation(@" 159393var comp = CreateCompilation(@" 159434var comp = CreateCompilation(@" 159492var comp = CreateCompilation(@" 159550var comp = CreateCompilation(@" 159603var comp = CreateCompilation(@" 159646var comp = CreateCompilation(@" 159732var comp = CreateCompilation(@" 159773var comp = CreateCompilation(@" 159831var comp = CreateCompilation(@" 159889var comp = CreateCompilation(@" 159930var comp = CreateCompilation(@" 159980var comp = CreateCompilation(@" 160023var comp = CreateCompilation(@" 160109var comp = CreateCompilation(@" 160150var comp = CreateCompilation(@" 160208var comp = CreateCompilation(@" 160266var comp = CreateCompilation(@" 160483CSharpCompilation c = CreateCompilation(new[] { @" 160551var comp = CreateCompilation(source, options: WithNullableEnable()); 160606var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 160656var comp = CreateCompilation(source); 160676var comp = CreateCompilation(@" 160697var comp = CreateCompilation(@" 160728var comp = CreateCompilation(@" 160757var comp = CreateCompilation(@" 160809var comp = CreateCompilation($$""" 160871var comp = CreateCompilation($$""" 160920var comp = CreateCompilation(@" 160945var comp = CreateCompilation(@" 160972var comp = CreateCompilation(@" 161017var comp = CreateCompilation(""" 161059CreateCompilation(source).VerifyDiagnostics( 161092CreateCompilation(source).VerifyDiagnostics(); 161125CreateCompilation(source).VerifyDiagnostics(); 161199CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 161233var comp = CreateCompilation(source).VerifyDiagnostics( 161279var comp = CreateCompilation(source).VerifyDiagnostics( 161319var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 161343var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 161381var comp = CreateCompilation(source); 161406var comp = CreateCompilation(source); 161432var comp = CreateCompilation(source); 161461var comp = CreateCompilation(source); 161499CreateCompilation(source).VerifyDiagnostics(
Semantics\NullableReferenceTypesVsPatterns.cs (37)
19return CreateCompilation(new[] { source }, options: WithNullableEnable()); 515var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 1019var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2211var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 2282var comp = CreateCompilation(source); 2311var comp = CreateCompilation(source); 2336var comp = CreateCompilation(source); 2365var comp = CreateCompilation(source); 2372var comp = CreateCompilation(@" 2396var comp = CreateCompilation(@" 2421var comp = CreateCompilation(@" 2446var comp = CreateCompilation(@" 2464var comp = CreateCompilation(@" 2497var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2509comp = CreateCompilation(source); 2519var comp = CreateCompilation(@" 2551var comp = CreateCompilation(@" 2576var comp = CreateCompilation(@" 2595var comp = CreateCompilation(@" 2610var comp = CreateCompilation(@" 2629var comp = CreateCompilation(@" 2767var comp = CreateCompilation(source); 2806var comp = CreateCompilation(source); 2843var comp = CreateCompilation(source); 2885var comp = CreateCompilation(source); 2921var comp = CreateCompilation(source); 2951var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2980var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3016var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3050var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3096var comp = CreateCompilation(source); 3127var comp = CreateCompilation(source); 3161var comp = CreateCompilation(source); 3196var comp = CreateCompilation(source); 3223var comp = CreateCompilation(source); 3250var comp = CreateCompilation(source); 3281var comp = CreateCompilation(source);
Semantics\NullableTests.cs (16)
33var comp = CreateCompilation(src); 66var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 68comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 92var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 137var comp = CreateCompilation(source1); 1793var complib = CreateCompilation( 1798var comp = CreateCompilation( 1832CreateCompilation(source).VerifyDiagnostics(); 1886CreateCompilation(source).VerifyDiagnostics( 2094CreateCompilation(source).VerifyDiagnostics( 2122CreateCompilation(source).VerifyEmitDiagnostics( 2147CreateCompilation(source).VerifyDiagnostics( 2169CreateCompilation(source).VerifyDiagnostics( 2191CreateCompilation(source).VerifyDiagnostics( 2211var comp = CreateCompilation(source); 2244var comp = CreateCompilation(source);
Semantics\NullCoalesceAssignmentTests.cs (5)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 68var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 111var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 178var comp = CreateCompilation(source);
Semantics\ObjectAndCollectionInitializerTests.cs (22)
256CreateCompilation(source, references: new MetadataReference[] { CSharpRef }).VerifyDiagnostics(); 3221CreateCompilation(source).VerifyDiagnostics( 3466var compilation = CreateCompilation(source); 3514var compilation = CreateCompilation(source); 3559var compilation = CreateCompilation(source); 3607var compilation = CreateCompilation(source); 3644var compilation = CreateCompilation(source); 3685var compilation = CreateCompilation(source); 3735var compilation = CreateCompilation(source); 3779var compilation = CreateCompilation(source); 3810var comp = CreateCompilation(source); 3833var comp = CreateCompilation(source); 3857var comp = CreateCompilation(source); 3888CreateCompilation(source).VerifyDiagnostics( 3909CreateCompilation(source).VerifyDiagnostics( 3930var compilation = CreateCompilation(source); 4012var compilation = CreateCompilation(source); 4047var compilation = CreateCompilation(source); 4122var compilation = CreateCompilation(source); 4193CreateCompilation(source).VerifyDiagnostics( 4220var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4274var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
Semantics\OperatorTests.cs (85)
43var compilation = CreateCompilation(source); 2969var compilation = CreateCompilation(source); 3038CreateCompilation(source).VerifyDiagnostics( 3096CreateCompilation(source).VerifyDiagnostics( 3201var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4755CreateCompilation(@" 4828var compilation = CreateCompilation(source).VerifyDiagnostics(); 4840var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 4908var compilation = CreateCompilation(source); 4945var compilation = CreateCompilation(source); 4983var compilation = CreateCompilation(source); 5028CreateCompilation(source).VerifyDiagnostics( 5048CreateCompilation(source).VerifyDiagnostics( 5104CreateCompilation(source).VerifyDiagnostics( 5141CreateCompilation(source).VerifyDiagnostics( 5175CreateCompilation(source).VerifyDiagnostics( 5431var comp = CreateCompilation(source); 5458var comp = CreateCompilation(source); 5500var comp = CreateCompilation(source); 5534var comp = CreateCompilation(source); 5590var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5645CreateCompilation(source).VerifyDiagnostics( 5682CreateCompilation(source).VerifyDiagnostics( 5713CreateCompilation(source).VerifyDiagnostics( 5764CreateCompilation(source).VerifyDiagnostics( 5934var comp = CreateCompilation(source); 5982CreateCompilation(text).VerifyDiagnostics( 6007CreateCompilation(text).VerifyDiagnostics( 6033CreateCompilation(text).VerifyDiagnostics( 6165CreateCompilation(source2).VerifyDiagnostics( 6191CreateCompilation(text).VerifyDiagnostics(); 6215CreateCompilation(text).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b++").WithArguments("A", "B")); 6233CreateCompilation(text).VerifyDiagnostics(); 6251CreateCompilation(text).VerifyDiagnostics( 6272CreateCompilation(text).GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).Verify( 6293CreateCompilation(text).GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).Verify(); 6362CreateCompilation(source).VerifyDiagnostics( 6407CreateCompilation(source).VerifyDiagnostics( 6506CreateCompilation(source).VerifyDiagnostics(); 6563CreateCompilation(source).VerifyDiagnostics(); 6580CreateCompilation(source).VerifyDiagnostics(); 6597CreateCompilation(source).VerifyDiagnostics(); 6614CreateCompilation(source).VerifyDiagnostics( 6634CreateCompilation(source).VerifyDiagnostics( 6654CreateCompilation(source).VerifyDiagnostics(); 6671CreateCompilation(source).VerifyDiagnostics(); 6688CreateCompilation(source).VerifyDiagnostics( 6763CreateCompilation(source).VerifyDiagnostics( 6829CreateCompilation(source).VerifyDiagnostics( 6930var comp = CreateCompilation(source); 6980CreateCompilation(source).VerifyDiagnostics( 7015CreateCompilation(source).VerifyDiagnostics( 7050var comp = CreateCompilation(source); 7092CreateCompilation(source).VerifyDiagnostics( 7130var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7177var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7205var comp = CreateCompilation(source); 7242CreateCompilation(source).VerifyDiagnostics( 7275CreateCompilation(source).VerifyDiagnostics(); 7325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 7699var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 7852var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8012var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8549var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8584var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8628var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8678var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8743var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8808var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8847CreateCompilation(source1, options: TestOptions.ReleaseDll).VerifyDiagnostics( 8849CreateCompilation(source1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 8962var compilation = CreateCompilation(source); 9716CreateCompilation(source).VerifyDiagnostics( 10223CreateCompilation(source).VerifyDiagnostics( 11219var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 11280var compilation = CreateCompilation(source) 11329var compilation = CreateCompilation(source); 11404var comp = CreateCompilation(source); 11454CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 11476var comp = CreateCompilation(code); 11497var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 11520var comp = CreateCompilation(code); 11543var comp = CreateCompilation(code); 11567var comp = CreateCompilation(code);
Semantics\OverloadResolutionPerfTests.cs (22)
235var comp = CreateCompilation(source); 287var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 311var comp = CreateCompilation(source); 344var comp = CreateCompilation(source); 383var comp = CreateCompilation(source); 411var comp = CreateCompilation(source); 444var comp = CreateCompilation(source); 477var comp = CreateCompilation(source); 498var comp = CreateCompilation(source); 528var comp = CreateCompilation(source); 558var comp = CreateCompilation(source); 589var comp = CreateCompilation(source); 616var comp = CreateCompilation(source); 652var comp = CreateCompilation(source); 682var comp = CreateCompilation(source); 715var comp = CreateCompilation(source); 755var comp = CreateCompilation(sourceBuilder.ToString()); 846var comp = CreateCompilation(source); 886var comp = CreateCompilation(source); 922var comp = CreateCompilation(source); 965var comp = CreateCompilation(source); 1056var comp = CreateCompilation(sourceB, references: new[] { refA });
Semantics\OverloadResolutionTests.cs (136)
158CreateCompilation(source2).VerifyDiagnostics( 306CreateCompilation(source2).VerifyDiagnostics( 339CreateCompilation(source2).VerifyDiagnostics( 389var comp = CreateCompilation(source2); 438CreateCompilation(source1).VerifyDiagnostics( 478CreateCompilation(source2).VerifyDiagnostics( 1165CreateCompilation(source2).VerifyDiagnostics( 1246CreateCompilation(source).VerifyDiagnostics( 1303CreateCompilation(source).VerifyDiagnostics( 1375var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1467CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 1490CreateCompilation(source).VerifyDiagnostics( 1524CreateCompilation(source).VerifyDiagnostics( 1543CreateCompilation(source).VerifyDiagnostics( 1786CreateCompilation(source).VerifyDiagnostics( 1820CreateCompilation(source).VerifyDiagnostics( 1852CreateCompilation(source).VerifyDiagnostics( 2003CreateCompilation(source).VerifyDiagnostics( 2032CreateCompilation(source).VerifyDiagnostics( 2077CreateCompilation(source).VerifyDiagnostics( 2216CreateCompilation(source).VerifyDiagnostics( 2299var cCommon = CreateCompilation(@" 2304var cCS = CreateCompilation(@" 2310var cFinal = CreateCompilation(@" 2675CreateCompilation(source).VerifyDiagnostics(); 2779CreateCompilation(source).VerifyDiagnostics( 2815CreateCompilation(source).VerifyDiagnostics( 2851CreateCompilation(source).VerifyDiagnostics( 2891CreateCompilation(source).VerifyDiagnostics( 2974CreateCompilation(source).VerifyDiagnostics( 3057CreateCompilation(source).VerifyDiagnostics( 3129CreateCompilation(source).VerifyDiagnostics( 3162CreateCompilation(source).VerifyDiagnostics( 3197CreateCompilation(source).VerifyDiagnostics(); 3233CreateCompilation(source).VerifyDiagnostics( 3712CreateCompilation(source).VerifyDiagnostics( 5906CreateCompilation(source).VerifyDiagnostics( 6282CreateCompilation(source).VerifyDiagnostics( 6372CreateCompilation(source).VerifyDiagnostics( 6428CreateCompilation(source).VerifyDiagnostics( 6486CreateCompilation(source).VerifyDiagnostics( 6564CreateCompilation(source).VerifyDiagnostics( 6883CreateCompilation(source).VerifyDiagnostics( 6914CreateCompilation(source).VerifyDiagnostics( 7021var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7143var comp = CreateCompilation(source); 7253var comp = CreateCompilation(source); 7427var comp = CreateCompilation(source); 7468var comp = CreateCompilation(source); 7552var comp = CreateCompilation(source); 7575var comp = CreateCompilation(source); 7874var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 7912CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 7917CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 7954var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 7992CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 7997CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8034CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8039CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8076CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8081CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8116CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8121CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8157var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8265var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8311var comp = CreateCompilation(source); 8373var comp = CreateCompilation(source); 8407CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 8493var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8541var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8588var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8627var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8662var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8688var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8718var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8838var compilation = CreateCompilation(source1); 8923var compilation = CreateCompilation(source); 9060var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 9099CreateCompilation(source).VerifyDiagnostics( 9123CreateCompilation(source).VerifyDiagnostics( 9147CreateCompilation(source).VerifyDiagnostics( 9468CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9522CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9523CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9524CreateCompilation(code).VerifyDiagnostics(expectedDiagnostics); 9551CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9552CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9553CreateCompilation(code).VerifyDiagnostics(expectedDiagnostics); 9572var comp1 = CreateCompilation(source1).VerifyDiagnostics( 9590CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9602CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9603CreateCompilation(source2, new[] { comp1Ref }).VerifyDiagnostics(expectedDiagnostics); 9622CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9661CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9694CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9729CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9831CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9862CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9895CreateCompilation(code).VerifyDiagnostics( 9941CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9971CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9972CreateCompilation(code).VerifyDiagnostics(expectedDiagnostics); 9993CreateCompilation(code).VerifyDiagnostics( 10461CreateCompilation(code).VerifyDiagnostics( 10495CreateCompilation(code).VerifyDiagnostics( 10529CreateCompilation(code).VerifyDiagnostics( 10563CreateCompilation(code).VerifyDiagnostics( 10575CreateCompilation(@" 10600CreateCompilation(@" 10753CreateCompilation(code).VerifyDiagnostics( 10818CreateCompilation(code).VerifyDiagnostics( 10915CreateCompilation(code).VerifyDiagnostics( 11210CreateCompilation(@" 11299CreateCompilation(code).VerifyDiagnostics( 11447var comp = CreateCompilation(code); 11474CreateCompilation(code).VerifyDiagnostics( 11523CreateCompilation(code, references: new[] { libComp.EmitToImageReference() }).VerifyDiagnostics( 11532CreateCompilation(code, references: new[] { libComp.ToMetadataReference() }).VerifyDiagnostics( 11563CreateCompilation(code).VerifyDiagnostics( 11655CreateCompilation(code).VerifyDiagnostics 11687CreateCompilation(code).VerifyDiagnostics 11750var comp = CreateCompilation(new[] { source0, source1, source2 }); 11754var ref0 = CreateCompilation(source0).EmitToImageReference(); 11755var ref1 = CreateCompilation(source1, references: new[] { ref0 }).EmitToImageReference(); 11756comp = CreateCompilation(source2, references: new[] { ref0, ref1 }); 11799var comp = CreateCompilation(new[] { source0, source1, source2 }); 11803var ref0 = CreateCompilation(source0).EmitToImageReference(); 11804var ref1 = CreateCompilation(source1, references: new[] { ref0 }).EmitToImageReference(); 11805comp = CreateCompilation(source2, references: new[] { ref0, ref1 }); 11849var comp = CreateCompilation(new[] { source0, source1, source2 }); 11853var ref0 = CreateCompilation(source0).EmitToImageReference(); 11854var ref1 = CreateCompilation(source1, references: new[] { ref0 }).EmitToImageReference(); 11855comp = CreateCompilation(source2, references: new[] { ref0, ref1 }); 11890var comp = CreateCompilation(source); 11918var comp = CreateCompilation(source); 11949CreateCompilation(source).VerifyDiagnostics();
Semantics\QueryTests.cs (9)
1449var compilation = CreateCompilation(csSource); 1657var compilation = CreateCompilation(csSource); 1718var compilation = CreateCompilation(csSource); 1756var compilation = CreateCompilation(csSource); 2946var comp = CreateCompilation(@" 3416var compilation = CreateCompilation(csSource); 3460var compilation = CreateCompilation(csSource); 4475var comp = CreateCompilation(@" 4737CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
Semantics\RawInterpolationTests.cs (9)
318CreateCompilation(source).VerifyDiagnostics( 344CreateCompilation(source).VerifyDiagnostics( 952CreateCompilation(source).VerifyDiagnostics( 980CreateCompilation(source).VerifyDiagnostics( 1000CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 1146CreateCompilation(text).VerifyDiagnostics(); 1181CreateCompilation(text).VerifyDiagnostics( 1300CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 1319CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics(
Semantics\RawInterpolationTests_Handler.cs (188)
212var comp1 = CreateCompilation(interpolatedStringBuilder); 216var comp2 = CreateCompilation(source, new[] { reference }); 590var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 630var comp1 = CreateCompilation(interpolatedStringBuilder, targetFramework: TargetFramework.Net50); 634var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview); 1654var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1683var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1712var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1742var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1770var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1797var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1824var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 2023var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 2118var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 2454var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, 2507var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp); 2609var comp = CreateCompilation(source); 2642var comp = CreateCompilation(source); 2681var comp = CreateCompilation(new[] { source, InterpolatedStringHandlerAttribute }); 2701var handlerRef = CreateCompilation(handlerSource).EmitToImageReference(); 2705var comp = CreateCompilation(source, references: new[] { handlerRef }); 2717var handlerRef = CreateCompilation(handlerSource).EmitToImageReference(); 2730var comp = CreateCompilation(source, references: new[] { handlerRef }); 2762var comp = CreateCompilation(source); 2813var comp = CreateCompilation(source); 2941var comp = CreateCompilation(new[] { code, builder }); 3079var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3122var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }); 3189var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3219var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3247var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3277var comp = CreateCompilation(new[] 3307var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3361var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3412var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3434var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.RegularPreview); 3459var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3486var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 3544var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 3591var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3646var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3707var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 3774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 3802comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 3850var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 3917var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 3987var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4050var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4097comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4127var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4188var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4259var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4284var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4344var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4370var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4427var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4453var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4532var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4596var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4661var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4687var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4743var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4788var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4808var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4851var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4897var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4943var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4990var comp = CreateCompilation(new[] 5073var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute }); 5102var comp = CreateCompilation(@"C.M(1, $"""""" 5138var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5175var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5208var comp = CreateCompilation(@"C.M($"""""" 5262var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5295var comp = CreateCompilation(@"C.M(1, $"""""" 5349var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5385var comp = CreateCompilation(@"C.M(1, $"""""" 5439var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5472var comp = CreateCompilation(@"C.M($"""""" 5526var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5559var comp = CreateCompilation(@"C.M(1, $"""""" 5606var comp = CreateCompilation(@"C.M(1, $"""""" 5653var comp = CreateCompilation(@"C.M(1, $"""""" 5707var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5742var comp = CreateCompilation(@"C.M($"""""" 5796var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5831var comp = CreateCompilation(@"_ = new C($"""""" 5885var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 5924var comp = CreateCompilation(@"C<CustomHandler>.M($"""""" 5971var comp = CreateCompilation("", references: new[] { vbComp.EmitToImageReference() }); 6015var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 6057var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 6090var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6093CreateCompilation(@"C.M(1, " + expression + @");", new[] { comp.ToMetadataReference() }).VerifyDiagnostics( 6144var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6150var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6155comp = CreateCompilation(executableCode, new[] { dependency.EmitToImageReference() }); 6164comp = CreateCompilation(executableCode, new[] { dependency.ToMetadataReference() }); 6199var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6421var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6425var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6430comp = CreateCompilation(executableCode, new[] { d }); 6477var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6485var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6598var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6609var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6744var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6910var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7045var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7184var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7289var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 7356var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 7360CreateCompilation(@"C.M(1, """", " + expression + @");", new[] { comp.EmitToImageReference() }).VerifyDiagnostics( 7423var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7541var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7661var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7786var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7863var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7911var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8147var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8237var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8283var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8351var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8490var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8588var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8881var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9146var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9405var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9476var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9530var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9761var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9815var comp = CreateCompilation(code, new[] { vbComp.EmitToImageReference() }); 9855var comp = CreateCompilation(new[] { code, handler }); 9871var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 9930var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 9990var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10052var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10114var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10211var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 10330var comp = CreateCompilation(code); 10351var comp = CreateCompilation(code); 10383var comp = CreateCompilation(new[] { code, customHandler }); 10431var comp = CreateCompilation(new[] { code, customHandler }); 10473var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 10507var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 10544var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10595var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10646var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10691var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10742var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10803var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10902var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 11007var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11042var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11077var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11119var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11164var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11197var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11230var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11264var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11302var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11340var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11356var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11402var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11456var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11494var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11532var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11571var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11633var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11669var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11727var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) }); 11750var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11825var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12341var comp = CreateCompilation(code); 12504var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12571var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12742var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12811var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12886var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12921var comp = CreateCompilation(code, references: new[] { vbComp.EmitToImageReference() }); 13200var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 13235var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13413var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13448var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13469var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 13524var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13578var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
Semantics\ReadOnlyStructsTests.cs (75)
40CreateCompilation(text).VerifyDiagnostics( 75CreateCompilation(text).VerifyDiagnostics( 149CreateCompilation(text).VerifyDiagnostics( 190CreateCompilation(text).VerifyDiagnostics( 221var comp = CreateCompilation(csharp); 253var comp = CreateCompilation(csharp); 279var comp = CreateCompilation(csharp); 315var comp = CreateCompilation(csharp); 351var comp = CreateCompilation(csharp); 382var comp = CreateCompilation(csharp); 411var comp = CreateCompilation(csharp); 444var comp = CreateCompilation(csharp); 474var comp = CreateCompilation(csharp); 513var comp = CreateCompilation(csharp, options: TestOptions.UnsafeReleaseDll); 543var comp = CreateCompilation(csharp); 574var comp = CreateCompilation(csharp); 703var comp = CreateCompilation(csharp); 726var comp = CreateCompilation(csharp); 756var comp = CreateCompilation(csharp); 828var comp = CreateCompilation(csharp); 850var verifier = CreateCompilation(csharp); 879var verifier = CreateCompilation(csharp); 908var verifier = CreateCompilation(csharp); 932var comp = CreateCompilation(csharp); 960var comp = CreateCompilation(csharp); 1150var comp = CreateCompilation(csharp); 1189Compilation comp = CreateCompilation(csharp); 1262Compilation comp = CreateCompilation(csharp); 1310var comp = CreateCompilation(csharp); 1345var comp = CreateCompilation(csharp); 1377var comp = CreateCompilation(csharp); 1398var comp = CreateCompilation(csharp); 1426var comp = CreateCompilation(csharp); 1452var comp = CreateCompilation(csharp); 1479var comp = CreateCompilation(csharp); 1503var comp = CreateCompilation(csharp); 1520var comp = CreateCompilation(csharp); 1537var comp = CreateCompilation(csharp); 1551var comp = CreateCompilation(csharp); 1571var comp = CreateCompilation(csharp); 1611var moduleMetadata = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1612var moduleComp = CreateCompilation("", new[] { moduleMetadata }); 1616var dllMetadata = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1617var dllComp = CreateCompilation("", new[] { dllMetadata }); 1639var moduleMetadata = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1640var moduleComp = CreateCompilation("", new[] { moduleMetadata }); 1644var dllMetadata = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1645var dllComp = CreateCompilation("", new[] { dllMetadata }); 1667var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1673var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 1689var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1695var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 1708var comp = CreateCompilation(csharp); 1725var comp = CreateCompilation(csharp); 1757var comp = CreateCompilation(csharp); 1774var comp = CreateCompilation(csharp); 1803var comp = CreateCompilation(csharp); 1842var comp = CreateCompilation(csharp); 1861var comp = CreateCompilation(csharp); 1949var comp = CreateCompilation(csharp); 1998var comp = CreateCompilation(csharp); 2017var comp = CreateCompilation(csharp); 2042var comp = CreateCompilation(csharp); 2062var comp = CreateCompilation(csharp); 2078var comp = CreateCompilation(csharp); 2103var comp = CreateCompilation(csharp); 2129var comp = CreateCompilation(csharp); 2218var comp = CreateCompilation(csharp); 2246var comp = CreateCompilation(csharp); 2268var comp = CreateCompilation(csharp); 2287var comp = CreateCompilation(csharp); 2309var comp = CreateCompilation(csharp); 2339var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular7_3); 2363comp = CreateCompilation(csharp); 2395var comp = CreateCompilation(csharp);
Semantics\RecordStructTests.cs (92)
27=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 188var comp2 = CreateCompilation(src2, references: new[] { comp.EmitToImageReference() }); 209var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 251var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 264comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 270comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 276comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 292comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular9); 336comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 342comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 348comp = CreateCompilation(src4, parseOptions: TestOptions.Regular9); 509var comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib40); 510var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 571var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll); 659var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 926var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 970var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1102var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1136var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1166var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1504var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1560var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1613var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1672var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe); 1710var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1892var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2156var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2423var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2857var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3196var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3235var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3276var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3321var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3369var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4005comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 4053var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4092var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4138var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 5118var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5119var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 6898var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 7534var comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 7702var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 7859var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 8258var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 8265comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 8441var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8616var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8787var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8984var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9153var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9339var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9533var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9646var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9793var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9919var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10040var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10149var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 10182var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10341var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10444var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10459var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10539var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10548comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10595var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 11195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11207comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 11237var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11244comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11251comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11270comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11277comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11296comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11303comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11315var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11322comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11329comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11344var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11351comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11358comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11373var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11380comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11387comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11409comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11416comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11434var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60);
Semantics\RefEscapingTests.cs (100)
1360var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1491var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 3364var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options: TestOptions.UnsafeDebugDll); 5554var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5589var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 6208CreateCompilation(@" 6237CreateCompilation(@" 6363var comp = CreateCompilation(@" 6457CreateCompilation(code).VerifyEmitDiagnostics( 6469CreateCompilation(@" 6496CreateCompilation(@" 6523CreateCompilation(@" 6576CreateCompilation(@" 6606CreateCompilation(@" 6633CreateCompilation(@" 6671CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6689CreateCompilation(@" 6771var compilation = CreateCompilation( 6831var compilation = CreateCompilation( 6944var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7011var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7060var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7105var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7159var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7204var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7251var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7305var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7349var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7390var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7439var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7520var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7596var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7646var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7699var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7833var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7962var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8035var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8092var comp = CreateCompilation(source); 8145var comp = CreateCompilation(source); 8181var comp = CreateCompilation(source); 8225var comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular11); 8228comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular10); 8232var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10); 8235var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular11); 8238comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular11); 8242comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular11); 8245comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular10); 8248comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular10); 8345var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8372var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8435var comp = CreateCompilation(source); 8551var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8584var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8649CreateCompilation(source).VerifyDiagnostics(); 8667CreateCompilation(source).VerifyDiagnostics(); 8683CreateCompilation(source).VerifyDiagnostics( 8712var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8782CreateCompilation(source).VerifyDiagnostics( 8881CreateCompilation(source).VerifyDiagnostics( 8938CreateCompilation(source).VerifyDiagnostics( 8971CreateCompilation(source).VerifyDiagnostics(); 8986CreateCompilation(source).VerifyDiagnostics(); 9048CreateCompilation(source).VerifyDiagnostics( 9102CreateCompilation(source).VerifyDiagnostics(); 9118CreateCompilation(source).VerifyDiagnostics(); 9140CreateCompilation(source).VerifyDiagnostics( 9171CreateCompilation(source).VerifyDiagnostics( 9199CreateCompilation(source).VerifyDiagnostics( 9351CreateCompilation(source).VerifyDiagnostics( 9403CreateCompilation(source).VerifyDiagnostics( 9433CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9463CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9493CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9514CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9543CreateCompilation(source).VerifyDiagnostics( 9581CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9619CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9639CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9665CreateCompilation(source).VerifyDiagnostics(); 9685CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9705CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9725CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9937CreateCompilation(source).VerifyDiagnostics( 9988CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10035CreateCompilation(source).VerifyDiagnostics( 10078CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10124CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10170CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10198CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10227CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10248CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10274CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10303CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10330CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10359CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
Semantics\RefExtensionMethodsTests.cs (11)
428CreateCompilation(@" 472CreateCompilation(@" 516CreateCompilation(@" 598CreateCompilation(@" 642CreateCompilation(@" 973CreateCompilation(@" 1017CreateCompilation(@" 1061CreateCompilation(@" 1105CreateCompilation(@" 1149CreateCompilation(@" 1193CreateCompilation(@"
Semantics\RefFieldTests.cs (752)
85var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 97comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 126comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 150comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 167var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 175comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 197comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 211comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 236var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 244comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 271comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 285comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 312var comp = CreateCompilation(sourceB, new[] { refA }); 329var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 338comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Mscorlib461); 370var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 394var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 425var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 506var comp = CreateCompilation(sourceB, targetFramework: TargetFramework.Mscorlib40, references: new[] { refA }); 541var comp = CreateCompilation(sourceB, references: new[] { refA, CSharpRef }); 544comp = CreateCompilation("", new[] { refB }); 564var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 602var comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 632var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 656var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 726var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 772var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 821var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 904var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1002var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1095var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1160var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1236var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1279comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1316var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1350var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1395var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1440var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1487var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1488var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1543var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1544var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1595var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1596var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1651var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1652var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1689var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1727var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 1763var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1799var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1842var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1886var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1918var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1958var comp = CreateCompilation(sourceC, new[] { refB }, targetFramework: TargetFramework.Net70); 1988var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2006var comp = CreateCompilation("", references: new[] { refA, refB }); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2065comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2098var comp = CreateCompilation(sourceB, references: new[] { refA }); 2227var compA = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2246var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70); 2337var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2363comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2439var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 2477var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2512comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2534var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2601comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2640var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2696var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2732var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2782var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2827var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2830comp = CreateCompilation(source); 2847var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2898comp = CreateCompilation(source); 3033var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3036comp = CreateCompilation(source); 3139var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3142comp = CreateCompilation(source); 3400var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3403comp = CreateCompilation(source); 3454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3457comp = CreateCompilation(source); 3500var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3503comp = CreateCompilation(source); 3618var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3621comp = CreateCompilation(source); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3736comp = CreateCompilation(source); 3818var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3821comp = CreateCompilation(source); 4004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4007comp = CreateCompilation(source); 4033var comp = CreateCompilation(source); 4077var comp = CreateCompilation(source); 4126var comp = CreateCompilation(source); 4165var comp = CreateCompilation(source); 4196var comp = CreateCompilation(source); 4236var comp = CreateCompilation(source); 4291var comp = CreateCompilation(source); 4310var comp = CreateCompilation(source); 4331var comp = CreateCompilation(source); 4353var comp = CreateCompilation(source); 4391var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4421var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4459comp = CreateCompilation(source); 4501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4504comp = CreateCompilation(source); 4544var comp = CreateCompilation(source); 4570var comp = CreateCompilation(source); 4596var comp = CreateCompilation(source); 4642var comp = CreateCompilation(new[] { source }); 4693var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4763var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4815var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4854var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4899var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 5037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5040comp = CreateCompilation(source); 5072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5123var comp = CreateCompilation(source); 5179var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 5195var comp = CreateCompilation(source); 5214var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5271var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5346var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 5384var comp = CreateCompilation(source); 5437var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5465var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5484CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 5493CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 5494CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 5500var comp = CreateCompilation(""" 5523var comp = CreateCompilation(""" 5544var comp = CreateCompilation(""" 5565var comp = CreateCompilation(""" 5589var comp = CreateCompilation(""" 5624var comp = CreateCompilation(""" 5656var comp = CreateCompilation(""" 5680var comp = CreateCompilation(""" 5703var comp = CreateCompilation(""" 5726var comp = CreateCompilation(""" 5749var comp = CreateCompilation(""" 5772var comp = CreateCompilation(""" 5792var comp = CreateCompilation(""" 5815var comp = CreateCompilation(""" 5867var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5935var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5973var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6032var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6128var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6174var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6214var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6260var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6381var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 6626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 6786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7031var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7115var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7238var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7313comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7374var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7458var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7545var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7583var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7688var comp = CreateCompilation(source); 7728var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7756var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7799var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7827var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7933var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8101var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8148var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8219var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8266var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8328var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70); 8362var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8480var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 8508var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8565var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8634var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8671var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8708var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8753var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8803var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8872var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8943var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9080var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9345var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9395var comp = CreateCompilation(source); 9469var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9699var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9746var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9794var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9816var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 9864var comp = CreateCompilation(source); 9935var comp = CreateCompilation(source); 10014var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10064var comp = CreateCompilation(source); 10097var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 10157var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10175comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10201var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10240var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10280var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10416var comp = CreateCompilation(source, 10470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10535var comp = CreateCompilation(source); 10565var comp = CreateCompilation(source, 10597var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10600comp = CreateCompilation(source); 10619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10633comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10650var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10664comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10684var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10701comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10743var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10760comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10799var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10812comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.UnsafeReleaseDll); 10841var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10854comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10874var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10); 10891comp = CreateCompilation(sourceA); 10905comp = CreateCompilation(sourceB, references: new[] { refA }); 10949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10962comp = CreateCompilation(source); 10992var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11017comp = CreateCompilation(source); 11063var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 11091comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 11142var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11152comp = CreateCompilation(source); 11180var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11203comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11243var comp = CreateCompilation(source); 11266var comp = CreateCompilation(source); 11352var comp = CreateCompilation(source); 11381var comp = CreateCompilation(source); 11434var comp = CreateCompilation(source1, references: new[] { ref0 }); 11451var comp = CreateCompilation(sourceA); 11467comp = CreateCompilation(sourceB, references: new[] { refA }); 11505var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11546var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 11586var comp = CreateCompilation(source); 11617var comp = CreateCompilation(source); 11644var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11669var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11739var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 11835var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11847comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11869var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11881comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11905var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11946var comp = CreateCompilation(source); 11964var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 11975comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Mscorlib461); 12030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12053comp = CreateCompilation(source); 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12190comp = CreateCompilation(source); 12262var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12328comp = CreateCompilation(source); 12479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12658var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12733comp = CreateCompilation(source); 12889var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 13049var comp = CreateCompilation(source); 13087var comp = CreateCompilation(source); 13122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13139comp = CreateCompilation(source); 13177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13194comp = CreateCompilation(source); 13239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13253comp = CreateCompilation(source); 13289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13300comp = CreateCompilation(source); 13329var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13377var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13399var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13423var comp = CreateCompilation(source); 13432comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13487var comp = CreateCompilation(source); 13496comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13563var comp = CreateCompilation(source); 13572comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13634var comp = CreateCompilation(source); 13643comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13699var comp = CreateCompilation(source); 13738var comp = CreateCompilation(source); 13772var comp = CreateCompilation(source); 13800var comp = CreateCompilation(source); 13814var comp = CreateCompilation(source); 13828var comp = CreateCompilation(source); 13846var comp = CreateCompilation(source); 13863var comp = CreateCompilation(source); 13881var comp = CreateCompilation(source); 13904var comp = CreateCompilation(source); 13926var comp = CreateCompilation(source); 13960var comp = CreateCompilation(source); 14000var comp = CreateCompilation(source); 14039var comp = CreateCompilation(source); 14080var comp = CreateCompilation(source); 14122var comp = CreateCompilation(source); 14163var comp = CreateCompilation(source); 14224var comp = CreateCompilation(source); 14302var comp = CreateCompilation(source); 14338var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14347comp = CreateCompilation(source); 14380var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14389comp = CreateCompilation(source); 14425var comp = CreateCompilation(source); 14455var comp = CreateCompilation(source); 14484var comp = CreateCompilation(source); 14517var comp = CreateCompilation(source); 14575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14590comp = CreateCompilation(source); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 14727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14792comp = CreateCompilation(source); 14965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 15029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15043comp = CreateCompilation(source); 15072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 15120var comp = CreateCompilation(source); 15125comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 15187var comp = CreateCompilation(source); 15216var comp = CreateCompilation(source); 15245var comp = CreateCompilation(source); 15277var comp = CreateCompilation(source); 15337var comp = CreateCompilation(source); 15396var comp = CreateCompilation(source); 15459var comp = CreateCompilation(source); 15511var comp = CreateCompilation(source); 15560var comp = CreateCompilation(source); 15615var comp = CreateCompilation(source); 15661var comp = CreateCompilation(source); 15701var comp = CreateCompilation(source); 15742var comp = CreateCompilation(sourceA); 15779var comp = CreateCompilation(source); 15822var comp = CreateCompilation(source); 15881var comp = CreateCompilation(source); 15929var comp = CreateCompilation(source); 15970var comp = CreateCompilation(source); 16022var comp = CreateCompilation(source); 16071var comp = CreateCompilation(source); 16202var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16257var comp = CreateCompilation(source); 16292var comp = CreateCompilation(source); 16328var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16371var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16442var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16471var comp = CreateCompilation(source); 16495var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16532var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16579var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16622var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16684var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16764var comp = CreateCompilation(source, options: WithNullableEnable()); 16813var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 16872var comp = CreateCompilation(source); 16944var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16976var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16994var comp = CreateCompilation(source); 17025var comp = CreateCompilation(source); 17084var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 17109comp = CreateCompilation(new[] { sourceA, sourceB2 }); 17112comp = CreateCompilation(new[] { sourceB2, sourceA }); 17149var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 17168comp = CreateCompilation(new[] { sourceA, sourceB2 }); 17171comp = CreateCompilation(new[] { sourceB2, sourceA }); 17203var comp = CreateCompilation(new[] { sourceA, sourceB1, UnscopedRefAttributeDefinition }); 17206comp = CreateCompilation(new[] { sourceA, sourceB2, UnscopedRefAttributeDefinition }); 17209comp = CreateCompilation(new[] { sourceB2, sourceA, UnscopedRefAttributeDefinition }); 17227var comp = CreateCompilation(sourceA); 17248comp = CreateCompilation(sourceB, references: new[] { refA }); 17282var comp = CreateCompilation(sourceA); 17305comp = CreateCompilation(sourceB, references: new[] { refA }); 17332var comp = CreateCompilation(sourceA); 17355comp = CreateCompilation(sourceB, references: new[] { refA }); 17384var comp = CreateCompilation(source); 17413var comp = CreateCompilation(source); 17440var comp = CreateCompilation(sourceA); 17467comp = CreateCompilation(sourceB1, references: new[] { refA }); 17505comp = CreateCompilation(sourceB2, references: new[] { refA }); 17535var comp = CreateCompilation(sourceA); 17558comp = CreateCompilation(sourceB1, references: new[] { refA }); 17586comp = CreateCompilation(sourceB2, references: new[] { refA }); 17609var comp = CreateCompilation(sourceA); 17623comp = CreateCompilation(sourceB, references: new[] { refA }); 17641var comp = CreateCompilation(source); 17664var comp = CreateCompilation(source); 17688var comp = CreateCompilation(source); 17727var comp = CreateCompilation(source); 17776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17812var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17838var comp = CreateCompilation(source); 17858var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 17877var comp = CreateCompilation(source); 17902var comp = CreateCompilation(source); 17934var comp = CreateCompilation(source); 17978var comp = CreateCompilation(source); 18003var comp = CreateCompilation(source); 18022var comp = CreateCompilation(source); 18052var comp = CreateCompilation(source); 18074var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 18098var comp = CreateCompilation(source); 18117var comp = CreateCompilation(source); 18174var comp = CreateCompilation(source); 18205var comp = CreateCompilation(source); 18245var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 18295var comp = CreateCompilation(source); 18314var comp = CreateCompilation(source); 18355var comp = CreateCompilation(source); 18390var comp = CreateCompilation(source); 18434var comp = CreateCompilation(source); 18478var comp = CreateCompilation(source); 18522var comp = CreateCompilation(source); 18557var comp = CreateCompilation(source); 18593var comp = CreateCompilation(source); 18628var comp = CreateCompilation(source); 18658var comp = CreateCompilation(source); 18679var comp = CreateCompilation(source); 18700var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18744var comp = CreateCompilation(source); 18763var comp = CreateCompilation(source); 18799var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 18827var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 18849var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 18904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18930var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18960var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18995var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19021var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19064var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19092var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19130var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19174var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19227var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19274var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19322var comp = CreateCompilation(source); 19413var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19491var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19671var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19752var comp = CreateCompilation(source); 19794var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19850var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19921var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19942var comp = CreateCompilation(source); 19981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20038var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20103var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20129var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 20160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20163comp = CreateCompilation(source); 20198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20201comp = CreateCompilation(source); 20229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20298var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20333comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20354var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20356var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20369comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10); 20415var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 20461var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20486var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20516var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20585var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20605var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20660var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20687var comp = CreateCompilation(source); 20714var comp = CreateCompilation(source); 20741var comp = CreateCompilation(source); 20768var comp = CreateCompilation(source); 20798var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20825var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20846var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20875var comp = CreateCompilation(source); 20899var comp = CreateCompilation(source); 20925var comp = CreateCompilation(source); 20951var comp = CreateCompilation(source); 20977var comp = CreateCompilation(source); 21011var comp = CreateCompilation(source); 21045var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 21071var comp = CreateCompilation(source); 21094var comp = CreateCompilation(source); 21126var comp = CreateCompilation(source); 21159var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21211var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21244var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21279var comp = CreateCompilation(source); 21302var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21334var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21456var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21458comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21498var comp = CreateCompilation(source); 21530var comp = CreateCompilation(source); 21557var comp = CreateCompilation(source); 21615var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21676comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21862var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21886var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21913comp = CreateCompilation(source); 21954comp = CreateCompilation(source); 21977comp = CreateCompilation(source); 22000comp = CreateCompilation(source); 22026comp = CreateCompilation(source); 22044comp = CreateCompilation(source); 22074comp = CreateCompilation(source); 22101comp = CreateCompilation(source); 22130comp = CreateCompilation(source); 22155comp = CreateCompilation(source); 22195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22202comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22219comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22264comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22284var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22294comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22318comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22339var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22366var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22385var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22403comp = CreateCompilation(sourceB, references: new[] { refA }); 22445var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22484var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22503var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22521comp = CreateCompilation(sourceB, references: new[] { refA }); 22549var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition, IsExternalInitTypeDefinition }); 22580var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22613var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22649var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22684var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60); 22729var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22769var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22799var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22820comp = CreateCompilation(sourceB, references: new[] { refA }); 22864var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Mscorlib40); 22888comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Mscorlib461); 22939var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22952comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 22977var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22995var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23025var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23052var comp = CreateCompilation(source); 23085var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23105comp = CreateCompilation(sourceB1, references: new[] { refA }, targetFramework: TargetFramework.Net70); 23152comp = CreateCompilation(sourceB2, references: new[] { refA }, targetFramework: TargetFramework.Net70); 23195var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23288var comp = CreateCompilation(sourceB, references: new[] { refA }); 23308var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23339var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23372var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 23395comp = CreateCompilation(sourceB, references: new[] { refA }); 23445var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23511var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23598var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23648var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23681var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23709var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23740var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23778var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23819var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23863var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23893var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23929var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23966var comp = CreateCompilation(source); 24018var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 24082var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 24143var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 24181comp = CreateCompilation(new[] { sourceB, UnscopedRefAttributeDefinition }, references: new[] { refA }); 24214var comp = CreateCompilation(source); 24257var comp = CreateCompilation(new[] { sourceA, sourceB }); 24298var comp = CreateCompilation(new[] { sourceA, sourceB }); 24387var comp = CreateCompilation(sourceB, new[] { refA }); 24489var comp = CreateCompilation(sourceB, new[] { refA }); 24597var comp = CreateCompilation(sourceB, new[] { refA }); 24635var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseDll); 24663var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24700var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24706comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24784var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 24790comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24826var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24883var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24896comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24955comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24993var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25004comp = CreateCompilation(sourceB, references: new[] { refA }); 25023var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25040comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25061var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25082comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25120var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25138comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular10); 25165comp = CreateCompilation(new[] { sourceB2, UnscopedRefAttributeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular); 25198var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25216comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25269var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25296comp = CreateCompilation(new[] { sourceB, UnscopedRefAttributeDefinition }, references: new[] { refA }); 25385var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular); 25411comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25432var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25457comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25529var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25607var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25645var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25690var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25717var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25752var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25778var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25824var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 25879var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25930var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60); 25963var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 26007var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26114var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26198CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 26231CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 26265CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 26340CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 26373CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }).VerifyDiagnostics( 26416var comp = CreateCompilation(sourceB, references: new[] { refA }); 26462var comp = CreateCompilation(sourceB, references: new[] { refA }); 26501var comp = CreateCompilation(sourceB, references: new[] { refA }); 26532var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: targetFramework); 26781var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26833var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26885var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26975var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27032comp = CreateCompilation(source); 27102var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27122comp = CreateCompilation(source); 27186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27224comp = CreateCompilation(source); 27287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27325comp = CreateCompilation(source); 27391var comp = CreateCompilation(source); 27396comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 27451var comp = CreateCompilation(source); 27456comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 27505var comp = CreateCompilation(source); 27524var comp = CreateCompilation(source); 27545var comp = CreateCompilation(source); 27564var comp = CreateCompilation(source); 27599var comp = CreateCompilation(source); 27646var comp = CreateCompilation(source); 27676var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27685comp = CreateCompilation(source); 27724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27733comp = CreateCompilation(source); 27778var comp = CreateCompilation(source); 27817var comp = CreateCompilation(source); 27904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27983var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28099var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 28179var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28248var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 28292var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28317var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeReleaseExe); 28351var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28380var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28409var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28441var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28508var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 28550var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28582var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28618var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28665var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28694var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28723var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28749var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28810var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28949var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29010var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29050var comp = CreateCompilation(source); 29107var comp = CreateCompilation(source); 29169var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29246var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29316var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29376var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29411var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29449var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29479var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29524var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29789var comp = CreateCompilation(source); 29895var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29932var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29970var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29992var comp = CreateCompilation(source); 30019var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 30047var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 30089var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30245var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30296var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30526var comp = CreateCompilation(""" 30592var comp = CreateCompilation(""" 30665var comp = CreateCompilation(""" 31036var comp = CreateCompilation(""" 31061var comp = CreateCompilation(""" 31086var comp = CreateCompilation(""" 31113var comp = CreateCompilation(""" 31138var comp = CreateCompilation(""" 31166var comp = CreateCompilation(""" 31191var comp = CreateCompilation(""" 31219var comp = CreateCompilation(""" 31247var comp = CreateCompilation(""" 31272var comp = CreateCompilation(""" 31300var comp = CreateCompilation(""" 31328var comp = CreateCompilation(""" 31353var comp = CreateCompilation("""
Semantics\RefLocalsAndReturnsTests.cs (128)
25var comp = CreateCompilation(@" 46var comp = CreateCompilation(@" 73var comp = CreateCompilation(@" 91var comp = CreateCompilation(@" 112var comp = CreateCompilation(@" 128var comp = CreateCompilation(@" 146var comp = CreateCompilation(@" 165var comp = CreateCompilation(@" 186var comp = CreateCompilation(@" 205var comp = CreateCompilation(@" 259var comp = CreateCompilation(@" 294var comp = CreateCompilation(@" 332CreateCompilation(source).VerifyDiagnostics( 354CreateCompilation(source).VerifyDiagnostics(); 360var comp = CreateCompilation(@" 399var comp = CreateCompilation(@" 418var comp = CreateCompilation(@" 435var comp = CreateCompilation(@" 460var comp = CreateCompilation(@" 512var comp = CreateCompilation(@" 553CreateCompilation(tree).VerifyDiagnostics( 601var comp = CreateCompilation(@" 619var comp = CreateCompilation(@" 638var comp = CreateCompilation(@" 654var comp = CreateCompilation(@" 671var comp = CreateCompilation(@" 704var comp = CreateCompilation(@" 724var comp = CreateCompilation(@" 752var comp = CreateCompilation(@" 781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 790comp = CreateCompilation(source); 800var comp = CreateCompilation(@" 824var comp = CreateCompilation(@" 849var comp = CreateCompilation(@" 899var comp = CreateCompilation(@" 916var comp = CreateCompilation(@" 934var comp = CreateCompilation(@" 952var comp = CreateCompilation(@" 971var comp = CreateCompilation(@" 991var comp = CreateCompilation(@" 1011var comp = CreateCompilation(@" 1043CreateCompilation(source).VerifyDiagnostics( 1061CreateCompilation(source).VerifyDiagnostics( 1070CreateCompilation(@" 1092var comp = CreateCompilation(tree); 1102var comp = CreateCompilation(@" 1120var comp = CreateCompilation(@" 1138var comp = CreateCompilation(@" 1155var comp = CreateCompilation(@" 1177var comp = CreateCompilation(@" 1196var comp = CreateCompilation(@" 1218var comp = CreateCompilation(@" 1254var comp = CreateCompilation(@" 1295CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1307CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1309CreateCompilation(source).VerifyEmitDiagnostics(expectedDiagnostics); 1336CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1351var comp = CreateCompilation(@" 1382var comp = CreateCompilation(@" 1410var comp = CreateCompilation(@" 1434var comp = CreateCompilation(@" 1455var comp = CreateCompilation(@" 1476var comp = CreateCompilation(@" 1511var comp = CreateCompilation(@" 1529var comp = CreateCompilation(@" 1565var comp = CreateCompilation(@" 1605var comp = CreateCompilation(@" 1645var comp = CreateCompilation(text); 1669var comp = CreateCompilation(text); 1690var comp = CreateCompilation(text); 1734var comp = CreateCompilation(text); 1775var comp = CreateCompilation(text); 1848var comp = CreateCompilation(text); 1902var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 1956var comp = CreateCompilation(text); 1998var comp = CreateCompilation(text, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef, SystemCoreRef }); 2049var comp = CreateCompilation(text); 2166var comp = CreateCompilation(text); 2265var comp = CreateCompilation(text); 2373var comp = CreateCompilation(text); 2446var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2529var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2623var comp = CreateCompilation(text); 2956CreateCompilation(code).VerifyDiagnostics( 2991CreateCompilation(code).VerifyDiagnostics( 3151CreateCompilation(code).VerifyDiagnostics( 3191CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3199CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3200CreateCompilation(code).VerifyEmitDiagnostics(); 3227CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3256CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3268CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3269CreateCompilation(code).VerifyEmitDiagnostics(expectedDiagnostics); 3329CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3330CreateCompilation(code, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3331CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3352CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3360CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3361CreateCompilation(code).VerifyEmitDiagnostics(); 3386CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3416CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3428CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3429CreateCompilation(code).VerifyEmitDiagnostics(expectedDiagnostics); 3454CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3484CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3496CreateCompilation(code, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3497CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3838CreateCompilation(code).VerifyEmitDiagnostics( 4548CreateCompilation(@" 4565CreateCompilation(@" 4584CreateCompilation(@" 4617CreateCompilation(@" 4650CreateCompilation(@" 4673CreateCompilation(@" 4703CreateCompilation(@" 4720CreateCompilation(@" 4737var compilation = CreateCompilation(@" 4765var compilation = CreateCompilation(@" 4793var compilation = CreateCompilation(@" 4821var compilation = CreateCompilation(@" 4849var compilation = CreateCompilation(@" 4877var compilation = CreateCompilation(@" 4905var compilation = CreateCompilation(@" 5142CreateCompilation(code).VerifyEmitDiagnostics( 5167CreateCompilation(code).VerifyEmitDiagnostics( 5193var comp = CreateCompilation(code).VerifyEmitDiagnostics( 5239var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5278var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
Semantics\ScriptSemanticsTests.cs (1)
275var compilation = CreateCompilation("namespace System { public struct Int32 { } }");
Semantics\SemanticAnalyzerTests.cs (20)
61var comp = CreateCompilation(source); 82CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 89CreateCompilation(source).VerifyDiagnostics(); 107CreateCompilation(source).VerifyDiagnostics( 137CreateCompilation(source).VerifyDiagnostics( 161CreateCompilation(source).VerifyDiagnostics( 194CreateCompilation(source).VerifyDiagnostics( 591CreateCompilation(source).VerifyDiagnostics( 684CreateCompilation(source).VerifyDiagnostics( 746CreateCompilation(source).VerifyDiagnostics( 804CreateCompilation(source).VerifyDiagnostics( 845CreateCompilation(source).VerifyDiagnostics( 880CreateCompilation(source).VerifyDiagnostics( 909CreateCompilation(source).VerifyDiagnostics(); 928CreateCompilation(source).VerifyDiagnostics( 1005CreateCompilation(source).VerifyDiagnostics( 1134CreateCompilation(source).VerifyDiagnostics( 1220CreateCompilation(source).VerifyDiagnostics( 1240CreateCompilation(source).VerifyDiagnostics( 1276CreateCompilation(source).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (552)
103CreateCompilation(text). 150CreateCompilation(text).VerifyDiagnostics( 190CreateCompilation(text).VerifyDiagnostics( 214CreateCompilation(text).VerifyDiagnostics( 246CreateCompilation(text).VerifyDiagnostics( 283CreateCompilation(text).VerifyDiagnostics( 338CreateCompilation(text).VerifyDiagnostics( 386CreateCompilation(text).VerifyDiagnostics( 444CreateCompilation(text).VerifyDiagnostics( 470CreateCompilation(text).VerifyDiagnostics( 496CreateCompilation(text).VerifyDiagnostics( 560CreateCompilation(text).VerifyDiagnostics( 635CreateCompilation(text).VerifyDiagnostics( 804CreateCompilation(text).VerifyDiagnostics( 872CreateCompilation(text).VerifyDiagnostics( 939CreateCompilation(text).VerifyDiagnostics( 984CreateCompilation(text).VerifyDiagnostics( 1003CreateCompilation(text).VerifyDiagnostics( 1023CreateCompilation(text).VerifyDiagnostics( 1041CreateCompilation(text).VerifyDiagnostics( 1072CreateCompilation(text).VerifyDiagnostics( 1118CreateCompilation(text).VerifyDiagnostics( 1152CreateCompilation(text).VerifyDiagnostics( 1171CreateCompilation(text).VerifyDiagnostics( 1188CreateCompilation(text).VerifyDiagnostics( 1206CreateCompilation(text).VerifyDiagnostics( 1225CreateCompilation(text).VerifyDiagnostics( 1269CreateCompilation(text).VerifyDiagnostics( 1297CreateCompilation(text).VerifyDiagnostics( 1347CreateCompilation(text).VerifyDiagnostics( 1447CreateCompilation(source).VerifyDiagnostics( 1472CreateCompilation(source).VerifyDiagnostics( 1492CreateCompilation(text).VerifyDiagnostics( 1512CreateCompilation(text).VerifyDiagnostics( 1532CreateCompilation(text).VerifyDiagnostics( 1552CreateCompilation(text).VerifyDiagnostics( 1573CreateCompilation(text).VerifyDiagnostics( 1593CreateCompilation(text).VerifyDiagnostics( 1613CreateCompilation(text).VerifyDiagnostics( 1633CreateCompilation(text).VerifyDiagnostics( 1653CreateCompilation(text).VerifyDiagnostics( 1673CreateCompilation(text).VerifyDiagnostics( 1693var diagnostics = CreateCompilation(text).GetDiagnostics(); 1729CreateCompilation(text).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int[]", "int")); 1741CreateCompilation(text).VerifyDiagnostics( 1773CreateCompilation(text).VerifyDiagnostics( 1876CreateCompilation(text3).VerifyDiagnostics(); 1937CreateCompilation(text).VerifyDiagnostics( 1975CreateCompilation(text).VerifyDiagnostics( 2005CreateCompilation(source).VerifyDiagnostics( 2049CreateCompilation(source).VerifyDiagnostics( 2086CreateCompilation(text).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(MyEnum)null").WithArguments("Program.MyEnum").WithLocation(12, 20)); 2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 2153CreateCompilation(text).VerifyDiagnostics( 2174CreateCompilation(text).VerifyDiagnostics( 2199CreateCompilation(text).VerifyDiagnostics( 2215CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 2358CreateCompilation(text).VerifyDiagnostics( 2392CreateCompilation(text).VerifyDiagnostics( 2412CreateCompilation(text).VerifyDiagnostics( 2425CreateCompilation( 2445CreateCompilation(@" 2487CreateCompilation(source).VerifyDiagnostics( 2502CreateCompilation( 2537CreateCompilation(source).VerifyDiagnostics( 2563CreateCompilation(source).VerifyDiagnostics( 2583CreateCompilation( 2612CreateCompilation(source).VerifyDiagnostics( 2625CreateCompilation(source).VerifyDiagnostics( 2641CreateCompilation(source).VerifyDiagnostics( 2653CreateCompilation(source).VerifyDiagnostics( 2665CreateCompilation(source).VerifyDiagnostics( 2681CreateCompilation(source).VerifyDiagnostics( 2698CreateCompilation(source).VerifyDiagnostics( 2717CreateCompilation(source).VerifyDiagnostics( 2729CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2793CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2813CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2829CreateCompilation( 2849CreateCompilation( 2888CreateCompilation( 2929CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 2937CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 2951CreateCompilation( 2975CreateCompilation( 3040CreateCompilation( 3079CreateCompilation( 3172CreateCompilation(text).VerifyDiagnostics( 3196CreateCompilation(text).VerifyDiagnostics( 3223CreateCompilation(text).VerifyDiagnostics( 3251var comp = CreateCompilation(text); 3289CreateCompilation(text).VerifyDiagnostics( 3323var compilation = CreateCompilation(tree); 3383CreateCompilation(text).VerifyDiagnostics( 3404CreateCompilation(text).VerifyDiagnostics( 3447CreateCompilation(text).VerifyDiagnostics( 3478CreateCompilation(text).VerifyDiagnostics( 3530CreateCompilation(text).VerifyDiagnostics( 3558CreateCompilation(source).VerifyDiagnostics( 3629CreateCompilation(source).VerifyDiagnostics( 3652CreateCompilation(source).VerifyDiagnostics( 3674CreateCompilation(text).VerifyDiagnostics( 3695CreateCompilation(text). 3709CreateCompilation( 3751CreateCompilation(source).VerifyDiagnostics( 3803CreateCompilation(source).VerifyDiagnostics( 3841CreateCompilation(source).VerifyDiagnostics( 3869CreateCompilation(source).VerifyDiagnostics( 3894CreateCompilation(source).VerifyDiagnostics( 4002var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_3); 4017comp = CreateCompilation(text); 4035CreateCompilation( 4070CreateCompilation( 4139var comp = CreateCompilation(text); 4175var comp = CreateCompilation(text); 4203var comp = CreateCompilation(text); 4261CreateCompilation(test).VerifyDiagnostics( 4293var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 4330CreateCompilation(text).VerifyDiagnostics( 4349var comp = CreateCompilation(text); 4375var comp = CreateCompilation(text); 4385CreateCompilation( 4434CreateCompilation(source).VerifyDiagnostics( 4459CreateCompilation(source).VerifyDiagnostics( 4475CreateCompilation(source).VerifyDiagnostics( 4484CreateCompilation( 4515CreateCompilation( 4553var compilation1 = CreateCompilation(source1); 4566var compilation2 = CreateCompilation(source2, references: new[] { reference1 }); 4595CreateCompilation(text).VerifyDiagnostics( 4624CreateCompilation(text).VerifyDiagnostics( 4653CreateCompilation(text).VerifyDiagnostics( 4681CreateCompilation(text).VerifyDiagnostics( 4727CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 4733CreateCompilation(text).VerifyDiagnostics( 4755CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 4758CreateCompilation(text).VerifyDiagnostics(); // dynamic conversion to Exception 4784CreateCompilation(text).VerifyDiagnostics( 4899CreateCompilation(text).VerifyDiagnostics( 4992CreateCompilation(text).VerifyDiagnostics( 5074CreateCompilation(text).VerifyDiagnostics( 5120CreateCompilation(text). 5144CreateCompilation(text). 5200CreateCompilation(text). 5249CreateCompilation(text).VerifyDiagnostics( 5276CreateCompilation(text). 5299CreateCompilation(text). 5326CreateCompilation(text). 5348CreateCompilation(text). 5397CreateCompilation(text). 5429CreateCompilation(text). 5465CreateCompilation(text). 5503CreateCompilation(text).VerifyDiagnostics( 5532CreateCompilation(text).VerifyDiagnostics( 5560CreateCompilation(text).VerifyDiagnostics( 5593CreateCompilation(text).VerifyDiagnostics( 5620CreateCompilation(text).VerifyDiagnostics( 5646CreateCompilation(text).VerifyDiagnostics( 5668CreateCompilation(text).VerifyDiagnostics( 5690CreateCompilation(text).VerifyDiagnostics( 5714CreateCompilation(text).VerifyDiagnostics( 5738CreateCompilation(text).VerifyDiagnostics( 5763CreateCompilation(text).VerifyDiagnostics( 5790CreateCompilation(text).VerifyDiagnostics( 5823CreateCompilation(text).VerifyDiagnostics( 5856CreateCompilation(text).VerifyDiagnostics( 5892CreateCompilation(source).VerifyDiagnostics( 5924CreateCompilation(source).VerifyDiagnostics( 6160CreateCompilation( 6201CreateCompilation( 6304CreateCompilation( 6338CreateCompilation( 6357CreateCompilation( 6377CreateCompilation( 6463var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 6511var comp = CreateCompilation(text); 6542CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 6573CreateCompilation(text).VerifyDiagnostics( 6592CreateCompilation(text). 6612CreateCompilation(text).VerifyDiagnostics( 6639CreateCompilation(text).VerifyDiagnostics( 6681CreateCompilation(text).VerifyDiagnostics( 6704CreateCompilation(text).VerifyDiagnostics( 6726CreateCompilation(source).VerifyDiagnostics( 6750CreateCompilation(source).VerifyDiagnostics( 6782CreateCompilation(source).VerifyDiagnostics( 6810CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461).VerifyDiagnostics( 6834CreateCompilation(source).VerifyDiagnostics( 6864CreateCompilation(text).VerifyDiagnostics( 6886CreateCompilation(text).VerifyDiagnostics( 6947CreateCompilation(text). 6979CreateCompilation(text, parseOptions: TestOptions.Regular10). 7239var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 7340CreateCompilation(source).Emit(new System.IO.MemoryStream()).Diagnostics 7387CreateCompilation(source).VerifyDiagnostics( 7482var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7571CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 7576CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 7643CreateCompilation(text, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(); 7695CreateCompilation(source).VerifyDiagnostics( 7725CreateCompilation(source).VerifyDiagnostics( 7746CreateCompilation(source).VerifyDiagnostics( 7761CreateCompilation(source).VerifyDiagnostics( 7769CreateCompilation( 7801var compilation1 = CreateCompilation(source1); 7814var compilation2 = CreateCompilation(source2, references: new[] { reference1 }); 7840CreateCompilation(text).VerifyDiagnostics( 7859CreateCompilation(text, parseOptions: TestOptions.Regular.WithTuplesFeature()).VerifyDiagnostics( 7892var comp = CreateCompilation(new[] { Parse(test, options: TestOptions.Regular6) }, new MetadataReference[] { }); 8036CreateCompilation(text).VerifyDiagnostics( 8065CreateCompilation(text).VerifyDiagnostics( 8095CreateCompilation(text).VerifyDiagnostics( 8144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8237CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8273CreateCompilation(text).VerifyDiagnostics( 8308CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8401var comp = CreateCompilation(text); 8425CreateCompilation(text).VerifyDiagnostics( 8444CreateCompilation(text).VerifyDiagnostics( 8466CreateCompilation(text).VerifyDiagnostics( 8506CreateCompilation(text).VerifyDiagnostics( 8588CreateCompilation(text).VerifyDiagnostics( 8669var comp = CreateCompilation(text); 8758CreateCompilation( 8782CreateCompilation( 8813CreateCompilation( 8854CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8890CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8920CreateCompilation(text).VerifyDiagnostics( 8929CreateCompilation(@" 8953CreateCompilation(@" 8979CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9001CreateCompilation(text).VerifyDiagnostics( 9043CreateCompilation(text).VerifyDiagnostics( 9079CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9103CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9127CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9162CreateCompilation(source).VerifyDiagnostics( 9180CreateCompilation(source).VerifyDiagnostics( 9205CreateCompilation(source).VerifyDiagnostics( 9230CreateCompilation(source).VerifyDiagnostics( 9246CreateCompilation(source).VerifyDiagnostics( 9257CreateCompilation(source).VerifyDiagnostics(); 9268CreateCompilation(source).VerifyDiagnostics(); 9285CreateCompilation(source).VerifyDiagnostics( 9311CreateCompilation(source).VerifyDiagnostics( 9329CreateCompilation(text). 9351CreateCompilation(text).VerifyDiagnostics( 9377CreateCompilation(text). 9403CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 9421CreateCompilation(source).VerifyDiagnostics( 9482CreateCompilation(source).VerifyDiagnostics( 9512CreateCompilation(source).VerifyDiagnostics( 9538CreateCompilation(source).VerifyDiagnostics( 9574CreateCompilation(source).VerifyDiagnostics( 9586CreateCompilation( 9643CreateCompilation(source).VerifyDiagnostics( 9679CreateCompilation(source).VerifyDiagnostics( 9687CreateCompilation( 9735CreateCompilation(source).VerifyDiagnostics( 9773CreateCompilation(source).VerifyDiagnostics( 9805CreateCompilation(source).VerifyDiagnostics( 9824CreateCompilation(text).VerifyDiagnostics( 9868CreateCompilation(text).VerifyDiagnostics( 10109CreateCompilation(text).VerifyDiagnostics( 10174CreateCompilation(text).VerifyDiagnostics( 10197CreateCompilation(source).VerifyDiagnostics( 10212CreateCompilation(source).VerifyDiagnostics( 10222CreateCompilation(source).VerifyDiagnostics( 10239CreateCompilation(source).VerifyDiagnostics( 10272CreateCompilation(source).VerifyDiagnostics( 10295CreateCompilation(source).VerifyDiagnostics( 10320CreateCompilation(source).VerifyDiagnostics( 10342CreateCompilation(source).VerifyDiagnostics( 10357CreateCompilation(source).VerifyDiagnostics( 10368CreateCompilation(source).VerifyDiagnostics( 10391CreateCompilation(source).VerifyDiagnostics( 10422CreateCompilation(text).VerifyDiagnostics( 10463CreateCompilation(source).VerifyDiagnostics( 10535CreateCompilation(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 10540CreateCompilation(text).VerifyDiagnostics( 10565CreateCompilation(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 10573CreateCompilation(text).VerifyDiagnostics( 10613CreateCompilation(text).VerifyDiagnostics( 10654CreateCompilation(text).VerifyDiagnostics( 10716CreateCompilation(source).VerifyDiagnostics( 10746CreateCompilation(source).VerifyDiagnostics( 10769CreateCompilation(source).VerifyDiagnostics( 10826CreateCompilation(text).VerifyDiagnostics( 10897CreateCompilation(code).VerifyDiagnostics( 10932CreateCompilation(text).VerifyDiagnostics( 10961CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 10999CreateCompilation(text).VerifyDiagnostics( 11040CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(noWarns)).VerifyDiagnostics( 11070CreateCompilation(text).VerifyDiagnostics( 11085CreateCompilation(text).VerifyDiagnostics( 11110CreateCompilation(text).VerifyDiagnostics( 11162CreateCompilation(text).VerifyDiagnostics( 11184CreateCompilation(source).VerifyDiagnostics( 11204CreateCompilation(source).VerifyDiagnostics( 11229CreateCompilation(source).VerifyDiagnostics( 11269CreateCompilation(source).VerifyDiagnostics( 11318CreateCompilation(source).VerifyDiagnostics( 11362CreateCompilation(source).VerifyDiagnostics( 11407CreateCompilation(source).VerifyDiagnostics(); 11413var compilation = CreateCompilation( 11449CreateCompilation(source).VerifyDiagnostics( 11511CreateCompilation(test).VerifyDiagnostics( 11528var comp = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461); 11553var comp = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461); 11589CreateCompilation(text).VerifyDiagnostics( 11629var compilation = CreateCompilation( 11667var compilation = CreateCompilation(text); 11686CreateCompilation(@" 11726CreateCompilation(text).VerifyDiagnostics( 11756CreateCompilation(text).VerifyDiagnostics( 11844CreateCompilation(code).VerifyDiagnostics( 11852CreateCompilation( 11917CreateCompilation(text).VerifyDiagnostics( 11965CreateCompilation(text).VerifyDiagnostics( 11988CreateCompilation(text).VerifyDiagnostics( 12031var comp = CreateCompilation(source); 12054var comp = CreateCompilation(source); 12112CreateCompilation(@" 12278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12302var comp = CreateCompilation(text); 12787CreateCompilation(text).VerifyDiagnostics( 12810CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 12838CreateCompilation( 12861CreateCompilation( 12885CreateCompilation( 12976CreateCompilation(text, parseOptions: TestOptions.Regular10) 13010var comp = CreateCompilation(text); 13076CreateCompilation(text).VerifyDiagnostics( 13232CreateCompilation(text).VerifyDiagnostics( 13319var compilation2 = CreateCompilation(source2, new[] { reference1 }); 13371var compilation2 = CreateCompilation(source2, new[] { reference1 }); 13454var compilation2 = CreateCompilation(source2, new[] { reference1 }); 13505CreateCompilation(text).VerifyDiagnostics( 13554CreateCompilation(text).VerifyDiagnostics( 13609CreateCompilation(source).VerifyDiagnostics( 13618CreateCompilation( 13647CreateCompilation( 13850CreateCompilation(source, references: new[] { Net40.References.SystemCore }).VerifyDiagnostics( 13946CreateCompilation(text).VerifyDiagnostics( 13971CreateCompilation(source).VerifyDiagnostics( 13998CreateCompilation(source).VerifyDiagnostics( 14030CreateCompilation(source).VerifyDiagnostics( 14097CreateCompilation(text).VerifyDiagnostics( 14123CreateCompilation(text).VerifyDiagnostics( 14151CreateCompilation(text).VerifyDiagnostics( 14179CreateCompilation(text).VerifyDiagnostics( 14209CreateCompilation(text, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 14270CreateCompilation(text).VerifyDiagnostics( 14331CreateCompilation( 14351CreateCompilation( 14367CreateCompilation( 14394CreateCompilation( 14445CreateCompilation( 14561CreateCompilation(text).VerifyDiagnostics( 14675CreateCompilation(text). 14753CreateCompilation(text).VerifyDiagnostics( 14775CreateCompilation(text). 14828CreateCompilation(text).VerifyDiagnostics( 14848CreateCompilation(text). 14898CreateCompilation(text).VerifyDiagnostics( 14924CreateCompilation(text).VerifyDiagnostics( 15002CreateCompilation(source).VerifyDiagnostics( 15048CreateCompilation(text).VerifyDiagnostics( 15077CreateCompilation(text).VerifyDiagnostics( 15127var comp = CreateCompilation(text); 15155var comp = CreateCompilation(text); 15191var comp = CreateCompilation(text); 15247var comp = CreateCompilation(text); 15282var comp = CreateCompilation(text); 15333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 15361CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 15362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 15390var comp = CreateCompilation(text); 15419var comp = CreateCompilation(text); 15445var comp = CreateCompilation(text); 15466CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15554CreateCompilation(text). 15578CreateCompilation(text).VerifyDiagnostics( 15599CreateCompilation(text). 15667CreateCompilation(text).VerifyDiagnostics( 15696CreateCompilation(text).VerifyDiagnostics( 15727CreateCompilation(text).VerifyDiagnostics( 15768CreateCompilation(text).VerifyDiagnostics( 15798CreateCompilation(text).VerifyDiagnostics( 15833CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15851CreateCompilation(text).VerifyDiagnostics( 15876CreateCompilation(text). 15899CreateCompilation(text).VerifyDiagnostics( 15958CreateCompilation(text).VerifyDiagnostics( 16011CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 16051CreateCompilation(text, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 16150CreateCompilation(source).VerifyDiagnostics( 16171CreateCompilation(source).VerifyDiagnostics( 16290CreateCompilation(text).VerifyDiagnostics( 16312var compilation = CreateCompilation(text); 16339var compilation = CreateCompilation(text); 16396CreateCompilation(text).VerifyDiagnostics( 16425CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16455CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16484CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16509CreateCompilation(text).VerifyDiagnostics( 16549CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16583var comp = CreateCompilation(text); 16626var compilation = CreateCompilation(text); 16722var comp = CreateCompilation(text); 16741var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 16800var compilation = CSharpTestBase.CreateCompilation(text); 16952CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17244var comp = CreateCompilation(program); 17317CreateCompilation(text).VerifyDiagnostics( 17544CreateCompilation(program).VerifyDiagnostics( 17730var comp = CreateCompilation(text); 17811CreateCompilation(text).VerifyDiagnostics( 17943CreateCompilation(text).VerifyDiagnostics( 18100CreateCompilation(text).VerifyDiagnostics( 18200CreateCompilation(text).VerifyDiagnostics( 18268CreateCompilation(text).VerifyDiagnostics( 18337CreateCompilation(text).VerifyDiagnostics( 18368CreateCompilation(text).VerifyDiagnostics( 18391CreateCompilation(source).VerifyDiagnostics(); 18393CreateCompilation(source, options: TestOptions.DebugExe.WithWarningLevel(5)).VerifyDiagnostics(); 18448var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18542var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18568var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18866CreateCompilation(text).VerifyDiagnostics( 18889CreateCompilation(text).VerifyDiagnostics( 18909CreateCompilation(text).VerifyDiagnostics( 18940CreateCompilation(text).VerifyDiagnostics(); 18955CreateCompilation(text).VerifyDiagnostics( 18982CreateCompilation(text).VerifyDiagnostics( 19009CreateCompilation(text).VerifyDiagnostics( 19046CreateCompilation(text).VerifyDiagnostics( 19076CreateCompilation(text).VerifyDiagnostics( 19109CreateCompilation(text).VerifyDiagnostics( 19154CreateCompilation(text).VerifyDiagnostics( 19180CreateCompilation(text). 19197CreateCompilation(text). 19215CreateCompilation(text).VerifyDiagnostics( 19238CreateCompilation(text).VerifyDiagnostics( 19258CreateCompilation(text).VerifyDiagnostics( 19275var comp = CreateCompilation(text); 19304var comp = CreateCompilation(text); 19337var comp = CreateCompilation(text); 19420CreateCompilation(text).VerifyDiagnostics( 19469CreateCompilation(text).VerifyDiagnostics( 19514CreateCompilation(text).VerifyDiagnostics( 19533CreateCompilation(text).VerifyDiagnostics( 19551CreateCompilation(text).VerifyDiagnostics( 19567CreateCompilation(text).VerifyDiagnostics( 19585CreateCompilation(text).VerifyDiagnostics( 19609CreateCompilation(text).VerifyDiagnostics( 19630CreateCompilation(text).VerifyDiagnostics( 19652CreateCompilation(text).VerifyDiagnostics(); 19672CreateCompilation(text).VerifyDiagnostics( 19696CreateCompilation(text).VerifyDiagnostics( 19756CreateCompilation(text).VerifyDiagnostics(); 19803CreateCompilation(text).VerifyDiagnostics( 19837CreateCompilation(text).VerifyDiagnostics( 19861CreateCompilation(text).VerifyDiagnostics(); 19879CreateCompilation(text).VerifyDiagnostics( 19942CreateCompilation(text).VerifyDiagnostics( 19977CreateCompilation(text).VerifyDiagnostics( 20015CreateCompilation(text).VerifyDiagnostics( 20037var comp = CreateCompilation(text); 20053var comp = CreateCompilation(text); 20118CreateCompilation(text).VerifyDiagnostics( 20178CreateCompilation(text).VerifyDiagnostics( 20208CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 20242CreateCompilation(text).VerifyDiagnostics(); 20269CreateCompilation(text).VerifyDiagnostics(); 20336var comp = CreateCompilation(text); 20547CreateCompilation(text).VerifyDiagnostics( 20873CreateCompilation(text).VerifyDiagnostics( 21111CreateCompilation(text).VerifyDiagnostics( 21141CreateCompilation(text). 21163CreateCompilation(text). 21190var comp = CreateCompilation(text); 21213CreateCompilation(text).VerifyDiagnostics( 21240CreateCompilation(text).VerifyDiagnostics( 21265CreateCompilation(text).VerifyDiagnostics(); 21288CreateCompilation(text).VerifyDiagnostics( 21307CreateCompilation(text).VerifyDiagnostics( 21330CreateCompilation(text).VerifyDiagnostics( 21389CreateCompilation(text).VerifyDiagnostics( 21460var comp = CreateCompilation(text); 21498CreateCompilation(@" 21526CreateCompilation( 21579var compilation = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461, options: TestOptions.DebugExe); 21610CreateCompilation(text).VerifyDiagnostics( 21899var c = CreateCompilation( 22077CreateCompilation(text).VerifyDiagnostics( 22136CreateCompilation(text).VerifyDiagnostics( 22171CreateCompilation(text). 22280CreateCompilation(text).VerifyDiagnostics(); 22305CreateCompilation(text).VerifyDiagnostics( 22350CreateCompilation(text).VerifyDiagnostics( 22503CreateCompilation(text).VerifyDiagnostics( 22640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22663CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 22813CreateCompilation(text).VerifyDiagnostics( 22848CreateCompilation(text).VerifyDiagnostics( 22890CreateCompilation(text).VerifyDiagnostics( 22935CreateCompilation(text).VerifyDiagnostics( 22969CreateCompilation(text).VerifyEmitDiagnostics( 23016var comp = CreateCompilation(text); 23069CreateCompilation(source).VerifyDiagnostics( 23093CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23158CreateCompilation(source).VerifyDiagnostics( 23172CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23217CreateCompilation(source).VerifyDiagnostics( 23333CreateCompilation(text).VerifyDiagnostics( 23477CreateCompilation(text).VerifyDiagnostics( 23522CreateCompilation(text).VerifyDiagnostics( 23541CreateCompilation(text).VerifyDiagnostics( 23558CreateCompilation(text).VerifyDiagnostics( 23578CreateCompilation(text).VerifyDiagnostics( 23595CreateCompilation(text).VerifyDiagnostics( 23620CreateCompilation(builder.ToString(), null, TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)).VerifyEmitDiagnostics( 23642CreateCompilation(@" 23659CreateCompilation(@" 23684CreateCompilation(@" 23710CreateCompilation(@" 23753CreateCompilation(text).VerifyDiagnostics( 23779CreateCompilation(text).VerifyDiagnostics( 23797CreateCompilation(text).VerifyDiagnostics( 23821CreateCompilation(source).VerifyDiagnostics(); 23843CreateCompilation(source).VerifyDiagnostics( 23909CreateCompilation(source).VerifyDiagnostics( 23975CreateCompilation(source).VerifyDiagnostics( 24025CreateCompilation(text).VerifyDiagnostics( 24055CreateCompilation(text).VerifyDiagnostics( 24132CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 24684var compilation = CreateCompilation(text); 24831var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 24868var comp = CreateCompilation(source); 24889var comp = CreateCompilation(source); 24947var comp = CreateCompilation(source); 24971var comp = CreateCompilation(source); 25003var comp = CreateCompilation(source); 25033var comp = CreateCompilation(source); 25064var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 25100var comp = CreateCompilation(source); 25164var comp = CreateCompilation(source); 25261var comp = CreateCompilation(source);
Semantics\SpanStackSafetyTests.cs (7)
1497var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1541var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1595var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1657var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1694CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 2094CreateCompilation(code).VerifyDiagnostics( 2128CreateCompilation(code).VerifyDiagnostics(
Semantics\StackAllocInitializerTests.cs (10)
1244CreateCompilation(@" 1278CreateCompilation(@" 1497CreateCompilation(@" 1620CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1820CreateCompilation(@" 2119CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2283CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2704var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\StackAllocSpanExpressionsTests.cs (5)
195CreateCompilation(@" 214CreateCompilation(@" 405CreateCompilation(@" 471CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 603CreateCompilation(@"
Semantics\StructConstructorTests.cs (74)
29var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 35comp = CreateCompilation(sourceA); 101var comp = CreateCompilation(source); 217var comp = CreateCompilation(sourceA); 247comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 250comp = CreateCompilation(sourceB, references: new[] { refA }); 1325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1590comp = CreateCompilation(source); 1626var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1676comp = CreateCompilation(source); 1721var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1898var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1927var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1973var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2013var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2074var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2086comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 2376var comp = CreateCompilation(source); 2437var comp = CreateCompilation(source); 2535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2568comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2580comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2650comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2662comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2700var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2712comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 2753var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2855var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3035var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3038comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 3054var comp = CreateCompilation(source); 3076var comp = CreateCompilation(source); 3140var comp = CreateCompilation(source); 3218var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 3235comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461); 3276var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3297comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 3326var comp = CreateCompilation(source); 3356var comp = CreateCompilation(source); 3406var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular10); 3418comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11); 3456var comp = CreateCompilation(source); 3524var comp = CreateCompilation(source); 3547var comp = CreateCompilation(source); 3574var comp = CreateCompilation(source); 3615var comp = CreateCompilation(source); 3719var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3792var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3819var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3846var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3870var comp = CreateCompilation(source, parseOptions: TestOptions.Script, targetFramework: TargetFramework.NetCoreApp); 3889CreateCompilation(source, parseOptions: TestOptions.Regular10) 3895CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 3901CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.Regular11) 3940var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 3978CreateCompilation(source, parseOptions: TestOptions.Regular10) 3990CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 4015var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4055var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4107var comp = CreateCompilation(source); 4129var comp = CreateCompilation(source); 4149var comp = CreateCompilation(source); 4527var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4533comp = CreateCompilation(source); 4549var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4552comp = CreateCompilation(source); 4699var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 4827var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4870var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\StructsTests.cs (13)
30CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 59CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 67CreateCompilation(text).VerifyDiagnostics( 86CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 94CreateCompilation(text).VerifyDiagnostics(); 117var comp = CreateCompilation(text, options: TestOptions.DebugExe); 570CreateCompilation(csSource).VerifyDiagnostics( 596CreateCompilation(csSource).VerifyDiagnostics( 613CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461).VerifyDiagnostics( 638CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 652CreateCompilation(source).VerifyDiagnostics( 669var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 681comp = CreateCompilation(text);
Semantics\SuppressAccessibilityChecksTests.cs (5)
20var compilationA = CreateCompilation(@" 33var compilationB = CreateCompilation(@" 120var comp = CreateCompilation(tree); 155var compilationB = CreateCompilation(@" 184var compilation = CreateCompilation(@"
Semantics\SwitchTests.cs (119)
40CreateCompilation(source).VerifyDiagnostics(); 79CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 84CreateCompilation(text).VerifyDiagnostics( 114CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 119CreateCompilation(text).VerifyDiagnostics( 150CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 155CreateCompilation(text).VerifyDiagnostics( 192CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 200CreateCompilation(text).VerifyDiagnostics( 255CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 281CreateCompilation(text).VerifyDiagnostics( 331CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 336CreateCompilation(text).VerifyDiagnostics( 365CreateCompilation(text, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 396CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 404CreateCompilation(text).VerifyDiagnostics( 437CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 442CreateCompilation(text).VerifyDiagnostics( 462CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 467CreateCompilation(text).VerifyDiagnostics( 492CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 497CreateCompilation(text).VerifyDiagnostics( 522CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 527CreateCompilation(text).VerifyDiagnostics( 550CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 554CreateCompilation(text).VerifyDiagnostics( 593CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 597CreateCompilation(text).VerifyDiagnostics(); 633CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 638CreateCompilation(text).VerifyDiagnostics( 675CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 680CreateCompilation(text).VerifyDiagnostics( 725CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 730CreateCompilation(text).VerifyDiagnostics( 779CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 783CreateCompilation(text).VerifyDiagnostics( 832CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 837CreateCompilation(text).VerifyDiagnostics( 887CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 888CreateCompilation(text).VerifyDiagnostics(); 920CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 925CreateCompilation(text).VerifyDiagnostics( 959CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 964CreateCompilation(text).VerifyDiagnostics( 1001CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1005CreateCompilation(text).VerifyDiagnostics( 1037CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1051CreateCompilation(text).VerifyDiagnostics( 1083CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1088CreateCompilation(text).VerifyDiagnostics( 1202CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1203CreateCompilation(text).VerifyDiagnostics(); 1243CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1244CreateCompilation(text).VerifyDiagnostics(); 1293CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1294CreateCompilation(text).VerifyDiagnostics(); 1336CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1337CreateCompilation(text).VerifyDiagnostics(); 1374CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1375CreateCompilation(text).VerifyDiagnostics(); 1417CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1418CreateCompilation(text).VerifyDiagnostics(); 1461CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1465CreateCompilation(text).VerifyDiagnostics( 1511CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1516CreateCompilation(text).VerifyDiagnostics( 1562CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1569CreateCompilation(text).VerifyDiagnostics( 1615CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1620CreateCompilation(text).VerifyDiagnostics( 1666CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1671CreateCompilation(text).VerifyDiagnostics( 1717CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1722CreateCompilation(text).VerifyDiagnostics( 1768CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1773CreateCompilation(text).VerifyDiagnostics( 1825CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1830CreateCompilation(text).VerifyDiagnostics( 1883CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1891CreateCompilation(text).VerifyDiagnostics( 1943CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1948CreateCompilation(text).VerifyDiagnostics( 2000CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2008CreateCompilation(text).VerifyDiagnostics( 2067CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2075CreateCompilation(text).VerifyDiagnostics( 2227CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2232CreateCompilation(text).VerifyDiagnostics( 2267CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2272CreateCompilation(text).VerifyDiagnostics( 2304CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2309CreateCompilation(text).VerifyDiagnostics( 2359CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2370CreateCompilation(text).VerifyDiagnostics( 2462CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2467CreateCompilation(text).VerifyDiagnostics( 2519CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2530CreateCompilation(text).VerifyDiagnostics( 2579CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2583CreateCompilation(text).VerifyDiagnostics( 2613CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2623CreateCompilation(text).VerifyDiagnostics( 2682CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2686CreateCompilation(text).VerifyDiagnostics( 2714CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2719CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2724CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 2749CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2753CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2754CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 2780CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2791CreateCompilation(text).VerifyDiagnostics( 2821CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(); 2822CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp1)).VerifyDiagnostics( 2912CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2917CreateCompilation(text).VerifyDiagnostics( 2945CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 2946CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2947CreateCompilation(text).VerifyDiagnostics(
Semantics\SynthesizedStaticConstructorTests.cs (1)
290var compilation = CreateCompilation(source);
Semantics\TargetTypedConditionalOperatorTests.cs (21)
182var comp = CreateCompilation( 207var comp = CreateCompilation( 229var comp = CreateCompilation( 265var comp = CreateCompilation( 333var comp = CreateCompilation(tree, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe) 415comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugExe) 432CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll.WithAllowUnsafe(true)) 434CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll.WithAllowUnsafe(true)) 451CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll) 453CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll) 525CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(expectedDiagnostics); 526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(expectedDiagnostics); 613CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics(); 614CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(); 639CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics( 647CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics( 664var comp = CreateCompilation(source); 685var comp = CreateCompilation(source); 707var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 713comp = CreateCompilation(source);
Semantics\TargetTypedDefaultTests.cs (113)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 117var comp = CreateCompilation(source, options: TestOptions.DebugExe); 136var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 219var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 236var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 273var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 413var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 457var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 509var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 552var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 595var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 637var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 692var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 713var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 734var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 778var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 830var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 859var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 910var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 928var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 967var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1013var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1134var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1163var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1192var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1365var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1468var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1471var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1574var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1593var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1624var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1721var comp = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugExe); 1787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular, options: TestOptions.DebugExe); 1903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1968var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2053var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2079var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2108var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2227var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2359var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2381var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2549var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2591var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2609var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2628var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2653var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, references: new[] { CSharpRef }, options: TestOptions.DebugExe); 2671var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2696var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 2722CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_1) 2743var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2833var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2855var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2880var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1); 2903var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2926var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2962var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3100var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3129var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3295var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3330var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3369var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3428var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3447var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3467var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3506var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3547var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3568var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3705var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3743var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3793var comp = CreateCompilation(source);
Semantics\TopLevelStatementsTests.cs (280)
43var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 77var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 105var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 113comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 140var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 161var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 164comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 177var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 183comp = CreateCompilation(text1, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions); 278var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 293comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 308comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions); 434var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 455comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 524var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 562var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 611var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 630var comp = CreateCompilation(text, parseOptions: DefaultParseOptions); 664var comp = CreateCompilation(text, parseOptions: DefaultParseOptions); 690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 736var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 780var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 812var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 825var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 838var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 859var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 909var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 930var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 970var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1002var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1015var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1028var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1055var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1073var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1101var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1116var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1123comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 1130comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular13); 1133comp = CreateCompilation(text, options: TestOptions.DebugExe); 1269var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1286var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1302var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1316comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1346var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1360comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1395var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1413comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1446var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1465comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1500var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1541var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1587var comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1649var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1822var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1976var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1979comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1982Assert.Throws<System.ArgumentException>(() => CreateCompilation(new[] { Parse(text1, filename: "text1", DefaultParseOptions), 1986comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 2043var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2207var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2357var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2360comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2363comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 2409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2554var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2573var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2604var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2629var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2775var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2860var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2894var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3008var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3070var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3133var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3200var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3264var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3326var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3389var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3456var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3520var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3582var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3645var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3712var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3776var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3844var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4061var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4161var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4186var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4207var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4289var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4311var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4363var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4451var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4468var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4492var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4531var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4559var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4597var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4611var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4639var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4656var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4672var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4692var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4707var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4725var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4748var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4763var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4777var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4798var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4819var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4840var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4865var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4885var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4917var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4938var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4970var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5003var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5031var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5061var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5093var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5123var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5149var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5185var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5224var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5280var comp = CreateCompilation(new[] { text1, text4 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5317var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName("Program2"), parseOptions: DefaultParseOptions); 5344var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName(""), parseOptions: DefaultParseOptions); 5368var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5388var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5430var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5454var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5479var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5506var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5534var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5561var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5589var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5613var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5638var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5655var comp = CreateCompilation(text); 5665var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5679var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5698var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5719var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5743var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5769var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5790var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5811var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5853var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5873var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5897var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5915var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5939var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5962var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5999var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6223var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6264var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6307var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6357var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6396var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6407comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6501var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6510comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6558var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6573comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6679var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6690comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6766var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6775comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6824var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6833comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6882var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6891comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6950var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6959comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7029var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7037comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7142var comp = CreateCompilation(text1 + text2 + text3, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7151comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7236var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7245comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7309var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7319comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7376var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7386comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7465var comp = CreateCompilation(text, targetFramework: TargetFramework.Minimal, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7488var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7510var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7548var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7574var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7605var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7623var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7670var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7717var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7786var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7851var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7874var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7893var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7932var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7950var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7972var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7992var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8011var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8029var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8049var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8061var comp = CreateCompilation(text, options: TestOptions.DebugDll, parseOptions: DefaultParseOptions); 8074var comp = CreateCompilation(text, options: TestOptions.ReleaseModule, parseOptions: DefaultParseOptions); 8190var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8208var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8221var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8230var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8244var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8258var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8272var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8299var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8316var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8333var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8350var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8397var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithOverflowChecks(true), parseOptions: DefaultParseOptions); 8442var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8458var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8485var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8515var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8537var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8556var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8571var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8604var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8624var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8636var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8647var comp = CreateCompilation(text); 8669var comp = CreateCompilation(text); 8691var comp = CreateCompilation(text); 8818var comp = CreateCompilation(@" 8874var comp = CreateCompilation(@" 8951var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8968var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8985var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8997var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9010var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9028var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9046var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9101var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9139var comp = CreateCompilation(text); 9173var comp = CreateCompilation(text); 9195var comp = CreateCompilation(text); 9217var comp = CreateCompilation(text); 9246var comp = CreateCompilation(text); 9268var comp = CreateCompilation(text); 9291var comp = CreateCompilation(text); 9318var comp = CreateCompilation(text); 9350var comp = CreateCompilation(text); 9366var comp = CreateCompilation(text); 9382var comp = CreateCompilation(text); 9398var comp = CreateCompilation(text); 9420var comp = CreateCompilation(text); 9440var comp = CreateCompilation(text); 9455var comp = CreateCompilation(text); 9475var comp = CreateCompilation(text); 9495var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9534var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9551var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9571var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9597var comp = CreateCompilation(src); 9610var comp = CreateCompilation(src); 9632var comp = CreateCompilation(src); 9654var comp = CreateCompilation(src); 9675var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 9700var compilation = CreateCompilation(source); 9725var comp = CreateCompilation(src); 9766var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9769comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe); 9794var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9797comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe); 9822var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9825comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe);
Semantics\TryCatchTests.cs (2)
39var compilation = CreateCompilation(source); 71CreateCompilation(source).VerifyDiagnostics(
Semantics\TypeOfTests.cs (5)
45CreateCompilation(""" 59CreateCompilation(""" 73CreateCompilation(""" 89CreateCompilation(""" 108CreateCompilation("""
Semantics\UninitializedNonNullableFieldTests.cs (101)
49var comp = CreateCompilation(src, options: WithNullableEnable()); 71var comp = CreateCompilation(src, options: WithNullableEnable()); 87var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 129var comp = CreateCompilation(source, options: WithNullableEnable()); 159var comp = CreateCompilation(source); 180var comp = CreateCompilation(source); 201var comp = CreateCompilation(source); 221var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 236var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 265var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 362var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 389var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 403var comp = CreateCompilation(source, options: WithNullableEnable()); 419var comp = CreateCompilation(source, options: WithNullableEnable()); 437var comp = CreateCompilation(source, options: WithNullableEnable()); 461var comp = CreateCompilation(source, options: WithNullableEnable()); 505var comp = CreateCompilation(source, options: WithNullableEnable()); 534var comp = CreateCompilation(source, options: WithNullableEnable()); 551var comp = CreateCompilation(source, options: WithNullableEnable()); 571var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 590var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 610var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 633var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 666var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 702var comp = CreateCompilation(source, options: WithNullableEnable()); 728var comp = CreateCompilation(source, options: WithNullableEnable()); 758var comp = CreateCompilation(source, options: WithNullableEnable()); 812var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 856var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 952var comp = CreateCompilation(source); 983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1013var comp = CreateCompilation(source); 1052var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1128var comp = CreateCompilation(source); 1190var comp = CreateCompilation(source, options: WithNullableEnable()); 1218var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1258var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1283var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1303var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1323var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1350var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1380var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1406var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1436var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1446comp = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 1457comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1521var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1555var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1589var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1612var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1694var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1734var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1755var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1782var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1846var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1865var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1888var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1903var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1918var comp = CreateCompilation(source); 1940var comp = CreateCompilation(source); 1963var comp = CreateCompilation(source); 1982var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 2028var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 2055var comp = CreateCompilation(source); 2078var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2092var comp = CreateCompilation(@" 2189var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }, options: WithNullableEnable()); 2216var comp = CreateCompilation(source, options: WithNullableEnable()); 2244var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview); 2275var comp = CreateCompilation(source, options: WithNullableEnable()); 2313var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview); 2337var comp = CreateCompilation(source, options: WithNullableEnable()); 2361var comp = CreateCompilation(source); 2379var comp = CreateCompilation(source); 2398var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2424var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2438var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2463var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2493var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2531var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2557var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2595var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2616var comp = CreateCompilation(@" 2662var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2677var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2692var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2707var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2722var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2745var comp = CreateCompilation(source, options: WithNullableEnable()); 2766var comp = CreateCompilation(source, options: WithNullableEnable()); 2788var comp = CreateCompilation(@" 2828var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 2851var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 2875var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }); 2897var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }); 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
Semantics\UnsafeTests.cs (557)
106CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 123CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 144CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 170CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 186CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 190CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 205CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 209CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 246CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 262CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 283CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 284CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 301CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 306CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 307CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 324CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 329CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 330CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 348CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 354CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 379CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 397CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 398CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 421CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 445CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 446CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 468CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 492CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 493CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 513CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 535CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 559CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 583CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 610CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 639CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 644CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 645CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 664CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 676CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 677CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 754CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 755CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 811CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 812CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 813CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 853CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 873CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 879CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 900CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 905CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 924CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 936CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 937CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 955CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 964CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 965CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 983CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 984CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 985CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 1006CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1015CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1016CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1034CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1043CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1044CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1066CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1075CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1076CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1098CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1107CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1108CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1126CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1138CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1139CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1157CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1158CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1159CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1179CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1180CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1181CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1202CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1203CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1204CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1227CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1228CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1229CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1245CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1246CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1247CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1268CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1292CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1293CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1294CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1309CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1329CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1348CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1366CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1389CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1390CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1415CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1416CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1437CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1438CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1439CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1462CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1463CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1485CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1486CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1487CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1510CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1511CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1512CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1528CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1529CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1530CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1546CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1551CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1552CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1575CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1576CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1577CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1592CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1611CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1634CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1635CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1657CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1658CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1659CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1683CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1684CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1685CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1707CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1708CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1709CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1736CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1737CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1755CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1756CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1757CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1774CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1779CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1780CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1804CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1805CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1806CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1822CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1848CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1877CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1905CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1928CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1929CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1930CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1954CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1955CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1956CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1978CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1979CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1980CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2007CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2008CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2009CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2026CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2027CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2028CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2045CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2050CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2051CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2075CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2076CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2077CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2093CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2119CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2148CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2149CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2176CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2177CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2196CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2197CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2198CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2216CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2217CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2218CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2240CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2241CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2242CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2264CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2265CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2282CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2283CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2284CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2301CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2306CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2307CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2328CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2329CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2330CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2343CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2363CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2387CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2388CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2401CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2402CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2403CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2423CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2424CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2425CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2441CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2442CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2443CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2463CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2464CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2465CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2488CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2489CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2490CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2516CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2517CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2518CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2541CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2552CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2553CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2576CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2577CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2578CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2595CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2596CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2597CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2620CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2643var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 3181CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3193CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3198CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3213CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3214CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3217CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3231CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3232CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3249CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3256CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3259CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3265CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3266CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3269CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3275CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3276CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3293CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3317CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3344CreateCompilation(text).VerifyDiagnostics( 3360CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3373CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 3377CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3391CreateCompilation(text).VerifyDiagnostics( 3395CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3419CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4170CreateCompilation(withoutUnsafe).VerifyDiagnostics(expectedWithoutUnsafe); 4171CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithoutUnsafe); 4174CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4177CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4180CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 5295var compilation = CreateCompilation(text); 5312var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5327var compilation = CreateCompilation(text); 5344var compilation = CreateCompilation(text); 5360var compilation = CreateCompilation(text); 5379var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5400var compilation = CreateCompilation(text); 5420var compilation = CreateCompilation(text); 5437var compilation = CreateCompilation(text); 5470var compilation = CreateCompilation(text); 5486var compilation = CreateCompilation(text); 5519var compilation = CreateCompilation(text); 5556var compilation = CreateCompilation(text); 5588var compilation = CreateCompilation(text); 5622var compilation = CreateCompilation(text); 5644var compilation = CreateCompilation(text); 5679var compilation = CreateCompilation(text); 5723var compilation = CreateCompilation(text); 5762var compilation = CreateCompilation(text); 5806var compilation = CreateCompilation(text); 5829var compilation = CreateCompilation(text); 5842var compilation = CreateCompilation(text); 5864var compilation = CreateCompilation(text); 5884var compilation = CreateCompilation(text); 5897var compilation = CreateCompilation(text); 5914var libComp = CreateCompilation(libSrc, options: TestOptions.UnsafeDebugDll); 5934var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, references: new[] { libComp.EmitToImageReference() }); 5966var comp = CreateCompilation(src); 5993var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll); 6036var comp = CreateCompilation(libSrc); 6057var comp = CreateCompilation(libSrc); 6078var comp = CreateCompilation(libSrc); 6097var comp = CreateCompilation(libSrc, targetFramework: TargetFramework.Net70); 6119var comp = CreateCompilation(libSrc); 6144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6170CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6194CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6218CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6248CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6264CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6300var comp = CreateCompilation(tree); 6345var metadata = CreateCompilation(externalCode).EmitToImageReference(); 6367var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.UnsafeReleaseDll); 6414CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6432CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6474CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6640CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6791CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6825CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6870CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6947CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7007CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7029CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7052CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7073CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7096CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7120CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7147CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7169CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7187CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7210CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7253var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7290var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7319var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7357var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7395var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7436CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7451CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7470CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7488CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7507CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7531var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7568CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7585CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7618CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7636CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7655CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7673CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7692CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7795CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7841var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7908var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7985CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8005CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8025CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8044CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8062CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8071CreateCompilation(@" 8092CreateCompilation(@" 8113CreateCompilation(@" 8154var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8221var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8279var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8339var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8375var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8416CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8469CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8519CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8557CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8667CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8744CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8785CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8817CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8851var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8905var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8943CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8987CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9056CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9130CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9151CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9167CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9191CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9211CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9249CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9274CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9317var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9374CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9418CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9533CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9581CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9603CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9653CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9687CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9766CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9801CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9855CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9900CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9956CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10008CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10061CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 10091CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10121CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10143CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10173var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10214var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10286var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10455CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 10456CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 10457CreateCompilation(text).VerifyDiagnostics(expectedDiagnostics); 10478CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10509CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10560CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10622var compilation = CreateCompilation(text); 10684var compilation = CreateCompilation(text); 10744var compilation = CreateCompilation(text); 10828CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 10829CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 10830CreateCompilation(text).VerifyDiagnostics(expectedDiagnostics); 10845CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11024CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11113CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11241CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 11301var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11368CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 11381CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11407CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11408CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11420CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11421CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11455CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11457CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe); 11459CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11461CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe); 11463CreateCompilation(text).VerifyDiagnostics(expected); 11465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 11511CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11512CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11539CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11568CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11587CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11604CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11623CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11674CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11696CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11697CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11721CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11734CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11745CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11758CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11785var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 11803var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11825var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 11851CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11873var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11900var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11919var comp = CreateCompilation(text, options: TestOptions.ReleaseExe); 11936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11959CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12041CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12342var s = CreateCompilation(text).GlobalNamespace.GetMember<TypeSymbol>("S"); 12561CreateCompilation(@" 12580CreateCompilation(@" 12614CreateCompilation(@" 12642CreateCompilation(@" 12665CreateCompilation(@" 12712var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12726var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12746var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12762var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12781var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12800var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12816var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12832var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12851var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12877var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12900var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12920var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12938var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12962var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12983var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12998var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13011var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13024var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13046var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13065var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13083var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13098var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 13117var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13136var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13157var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13183var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13203var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13228var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13247var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13265var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13274comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13300var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13309comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13329var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13332comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13348comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13351comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13381var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13384comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13403comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13406comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13423var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13432comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13444comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13456comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13485var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13488comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13500comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13503comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13520var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13526comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13542comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13545comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13562var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13565comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13571comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13577comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13593var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13599comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13627var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13660comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13718comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13721comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13745var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13787comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13863comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13866comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13888var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13900comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13906comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13909comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13932var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13939comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13942comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
Semantics\UserDefinedConversionTests.cs (33)
256var comp = CreateCompilation(source1 + source2); 259comp = CreateCompilation(source1 + source3); 319var comp = CreateCompilation(implicitConversions + implicitConversionBadSuccess); 340comp = CreateCompilation(explicitConversions + explicitConversionsBadSuccess); 357comp = CreateCompilation(implicitConversions + implicitConversionsBadFailures); 381comp = CreateCompilation(explicitConversions + explicitConversionsBadFailures); 435var comp = CreateCompilation(source1); 459comp = CreateCompilation(source2); 485var comp = CreateCompilation(source); 669var comp = CreateCompilation(source1 + source3); 672comp = CreateCompilation(source2 + source3); 682comp = CreateCompilation(source1 + source4); 694comp = CreateCompilation(source2 + source4); 1151var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.UnsafeReleaseDll); 1186var comp = CreateCompilation(source); 1249var comp = CreateCompilation(source2); 1411var comp = CreateCompilation(source); 1470var comp = CreateCompilation(source1); 1548CreateCompilation(source).VerifyDiagnostics(); 1621var comp = CreateCompilation(source); 1643var comp = CreateCompilation(source); 1865var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1910var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1951var comp = CreateCompilation(source); 1993var comp = CreateCompilation(source); 2035var comp = CreateCompilation(source); 2055var comp = CreateCompilation(source); 2097var comp = CreateCompilation(source); 2117var comp = CreateCompilation(source); 2159var comp = CreateCompilation(source); 2180var comp = CreateCompilation(source); 2224var comp = CreateCompilation(source); 2278var comp = CreateCompilation(source);
Semantics\UseSiteErrorTests.cs (61)
936CreateCompilation(text, new MetadataReference[] { delegatesWithoutInvokeReference }).VerifyDiagnostics( 997CreateCompilation(text, new MetadataReference[] { csharpAssemblyReference, ilAssemblyReference }).VerifyDiagnostics( 1075var xRef = CreateCompilation(xSource, assemblyName: "Test").EmitToImageReference(); 1088var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Test"); 1107var xRef = CreateCompilation(xSource, assemblyName: "X").EmitToImageReference(); 1120var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Lib"); 1136var xRef = CreateCompilation(xSource, assemblyName: "X").EmitToImageReference(); 1149var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Lib"); 1174var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1188var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1202var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1248var baseLib = CreateCompilation(baseSource, assemblyName: "BaseAssembly"); 1661var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1662var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1663CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 1732var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1733var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1734CreateCompilation(testSource, new[] { libRef, missingRef }).VerifyDiagnostics(); 1737CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 1787var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1788var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1789CreateCompilation(testSource, new[] { libRef, missingRef }).VerifyDiagnostics(); 1791CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 1844var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1845var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1846CreateCompilation(testSource, new[] { libRef, missingRef }).VerifyDiagnostics(); 1848CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 1901var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1902var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1903CreateCompilation(testSource, new[] { libRef, missingRef }).VerifyDiagnostics(); 1905CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 1948var missingRef = CreateCompilation(missingSource, assemblyName: "Missing").EmitToImageReference(); 1949var libRef = CreateCompilation(libSource, new[] { missingRef }).EmitToImageReference(); 1950CreateCompilation(testSource, new[] { libRef, missingRef }).VerifyDiagnostics(); 1953CreateCompilation(testSource, new[] { libRef /* and not missingRef */ }).VerifyDiagnostics( 2189CSharpCompilation comp1 = CreateCompilation(source1, assemblyName: "Base"); 2195CSharpCompilation comp2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(comp1) }); 2213CSharpCompilation comp3 = CreateCompilation(source3, new MetadataReference[] { new CSharpCompilationReference(comp2) }); 2233comp3 = CreateCompilation(source3, new MetadataReference[] { comp2.EmitToImageReference() }); 2284var successfulCompilation = CreateCompilation(source, new MetadataReference[] { unavailableAssemblyReference, csharpAssemblyReference, ilAssemblyReference }); 2287var failingCompilation = CreateCompilation(source, new MetadataReference[] { csharpAssemblyReference, ilAssemblyReference }); 2458private static readonly MetadataReference UnmanagedUseSiteError_Ref1 = CreateCompilation(@" 2464private static readonly MetadataReference UnmanagedUseSiteError_Ref2 = CreateCompilation(@" 2484var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2494comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2511var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2520comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2536var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2545comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2563var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2590comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2610var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2632comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2652var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2667comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2692var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2707comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2729var comp = CreateCompilation(source, references: new[] { UnmanagedUseSiteError_Ref2 }); 2738comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2752var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2769comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
Semantics\UsingDeclarationTests.cs (27)
32CreateCompilation(source).VerifyDiagnostics(); 52CreateCompilation(source).VerifyDiagnostics( 81CreateCompilation(source).VerifyDiagnostics( 109CreateCompilation(source).VerifyDiagnostics( 139CreateCompilation(source).VerifyDiagnostics( 168CreateCompilation(source).VerifyDiagnostics( 193CreateCompilation(source).VerifyDiagnostics( 261CreateCompilation(source).VerifyDiagnostics( 295CreateCompilation(source).VerifyDiagnostics(); 315CreateCompilation(source).VerifyDiagnostics(); 335CreateCompilation(source).VerifyDiagnostics( 359CreateCompilation(source).VerifyDiagnostics(); 385var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 409var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 435var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 453CreateCompilation(source).VerifyDiagnostics( 479CreateCompilation(source).VerifyDiagnostics( 499CreateCompilation(source).VerifyDiagnostics( 520CreateCompilation(source).VerifyDiagnostics(); 541CreateCompilation(source).VerifyDiagnostics(); 563CreateCompilation(source).VerifyDiagnostics(); 588CreateCompilation(source).VerifyDiagnostics( 785CreateCompilation(source).VerifyDiagnostics( 849CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 851CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 929CreateCompilation(source).VerifyDiagnostics( 956CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\UsingStatementTests.cs (53)
54var compilation = CreateCompilation(source); 94CreateCompilation(source).VerifyDiagnostics( 117CreateCompilation(source).VerifyDiagnostics(); 138CreateCompilation(source).VerifyDiagnostics( 164CreateCompilation(source).VerifyDiagnostics( 195CreateCompilation(source).VerifyDiagnostics( 230CreateCompilation(source).VerifyDiagnostics(); 254CreateCompilation(source).VerifyDiagnostics( 295CreateCompilation(source).VerifyDiagnostics(); 322CreateCompilation(source).VerifyDiagnostics( 357CreateCompilation(source).VerifyDiagnostics( 385CreateCompilation(source).VerifyDiagnostics( 422CreateCompilation(source).VerifyDiagnostics( 547CreateCompilation(source).VerifyDiagnostics( 606CreateCompilation(source).VerifyDiagnostics( 653CreateCompilation(source).VerifyDiagnostics( 684CreateCompilation(source).VerifyDiagnostics( 720CreateCompilation(source).VerifyDiagnostics( 750CreateCompilation(source).VerifyDiagnostics( 781CreateCompilation(source).VerifyDiagnostics( 813var compilation = CreateCompilation(source).VerifyDiagnostics( 843var compilation = CreateCompilation(source).VerifyDiagnostics( 870CreateCompilation(source).VerifyDiagnostics(); 893CreateCompilation(source).VerifyDiagnostics(); 916CreateCompilation(source).VerifyDiagnostics( 946CreateCompilation(source).VerifyDiagnostics( 976CreateCompilation(source).VerifyDiagnostics(); 998CreateCompilation(source).VerifyDiagnostics( 1023CreateCompilation(source).VerifyDiagnostics( 1049CreateCompilation(source).VerifyDiagnostics( 1163CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1169CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1192CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1198CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1220CreateCompilation(source).VerifyDiagnostics( 1240CreateCompilation(source).VerifyDiagnostics(); 1258CreateCompilation(source).VerifyDiagnostics(); 1276CreateCompilation(source).VerifyDiagnostics( 1304var compilation = CreateCompilation(source); 1335var compilation = CreateCompilation(source); 1368var compilation = CreateCompilation(source); 1416CreateCompilation(source).VerifyDiagnostics( 1450CreateCompilation(source).VerifyDiagnostics( 1479var compilation = CreateCompilation(source); 1499var compilation = CreateCompilation(source); 1521var compilation = CreateCompilation(source); 1549var compilation = CreateCompilation(source); 1578var compilation = CreateCompilation(source); 1699CreateCompilation(source).VerifyDiagnostics( 1718CreateCompilation(source).VerifyDiagnostics( 1753CreateCompilation(source).VerifyDiagnostics(); 1822CreateCompilation(source).VerifyDiagnostics( 1848var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"));
Semantics\Utf8StringsLiteralsTests.cs (129)
54var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 83var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 111var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 142var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 175var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 199var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 226var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 255var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 283var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 314var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 338var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 362var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 416var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 453comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 487var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 518var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 561var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 673var comp = CreateCompilation(source); 707var comp = CreateCompilation(source); 740var comp = CreateCompilation(source); 774var comp = CreateCompilation(source); 821var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 873var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 924var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 981var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1095var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1151var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1205var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1257var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1308var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1366var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1396var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1420var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1453var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1475var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1515var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1536var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1540comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1602var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1605comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1623var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1666comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1672comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1702var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1719comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1725comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1755var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1772comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1778comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1817var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1834comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1840comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1877var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1943var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 1972var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2002var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2074var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2102var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2122var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2143var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2169var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2198var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2235var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2276var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2325var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2362var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2399var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2433var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2457var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 2482var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2513var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2540var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2573var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2606var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2639var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2687var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2732var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2780var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2810var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2852var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2890var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2942var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2967var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2995var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3023var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3051var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3079var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3107var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3135var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3163var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3191var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3219var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3247var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3303var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3332var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3446var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3494var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3536var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3585var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3634var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3684var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3731var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3772var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3794var comp = CreateCompilation(new[] { source + HelpersSource, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3827var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3853var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3899var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3989var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4032var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4061var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4132var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4155var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4186var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4225var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4250var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4300var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
Semantics\ValueTupleTests.cs (5)
84var comp = CreateCompilation(source); 265var comp = CreateCompilation(source, assemblyName: "comp"); 294var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 330var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 360var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
Semantics\VarianceTests.cs (14)
113var comp = CreateCompilation(string.Format(text, i, j)); 226var comp = CreateCompilation(string.Format(text, i, j)); 273CreateCompilation(text).VerifyDiagnostics( 298CreateCompilation(text).VerifyDiagnostics( 333CreateCompilation(text).VerifyDiagnostics( 371CreateCompilation(text).VerifyDiagnostics( 412CreateCompilation(text).VerifyDiagnostics( 444CreateCompilation(text).VerifyDiagnostics( 500CreateCompilation(text).VerifyDiagnostics( 552CreateCompilation(text).VerifyDiagnostics( 576CreateCompilation(text).VerifyDiagnostics( 608CreateCompilation(text).VerifyDiagnostics( 638CreateCompilation(@" 651CreateCompilation(@"
Semantics\WarningVersionTests.cs (26)
48CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 49CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)).VerifyDiagnostics(); 50CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 51CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 52CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)).VerifyDiagnostics(whenWave5); 78CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 79CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 80CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 117CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 118CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 119CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 131var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 209var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 288var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 382var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 392CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 394CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 410var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 497var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 584var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 671var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 683CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 685CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 701var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 713CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 715CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
SourceGeneration\GeneratorDriverTests.cs (112)
35Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 55Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 77Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 98Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 127Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 158Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 217Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 249Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 274Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 297Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 318Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 341Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 371Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 402Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 428Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 454Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 483Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 522Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 582Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 612Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 657Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 704Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 739Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 776Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 798Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 823Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 851Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 882Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 908Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 935Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 963Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 995Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1024Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1059Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1086Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1131Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1158Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1257Compilation compilation = CreateCompilation(source, sourceFileName: "sourcefile.cs", options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1348var compilation = CreateCompilation(source, parseOptions: parseOptions); 1385Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1420Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1442Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1467Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1493Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1535Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1564Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1597Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1618Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1680Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1724Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1943Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1979Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2135Compilation compilation = CreateCompilation(source, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2194Compilation compilation = CreateCompilation(source, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2241Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2303Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2456Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2484Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2547Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2577Compilation newCompilation = CreateCompilation(newSource, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2613Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2697Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2884Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3079Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3145Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3191Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3279Compilation compilation = CreateCompilation(builder.ToString(), options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3305Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3338Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3412Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3443Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3491Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3535Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3566Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3581compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3597compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3610Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3642Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3676Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3705Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3736Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3768Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3801Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3830Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3860Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3892Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3925Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing); 3971Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing); 4006Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 4076Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 4298generatorDriver.RunGenerators(CreateCompilation("class C { }")); 4309var compilation = CreateCompilation("class Compilation1{}"); 4320compilation = CreateCompilation("class Compilation2{}"); 4330compilation = CreateCompilation("class Compilation3{}"); 4339compilation = CreateCompilation("class Compilation4{}"); 4355var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4362compilation = CreateCompilation("class Compilation2{}", parseOptions: parseOptions); 4378var compilation = CreateCompilation("class Compilation1{}"); 4406var compilation = CreateCompilation("class Compilation1{}"); 4440var compilation = CreateCompilation("class C{}"); 4463var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4484var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4493compilation = CreateCompilation("class Compilation2{}", parseOptions: newParseOptions); 4520var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4537var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4555var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4575var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4593var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4611var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4628var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (47)
68Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 110Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 147Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 177Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 207Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 236Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 263Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 291Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 320Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 356Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 395Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 424Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 457Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 490Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 522Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 554Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 585Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 616Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 649Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 680Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 709Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 743Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 772Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 809Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 846Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 883Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 920Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 957Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 993Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1020Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1057Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1095Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1133Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1171Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1209Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1240var comp0 = CreateCompilation(source0).VerifyDiagnostics().EmitToImageReference(); 1263Compilation compilation = CreateCompilation(new[] { source1, source2 }, new[] { comp0 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1330var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1376var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1414Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1461Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1508Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1551Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1599Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1654Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1711Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1765Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
39Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 71Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 97Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 122Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 147Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 175Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 207Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 239Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 273Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 306Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 332Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 358Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 417Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 445Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 473Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 500Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 531Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 564Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 596Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 628Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 656Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 684Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 712Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 741Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 768Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 795Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 826Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 858Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 887Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 915Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 943Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 972Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1002Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1042Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1090Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1143Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1194Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1249Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1302Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1360Compilation compilation = CreateCompilation(new[] { source0, source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1408Compilation compilation = CreateCompilation(new[] { source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1453Compilation compilation = CreateCompilation(new[] { source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1504Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1555Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1616Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions);
SourceGeneration\SyntaxAwareGeneratorTests.cs (42)
33Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 59Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 84Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 110Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 135Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 162Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 234Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 273Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 314Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 370Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 412Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 454Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 496Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 550Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 580Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 618Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 672Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 729Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 772Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 817Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 852Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 892Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 934Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1011Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1086Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1167Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1217Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1300Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1377Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1510Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1565Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1614Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1675Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1734Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1787Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1850Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1891Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1932Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1981Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2007Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2045Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2079Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5568)
BadSymbolReference.cs (15)
30var compilation1 = CreateCompilation( 360var compilation2 = CreateCompilation(a_cs, new MetadataReference[] { cl3 }); 460var cl3Compilation = CreateCompilation(cl3Source, new MetadataReference[] { cl2 }); 464var compilation3 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3Compilation) }); 468var cl3BadCompilation1 = CreateCompilation(cl3Source, new MetadataReference[] { cl3 }); 470var compilation4 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3BadCompilation1) }); 561var cl3BadCompilation2 = CreateCompilation(cl3Source); 601var compilation5 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3BadCompilation2) }); 649var compilation6 = CreateCompilation(cl4Source); 826var lib1 = CreateCompilation(@" 1010lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll); 1018var lib1 = CreateCompilation(@" 1249lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll); 1303var lib1 = CreateCompilation(@" 1428lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll);
Compilation\CompilationAPITests.cs (76)
73var comp = CreateCompilation(tree, options: options); 79comp = CreateCompilation(tree, options: options); 92var comp = CreateCompilation(tree); 102comp = CreateCompilation(tree, options: options); 120var comp = CreateCompilation(tree); 127comp = CreateCompilation(tree, options: options); 141var comp = CreateCompilation(tree, options: options); 151var comp2 = CreateCompilation(tree, options: options); 174var comp = CreateCompilation(new[] { tree, newTree }, options: options); 198CreateCompilation(tree, options: options).VerifyDiagnostics( 211CreateCompilation(tree, options: options).VerifyDiagnostics( 225CreateCompilation(source).VerifyDiagnostics( 230CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics( 254CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("")).VerifyDiagnostics( 263CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("\"\"")).VerifyDiagnostics( 396var c = CreateCompilation("class C {}"); 980var netModule1 = CreateCompilation( 986var netModule2 = CreateCompilation( 1000var assembly = CreateCompilation( 1015assembly = CreateCompilation( 1036var netModule1 = CreateCompilation( 1042var netModule2 = CreateCompilation( 1056var netModule3 = CreateCompilation( 1070var assembly = CreateCompilation( 1091var netModule1 = CreateCompilation( 1106var assembly = CreateCompilation( 1125var netModule1 = CreateCompilation( 1131var netModule2 = CreateCompilation( 1145var assembly = CreateCompilation( 1636var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1673var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule); 1869var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("B")); 1937var compilation = CreateCompilation(source: new string[] { source1, source2 }); 1951var compilation = CreateCompilation(source: new string[] { source1, source2 }); 2201var md1 = AssemblyMetadata.CreateFromImage(CreateCompilation("public class C { }").EmitToArray()); 2202var md2 = AssemblyMetadata.CreateFromImage(CreateCompilation("public class D { }").EmitToArray()); 2366var comp = CreateCompilation(""); 2741var compilation = CreateCompilation(""); 2758var compilation = CreateCompilation(""); 2769var compilation = CreateCompilation(""); 2778var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.Empty); 2788var compilation = CreateCompilation(""); 2816var compilation = CreateCompilation(""); 2829var compilation = CreateCompilation(@" 2861var compilation = CreateCompilation(@" 2896var compilation = CreateCompilation(@" 2937var compilation = CreateCompilation(""); 2949var compilation = CreateCompilation(""); 2959var compilation = CreateCompilation(""); 2968var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.Empty); 2978var compilation = CreateCompilation(""); 3014var compilation = CreateCompilation(""); 3030var comp = (Compilation)CreateCompilation(source); 3065var comp = (Compilation)CreateCompilation(source); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3103var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3113var module = CreateCompilation(string.Empty); 3122var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3143var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3404var comp = CreateCompilation(""); 3417var referenceComp = CreateCompilation(""); 3419var comp = CreateCompilation( 3437var referenceComp = CreateCompilation(""); 3439var comp = CreateCompilation( 3466var referenceComp = CreateCompilation(source); 3471var comp = CreateCompilation(source, new[] { reference }); 3494var referenceComp = CreateCompilation(source); 3499var comp = CreateCompilation("", new[] { reference }); 3520var referenceComp1 = CreateCompilation(source); 3523var referenceComp2 = CreateCompilation(source); 3528var comp = CreateCompilation("", new[] { reference1, reference2 }); 3558var referenceComp1 = CreateCompilation(source); 3561var referenceComp2 = CreateCompilation(source); 3566var comp = CreateCompilation(source, new[] { reference1, reference2 });
Compilation\ForEachStatementInfoTests.cs (1)
20var c = (Compilation)CreateCompilation(@"
Compilation\GetImportScopesTests.cs (2)
22var comp = CreateCompilation(tree); 402var comp = CreateCompilation(source);
Compilation\GetSemanticInfoBrokenCodeTests.cs (14)
29var comp = CreateCompilation(tree); 48var comp = CreateCompilation(tree); 71var comp = CreateCompilation(tree); 94var comp = CreateCompilation(tree); 107var comp = CreateCompilation(tree); 132var comp = CreateCompilation(tree); 159var comp = CreateCompilation(tree); 176var comp = CreateCompilation(tree); 196var comp = CreateCompilation(source); 220var comp = CreateCompilation(source); 241var comp = (Compilation)CreateCompilation(source); 263var comp = CreateCompilation(source); 296var comp = CreateCompilation(source); 360var comp = CreateCompilation(tree);
Compilation\GetSemanticInfoTests.cs (114)
40var comp = CreateCompilation(tree); 70var comp = CreateCompilation(tree); 99var comp = CreateCompilation(tree); 133var comp = CreateCompilation(tree); 162var comp = CreateCompilation(tree); 188var comp = CreateCompilation(tree); 239var comp = CreateCompilation(tree); 292var comp = CreateCompilation(tree); 371var comp = (Compilation)CreateCompilation(tree); 413var comp = CreateCompilation(tree); 440var comp = CreateCompilation(tree); 474var comp = CreateCompilation(tree); 527var comp = CreateCompilation(tree); 594var comp = CreateCompilation(tree); 627var comp = CreateCompilation(tree); 963var compilation = CreateCompilation(@" 987var compilation = CreateCompilation(@" 1022var comp = (Compilation)CreateCompilation(tree); 1043var compilation = CreateCompilation(code); 1130var comp = CreateCompilation(tree); 1161var comp = CreateCompilation(tree); 1190var comp = CreateCompilation(tree); 1214var comp = CreateCompilation(tree); 1237var comp = CreateCompilation(tree); 1263var comp = (Compilation)CreateCompilation(tree); 1291var comp = (Compilation)CreateCompilation(tree); 1319var comp = (Compilation)CreateCompilation(tree); 1346var comp = (Compilation)CreateCompilation(tree); 1373var comp = CreateCompilation(tree); 1409var comp = CreateCompilation(tree); 1447var comp = CreateCompilation(tree); 1485var comp = CreateCompilation(tree); 1521var comp = CreateCompilation(tree); 1552var comp = CreateCompilation(tree); 1574var comp = CreateCompilation(tree); 1602var comp = (Compilation)CreateCompilation(tree); 1627var comp = CreateCompilation(tree); 1666var comp = CreateCompilation(tree); 1698var comp = CreateCompilation(tree); 1733var comp = CreateCompilation(tree); 1768var comp = CreateCompilation(tree); 1804var comp = CreateCompilation(tree); 1840var comp = CreateCompilation(tree); 1881var comp = CreateCompilation(tree); 1910var comp = CreateCompilation(tree); 2279var comp = CreateCompilation(text); 2317var comp = CreateCompilation(tree); 2353var comp = CreateCompilation(tree); 2389var comp = CreateCompilation(tree); 2448var comp = CreateCompilation(tree); 2475var comp = CreateCompilation(text); 2505var comp = CreateCompilation(tree); 2534var comp = CreateCompilation(tree); 2561var compilation = CreateCompilation(source); 2717var comp = (Compilation)CreateCompilation(tree); 2788var comp = (Compilation)CreateCompilation(tree); 2834var comp = (Compilation)CreateCompilation(tree); 2864var comp = CreateCompilation(tree); 2957var comp = CreateCompilation(tree); 3049var comp = CreateCompilation(tree); 3091var comp = (Compilation)CreateCompilation(tree); 3123var comp = CreateCompilation(tree); 3165var comp = (Compilation)CreateCompilation(tree); 3197var comp = CreateCompilation(tree); 3240var comp = (Compilation)CreateCompilation(tree); 3270var comp = CreateCompilation(tree); 3324var comp = (Compilation)CreateCompilation(tree); 3390var comp = (Compilation)CreateCompilation(tree); 3458var compilation = CreateCompilation(source); 3514var compilation = CreateCompilation(source); 3547var compilation = CreateCompilation(source); 3575var compilation = CreateCompilation(source); 3602var compilation = CreateCompilation(source); 3627var compilation = CreateCompilation(source); 3660var compilation = CreateCompilation(source); 3696var compilation = CreateCompilation(source); 3753var compilation = CreateCompilation(text); 3781var compilation = (Compilation)CreateCompilation(text); 3814var compilation = CreateCompilation(text); 3842var compilation = (Compilation)CreateCompilation(text); 3868var compilation = CreateCompilation(text); 3908var compilation = (Compilation)CreateCompilation(source2, new[] { reference1 }, assemblyName: "SpeculativelyBindPropertyGroup"); 3948var compilation = CreateCompilation(source2, new[] { reference1 }, assemblyName: "SpeculativelyBindPropertyGroup"); 3994var compilation = CreateCompilation(source2, new[] { reference1 }, assemblyName: "SpeculativelyBindPropertyGroup"); 4207var compilation = CreateCompilation(text); 4237var compilation = CreateCompilation(text); 4267var compilation = CreateCompilation(text); 4288var compilation = CreateCompilation(text); 4318var compilation = CreateCompilation(text); 4346var compilation = CreateCompilation(text); 4372var compilation = CreateCompilation(text); 4396var compilation = CreateCompilation(text); 4426var compilation = (Compilation)CreateCompilation(text); 4480var compilation = (Compilation)CreateCompilation(text); 4526var compilation = (Compilation)CreateCompilation(text); 4580var compilation = CreateCompilation(text); 4634var compilation = CreateCompilation(text); 4670var comp = (Compilation)CreateCompilation(source); 4715var comp = (Compilation)CreateCompilation(source); 4748var comp = CreateCompilation(source); 4781var comp = CreateCompilation(source); 4824var comp = CreateCompilation(source); 5398var compilation = (Compilation)CreateCompilation(text); 5780var comp = CreateCompilation(new[] { tree1, tree2 }); 5819var comp = CreateCompilation(new[] { tree1, tree2, tree3 }); 5863var comp = CreateCompilation(new[] { tree1, tree2, tree3 }); 5892var comp = CreateCompilation(source); 5910var comp = CreateCompilation(source); 5923var comp = CreateCompilation(source); 5946var comp = (Compilation)CreateCompilation(source); 5983var comp = CreateCompilation(source); 6007var compilation = CreateCompilation(text); 6033var comp = CreateCompilation(source); 6042comp = CreateCompilation(source);
Compilation\GetUnusedImportDirectivesTests.cs (17)
33var comp = CreateCompilation(tree); 58var classLib1 = CreateCompilation(source: class1Source, assemblyName: "ClassLibrary1"); 73var classLib2 = CreateCompilation(source: class2Source, assemblyName: "ClassLibrary2", references: new[] { classLib1.ToMetadataReference() }); 90var comp = CreateCompilation(tree, new[] { classLib1.ToMetadataReference(), classLib2.ToMetadataReference() }, assemblyName: "ConsoleApplication"); 173var comp = CreateCompilation(tree); 191var comp = CreateCompilation(tree); 221var ivtCompilation = CreateCompilation( 242var libCompilation = CreateCompilation( 281var comp = CreateCompilation(source); 291comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)); 317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)); 330CreateCompilation(source).VerifyDiagnostics( 366CreateCompilation(source).VerifyDiagnostics(); 379var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error)); 422var comp = CreateCompilation(new[] { source1, source2 }); 450var comp = CreateCompilation(new[] { source1, source2 }); 487var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithDocumentationMode(documentationMode));
Compilation\IndexedProperties_BindingTests.cs (1)
136var comp = CreateCompilation(tree, new[] { reference });
Compilation\QueryClauseInfoTests.cs (1)
20var c = (Compilation)CreateCompilation("");
Compilation\ReferenceManagerTests.cs (76)
32var ifaceDef = CreateCompilation( 43var implDef2 = CreateCompilation( 66var refV1 = CreateCompilation("public class D : C { }", new[] { v1 }, assemblyName: "refV1"); 67var refV2 = CreateCompilation("public class D : C { }", new[] { v2 }, assemblyName: "refV2"); 70var testRefV1 = CreateCompilation("public class E : D { }", new MetadataReference[] { new CSharpCompilationReference(refV1), v2 }, assemblyName: "testRefV1"); 73var testRefV2 = CreateCompilation("public class E : D { }", new MetadataReference[] { new CSharpCompilationReference(refV2), v1 }, assemblyName: "testRefV2"); 108var refV1 = CreateCompilation("public class D : C { }", new[] { v1 }); 109var refV2 = CreateCompilation("public class D : C { }", new[] { v2 }); 112var testRefV1 = CreateCompilation("public class E { }", new MetadataReference[] { new CSharpCompilationReference(refV1), v2 }); 115var testRefV2 = CreateCompilation("public class E { }", new MetadataReference[] { new CSharpCompilationReference(refV2), v1 }); 129var libV1 = CreateCompilation( 139var libV2 = CreateCompilation( 149var libV3 = CreateCompilation( 233var libV1 = CreateCompilation( 245var libV2 = CreateCompilation( 402var a1 = CreateCompilation( 412var a2 = CreateCompilation( 422var b1 = CreateCompilation( 432var b2 = CreateCompilation( 590var libV1 = CreateCompilation( 601var libV2 = CreateCompilation( 655var libV1 = CreateCompilation( 665var libV2 = CreateCompilation( 704var main = CreateCompilation( 978var lib1 = CreateCompilation(sourceLib, options: s_signedDll, assemblyName: "Lib"); 979var lib2 = CreateCompilation(sourceLib, options: s_signedDll, assemblyName: "Lib"); 1035var peImage = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "CS1704").EmitToArray(); 1091var libV1 = CreateCompilation(sourceLibV1, assemblyName: "Lib"); 1092var libV2 = CreateCompilation(sourceLibV2, assemblyName: "Lib"); 1167var main = CreateCompilation(sourceMain, 1387var a = CreateCompilation(sourceA, assemblyName: "A"); 1403var a2 = CreateCompilation(sourceA2, new[] { refB }, assemblyName: "A"); 1409var c = CreateCompilation("class C : A {}", new[] { refA2, refB }, assemblyName: "C"); 1417var b2 = CreateCompilation(@" 1439var a = CreateCompilation("public class A { }", assemblyName: "A"); 1444var a2 = CreateCompilation(@"public class A { B B; }", new[] { refB }, assemblyName: "A"); 1447var withCircularReference1 = CreateCompilation(@"public class B : A { }", new[] { refA2 }, assemblyName: "B"); 1549var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "ReachFramework"); 1557CreateCompilation(csharp, new[] { ilRef }, assemblyName: "ReachFramework").VerifyDiagnostics(); 1564CreateCompilation(csharp, new[] { ilRef }, assemblyName: "ReachFramework").VerifyDiagnostics(); 1571CreateCompilation(csharp, new[] { ilRef }, assemblyName: "ReachFramework").VerifyDiagnostics(); 1645var oldMetadata = AssemblyMetadata.CreateFromImage(CreateCompilation(oldVersion + csharp, assemblyName: "ReachFramework").EmitToArray()); 1648var comp = CreateCompilation(newVersion + csharp, new[] { ilRef, oldRef }, assemblyName: "ReachFramework"); 1706var b = CreateCompilation(srcB, references: new[] { aRef }, options: TestOptions.ReleaseModule.WithModuleName("mod.netmodule"), assemblyName: "B"); 1732var lib = CreateCompilation(libSource, assemblyName: "lib"); 1734var main = CreateCompilation(mainSource, new[] { refLib }, assemblyName: "main"); 1762var assemblyMetadata = AssemblyMetadata.CreateFromImage(CreateCompilation("public class TypeDependedOnByModule { }", assemblyName: "lib1").EmitToArray()); 1764var moduleRef = CreateCompilation("public class TypeFromModule : TypeDependedOnByModule { }", new[] { assemblyRef }, options: TestOptions.ReleaseModule, assemblyName: "lib2").EmitToImageReference(); 1766var comp1 = CreateCompilation(text1, new MetadataReference[] 1815var moduleRef = CreateCompilation("public class C { }", options: TestOptions.ReleaseModule, assemblyName: "lib").EmitToImageReference(); 1817var comp1 = CreateCompilation(text1, new MetadataReference[] 1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1837var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1838var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1841var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1842var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1864var module = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule); 1868var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1873var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1913var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1914var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 1957var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1958var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2001var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2002var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2115var c = CreateCompilation("", new[] { new TestImageReference(TestResources.Basic.NativeApp, "NativeApp.exe") }); 2127var c = CreateCompilation(source, new[] { AssemblyMetadata.CreateFromImage(new byte[0]).GetReference(display: "Empty.dll") }); 2166var vectors40 = CreateCompilation( 2173var vectors41 = CreateCompilation( 2291CreateCompilation(@"[assembly: System.Reflection.AssemblyVersion(""0.0.0.0"")] public class C {}", assemblyName: "C").ToMetadataReference(), 2292CreateCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.1"")] public class C {}", assemblyName: "C").ToMetadataReference(aliases: ImmutableArray.Create("X", "Y")), 2293CreateCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", assemblyName: "C").ToMetadataReference(), 2294CreateCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", assemblyName: "C").ToMetadataReference(), 2295CreateCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.1.0.0"")] public class C {}", assemblyName: "C").ToMetadataReference().
Compilation\SemanticModelAPITests.cs (115)
87var comp1 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 89var comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular8, 94comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular7_3, 163var comp = CreateCompilation(@" 185var comp = CreateCompilation(@" 250var comp = CreateCompilation(tree); 269var comp1 = CreateCompilation(tree); 270var comp2 = CreateCompilation(tree); 328var comp = CreateCompilation(tree); 347var comp = CreateCompilation(tree); 368var comp1 = CreateCompilation(tree1); 369var comp2 = CreateCompilation(tree2); 391var comp = CreateCompilation(tree); 418var comp = CreateCompilation(tree); 460var comp = CreateCompilation(text); 484var comp = CreateCompilation(tree); 516var comp = CreateCompilation(new SyntaxTree[] { partial1Tree, partial2Tree }); 531var comp = CreateCompilation(tree); 557var comp = CreateCompilation(tree); 583var comp = (Compilation)CreateCompilation(tree); 606var comp = (Compilation)CreateCompilation(tree); 639var compilation = CreateCompilation(tree1); 671var compilation = (Compilation)CreateCompilation(tree1); 699var compilation = (Compilation)CreateCompilation(new SyntaxTree[] { tree1, tree2 }); 722var comp = (Compilation)CreateCompilation(tree); 748var comp = (Compilation)CreateCompilation(tree); 779var comp = CreateCompilation(tree); 814var comp = (Compilation)CreateCompilation(tree); 840var comp = CreateCompilation(tree); 866var comp = (Compilation)CreateCompilation(tree); 922var comp = CreateCompilation(tree); 960var comp = CreateCompilation(new[] { tree1, tree2 }); 1001var comp = CreateCompilation(new List<SyntaxTree> { tree1, tree2 }); 1039var comp = CreateCompilation(tree); 1070var comp = CreateCompilation(tree); 1111var comp = CreateCompilation(tree); 1155var comp = CreateCompilation(tree); 1191var comp = CreateCompilation(tree); 1228var comp = (Compilation)CreateCompilation(source); 1258var comp1 = CreateCompilation("public class C { }"); 1261var comp2 = CreateCompilation(source, new[] { ref1 }); 1302var comp = CreateCompilation(source); 1329var comp = CreateCompilation(source); 1355var comp = (Compilation)CreateCompilation(source); 1384var comp = CreateCompilation(source); 1401var compilation = CreateCompilation(@" 1445var compilation = CreateCompilation(@" 1488var compilation = CreateCompilation(@" 1532var compilation = CreateCompilation(@" 1576var compilation = CreateCompilation(@" 1619var compilation = CreateCompilation(@" 1637var compilation = CreateCompilation(@" 1655var compilation = CreateCompilation(@" 1714var comp = (Compilation)CreateCompilation(source); 1756var compilation = CreateCompilation(@" 1815var compilation = CreateCompilation(@" 1863var compilation = CreateCompilation(@" 1895var compilation = CreateCompilation(@" 1972var compilation = CreateCompilation(@" 2016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular); 2066var comp = (Compilation)CreateCompilation(source); 2135var comp = CreateCompilation(source); 2154var compilation = CreateCompilation(@" 2199var compilation = CreateCompilation(@" 2245var compilation = CreateCompilation(@" 2306var comp = CreateCompilation(source); 2328var compilation = CreateCompilation(@" 2420var compilation = CreateCompilation(@" 2462var compilation = CreateCompilation(@" 2504var compilation = CreateCompilation(@" 2549var compilation = CreateCompilation(@" 2621var compilation = CreateCompilation(@" 2742var compilation = CreateCompilation(@" 2793var compilation = CreateCompilation(@"using System.Runtime;"); 2808var compilation = CreateCompilation(@"using A = System.Exception;"); 2823var compilation = CreateCompilation(@" 2848var compilation = CreateCompilation(@" 2880var compilation = CreateCompilation(@" 3123var comp = CreateCompilation(source); 3151var comp = CreateCompilation(source); 3186var comp = CreateCompilation(source); 3519var compilation = CreateCompilation(source); 3540var compilation = CreateCompilation(source); 3578var comp = CreateCompilation(source); 3609var compilation = CreateCompilation(tree); 3736var comp = (Compilation)CreateCompilation(source); 3765var comp = CreateCompilation(@" 3841var libRef = CreateCompilation("", assemblyName: "lib").EmitToImageReference(aliases: ImmutableArray.Create("Alias")); 3842var comp = CreateCompilation(source, new[] { libRef }); 3870var comp = CreateCompilation(source); 3901var comp = (Compilation)CreateCompilation(source, options: TestOptions.ReleaseExe); 4103var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4140var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4183var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4207var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4235var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4273var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4365var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 4421var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 4451var comp = CreateCompilation(source); 4470var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4525var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4601var alias1 = getGlobalAlias(CreateCompilation(text)); 4602var alias2 = getGlobalAlias(CreateCompilation(text)); 4623var compilation = CreateCompilation(text); 4641var compilation = CreateCompilation(text); 4659var compilation = CreateCompilation(text); 4674var compilation = CreateCompilation(text); 4690var compilation = CreateCompilation(text); 4705var compilation = CreateCompilation(text); 4724var compilation = CreateCompilation(text); 4740var compilation = CreateCompilation(text); 4755var compilation = CreateCompilation(text); 4770var compilation = CreateCompilation(tree);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (158)
49var comp = CreateCompilation(@" 72var compilation = CreateCompilation($@" 89var compilation = CreateCompilation(@" 114var compilation = CreateCompilation($@" 135var compilation = CreateCompilation(@" 158var compilation = CreateCompilation(@" 183var compilation = CreateCompilation(@" 201var compilation = CreateCompilation(@" 224var compilation = CreateCompilation(@" 247var compilation = CreateCompilation(@" 267var compilation = CreateCompilation(@" 288var compilation = CreateCompilation( 319var compilation = CreateCompilation( 368var compilation = CreateCompilation( 398var compilation = CreateCompilation( 420var compilation = CreateCompilation( 441var compilation = CreateCompilation( 463var compilation = CreateCompilation( 488var compilation = CreateCompilation( 510var compilation = CreateCompilation( 532var compilation = CreateCompilation( 556var compilation = CreateCompilation(@" 578var compilation = CreateCompilation(@" 604var compilation = CreateCompilation(@" 633var compilation = CreateCompilation(@" 658var compilation = CreateCompilation(@" 699var compilation = CreateCompilation(@" 732var compilation = CreateCompilation(@" 764var compilation = CreateCompilation(@" 786var compilation = CreateCompilation(@" 812var compilation = CreateCompilation(@" 833var compilation = CreateCompilation(@" 848var compilation = CreateCompilation(@" 872var compilation = CreateCompilation(@" 892var compilation = CreateCompilation(@" 912var compilation = CreateCompilation(@" 996var compilation = CreateCompilation(@" 1020var compilation = CreateCompilation(@" 1041var compilation = CreateCompilation(@" 1065var compilation = CreateCompilation(@" 1100var compilation = CreateCompilation(@" 1155var compilation = CreateCompilation(@" 1186var compilation = CreateCompilation(@" 1231var compilation = CreateCompilation(@" 1260var compilation = CreateCompilation(@" 1299var compilation = CreateCompilation(@" 1359var compilation = CreateCompilation(@" 1402var compilation = CreateCompilation(@" 1468var compilation = CreateCompilation( 1509var compilation = CreateCompilation( 1569var compilation = CreateCompilation(@" 1605var compilation = CreateCompilation(@" 1643var compilation = CreateCompilation(@" 1677var compilation = (Compilation)CreateCompilation( 1798var compilation = (Compilation)CreateCompilation( 1845var compilation = CreateCompilation( 1993var compilation = CreateCompilation( 2037var compilation = CreateCompilation(@" 2076var compilation = CreateCompilation(text); 2163var compilation = CreateCompilation(text); 2235var compilation = CreateCompilation(@" 2266var compilation = CreateCompilation(@" 2303var compilation = CreateCompilation(@" 2339var compilation = CreateCompilation(@" 2375var compilation = CreateCompilation(@" 2410var compilation = CreateCompilation(@" 2440var compilation = CreateCompilation(@" 2479var compilation = CreateCompilation(@" 2510var compilation = CreateCompilation(@" 2547var compilation = CreateCompilation(@" 2576var compilation = CreateCompilation(@" 2606var compilation = CreateCompilation(@" 2631var compilation = CreateCompilation(@" 2657var compilation = CreateCompilation(@" 2685var compilation = CreateCompilation(@" 2771var compilation = (Compilation)CreateCompilation(@" 2801var compilation = CreateCompilation(@" 2826var compilation = CreateCompilation(@" 2894var compilation = (Compilation)CreateCompilation(@" 2927var compilation = (Compilation)CreateCompilation(@" 2949var compilation = (Compilation)CreateCompilation(@" 3008var compilation = (Compilation)CreateCompilation(@" 3032var compilation = CreateCompilation(@" 3061var compilation = (Compilation)CreateCompilation(@" 3088var comp1 = CreateCompilation(@" 3136var compilation = (Compilation)CreateCompilation(text1); 3173var compilation = CreateCompilation(text); 3186var compilation = CreateCompilation(@" 3224var compilation = (Compilation)CreateCompilation(@" 3248var compilation = CreateCompilation(@" 3299var compilation = CreateCompilation(@" 3328var compilation = CreateCompilation(@" 3354var compilation = CreateCompilation(@" 3379var compilation = CreateCompilation(@"private"); 3397var compilation = CreateCompilation(@" 3420var compilation = CreateCompilation(@" 3441var compilation = CreateCompilation(@" 3461var compilation = CreateCompilation(@" 3489var compilation = CreateCompilation(@" 3512var compilation = CreateCompilation(@" 3545var compilation = CreateCompilation(@" 3576var compilation = CreateCompilation(@" 3598var compilation = CreateCompilation(@" 3623var compilation = CreateCompilation(@" 3655var compilation = CreateCompilation(@" 3682var compilation = CreateCompilation(@"/", parseOptions: parseOptions); 3697var compilation = CreateCompilation(@" 3764var compilation = CreateCompilation(@" 3803var compilation = CreateCompilation(code, parseOptions: TestOptions.Script); 3816var compilation = CreateCompilation(@" 3864var compilation = CreateCompilation(text); 3899var comp = CreateCompilation(tree); 3920var comp = CreateCompilation(tree); 3950var c1 = CreateCompilation(@" 3990var compilation = (Compilation)CreateCompilation(source); 4080var compilation = (Compilation)CreateCompilation(source); 4122var comp = CreateCompilation(src); 4141comp = CreateCompilation(src); 4164var compilation = CreateCompilation(source); 4243var compilation = CreateCompilation(source); 4395var compilation = CreateCompilation(@" 4432var compilation = (Compilation)CreateCompilation(source); 4463var compilation = (Compilation)CreateCompilation(source); 4494var compilation = (Compilation)CreateCompilation(source); 4525var compilation = (Compilation)CreateCompilation(text); 4562var compilation = (Compilation)CreateCompilation(text); 4601var compilation = CreateCompilation(text); 4650var compilation = (Compilation)CreateCompilation(text); 4689var compilation = CreateCompilation(source); 4704var compilation = CreateCompilation(source); 4719var compilation = CreateCompilation(source); 4738var compilation = CreateCompilation(source); 4764var compilation = CreateCompilation(source); 4795var compilation = CreateCompilation(source); 4818var compilation = CreateCompilation(source); 4841var compilation = CreateCompilation(source); 4864var compilation = CreateCompilation(source); 4887var compilation = CreateCompilation(source); 4910var compilation = CreateCompilation(source); 4933var compilation = CreateCompilation(source); 4956var compilation = CreateCompilation(source); 5029var compilation = CreateCompilation(source); 5086var compilation = CreateCompilation(source); 5109var compilation = CreateCompilation(source); 5122var compilation = CreateCompilation(@"private"); 5160var compilation = CreateCompilation(@" 5201var comp = CreateCompilation(source); 5219var comp = CreateCompilation(source); 5240var comp = CreateCompilation(source); 5261var comp = CreateCompilation(source); 5292var comp = CreateCompilation(source); 5343var comp = CreateCompilation(source); 5387var comp = CreateCompilation(source); 5432var comp = CreateCompilation(source); 5478var comp = CreateCompilation(source); 5529var comp = CreateCompilation(source); 5573var comp = CreateCompilation(source); 5618var comp = CreateCompilation(source);
Compilation\SemanticModelGetSemanticInfoTests.cs (36)
896var compilation = CreateCompilation(source: sourceCode); 1111var compilation = (Compilation)CreateCompilation(source: sourceCode); 1145compilation = (Compilation)CreateCompilation(source: sourceCode); 1175compilation = (Compilation)CreateCompilation(source: sourceCode); 1205compilation = (Compilation)CreateCompilation(source: sourceCode); 1231compilation = (Compilation)CreateCompilation(source: sourceCode); 1258compilation = (Compilation)CreateCompilation(source: sourceCode); 1286compilation = (Compilation)CreateCompilation(source: sourceCode); 1313compilation = (Compilation)CreateCompilation(source: sourceCode); 1354compilation = CreateCompilation(source: sourceCode); 1392compilation = CreateCompilation(source: sourceCode); 1451var compilation = CreateCompilation(source2, new[] { reference1 }); 1469compilation = CreateCompilation(source2, new[] { reference1 }); 1481compilation = CreateCompilation(source2, new[] { reference1 }); 1496compilation = CreateCompilation(source2, new[] { reference1 }); 1517compilation = CreateCompilation(source2, new[] { reference1 }); 1590var compilation = CreateCompilation(source2, new[] { reference1 }); 1605compilation = CreateCompilation(source2, new[] { reference1 }); 1620compilation = CreateCompilation(source2, new[] { reference1 }); 1661var compilation = CreateCompilation(""); 5538var compilation = CreateCompilation(sourceCode); 8430var compilation = CreateCompilation(sourceCode); 8454var compilation = CreateCompilation(sourceCode); 8972CreateCompilation(sourceCode).VerifyDiagnostics( 9019CreateCompilation(sourceCode).VerifyDiagnostics( 12123var comp = CreateCompilation(tree); 14482var compilation = CreateCompilation(sourceCode); 14650var comp = CreateCompilation(source); 14732var compilation = CreateCompilation(new[] { sourceCode1, sourceCode2 }); 14750var compilation = CreateCompilation( 14833var compilation = CreateCompilation( 14930var pia = CreateCompilation( 15051var compilation = CreateCompilation(sourceCode); 15293var comp = CreateCompilation(@" 15369var compilation = CreateCompilation(sourceCode); 15431var compilation = CreateCompilation(source);
Compilation\SymbolSearchTests.cs (2)
188var compilation = CreateCompilation(new[] { source }); 229return CreateCompilation(source: new string[] { source });
Compilation\SymbolVisitorTests.cs (6)
528var c = CreateCompilation( 579var c = CreateCompilation( 630var c = CreateCompilation( 682var c = CreateCompilation( 726var c = CreateCompilation( 770var c = CreateCompilation(
Compilation\TypeInfoTests.cs (1)
19var c = CreateCompilation("");
Compilation\UsedAssembliesTests.cs (163)
40var comp2 = CreateCompilation(source); 258Compilation comp = CreateCompilation(source, parseOptions: parseOptions, references: references, options: options); 270Compilation comp = CreateCompilation(source, references: references); 454var comp1 = CreateCompilation(source1); 504var comp0 = CreateCompilation(source0); 518var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 574var comp0 = CreateCompilation(source0); 589var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }, options: TestOptions.DebugModule); 636comp2 = CreateCompilation(source2, references: new[] { comp1Ref }); 683var comp1 = CreateCompilation(source1); 746var comp0 = CreateCompilation(source0); 764var comp1 = CreateCompilation(source1); 946var comp0 = CreateCompilation(source0); 964var comp1 = CreateCompilation(source1); 1097Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 1102Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 1105Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 1117var comp0 = CreateCompilation(source0); 1130var comp1 = CreateCompilation(source1); 1277var comp0 = CreateCompilation(source0); 1290var comp1 = CreateCompilation(source1); 1364var comp1 = CreateCompilation(source1); 1396var comp0 = CreateCompilation(source0); 1413var comp1 = CreateCompilation(source1); 1468var comp0 = CreateCompilation(source0); 1478var comp1 = CreateCompilation(source1); 1506var comp0 = CreateCompilation(source0); 1516var comp1 = CreateCompilation(source1); 1547var comp0 = CreateCompilation(source0, assemblyName: "MethodReference_05_0"); 1559var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1569var comp2 = CreateCompilation(source2); 1625var comp5 = CreateCompilation(source5); 1630var comp6 = CreateCompilation(source1, references: new[] { comp5Ref }); 1634var comp7 = CreateCompilation(source5); 1683var comp0 = CreateCompilation(source0); 1693var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1704var comp2 = CreateCompilation(source2, references: new[] { comp1Ref }); 1736var comp0 = CreateCompilation(source0, assemblyName: "MethodReference_07_0"); 1746var comp1 = CreateCompilation(source1); 1756var comp2 = CreateCompilation(source2, references: new[] { comp0Ref, comp1Ref }); 1789var comp0 = CreateCompilation(source0); 1800var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1872var comp0 = CreateCompilation(source0); 1883var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1938var comp5 = CreateCompilation(source5); 1943var comp6 = CreateCompilation(source1, references: new[] { comp5Ref }); 1947var comp7 = CreateCompilation(source5); 1968var comp1 = CreateCompilation(source1); 2022var comp0 = CreateCompilation(source0); 2032var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 2062var comp0 = CreateCompilation(source0); 2073var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 2105var comp1 = CreateCompilation(source1); 2166var comp1 = CreateCompilation(source1); 2317Compilation comp = CreateCompilation(source, references: new[] { reference }); 2339AssertUsedAssemblyReferences(CreateCompilation(Parse(source, options: TestOptions.Script), references: new[] { reference }, options: TestOptions.DebugDll.WithUsings(@using)), 2359var comp1 = CreateCompilation(source1); 2425var comp0 = CreateCompilation(source0); 2460var comp3 = CreateCompilation(source0); 2493var comp0 = CreateCompilation(source0); 2511var comp3 = CreateCompilation(source0); 2581var comp0 = CreateCompilation(source0); 2599var comp3 = CreateCompilation(source0); 2669var comp0 = CreateCompilation(source0); 2687var comp3 = CreateCompilation(source0); 2753var comp0 = CreateCompilation(source0); 2772var comp3 = CreateCompilation(source0); 2842var comp0 = CreateCompilation(source0); 2860var comp3 = CreateCompilation(source0); 2930var comp0 = CreateCompilation(source0); 2948var comp3 = CreateCompilation(source0); 2994var comp0 = CreateCompilation(source0); 3039var comp3 = CreateCompilation(source0); 3303var comp0 = CreateCompilation(source0); 3349var comp3 = CreateCompilation(source0); 3537var comp = CreateCompilation(source2, references: new[] { ref0, ref1 }); 3556var comp0 = CreateCompilation(source0); 3572var comp1 = CreateCompilation(source1); 3692Compilation comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, references: references); 3704var comp0 = CreateCompilation(source0); 3720var comp1 = CreateCompilation(source1); 3834Compilation comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: references, options: TestOptions.UnsafeDebugDll); 3852var comp0 = CreateCompilation(source0); 3864var comp1 = CreateCompilation(source1); 3928var comp0 = CreateCompilation(source0); 3940var comp1 = CreateCompilation(source1); 4011AssertUsedAssemblyReferences(CreateCompilation(source2, references: references, 4015AssertUsedAssemblyReferences(CreateCompilation(source2, references: references, 4023Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4028Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4031Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4043var comp0 = CreateCompilation(source0); 4055var comp1 = CreateCompilation(source1); 4126Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4129Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4147var comp0 = CreateCompilation(source0); 4156var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 4189var comp = CreateCompilation(@" 4207comp = CreateCompilation(@" 4262var comp0 = CreateCompilation(source0); 4274var comp1 = CreateCompilation(source1); 4287var comp2 = CreateCompilation(source2); 4345var comp0 = CreateCompilation(source0); 4357var comp1 = CreateCompilation(source1); 4370var comp2 = CreateCompilation(source2); 4463var comp0 = CreateCompilation(source0); 4475var comp1 = CreateCompilation(source1); 4488var comp2 = CreateCompilation(source2); 4549AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4551AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4578AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4580AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4606AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4610AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4614AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4618AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4627Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4630Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4633Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4651var comp0 = CreateCompilation(source0); 4663var comp1 = CreateCompilation(source1); 4676var comp2 = CreateCompilation(source2); 4769AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4771AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4797AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4801AssertUsedAssemblyReferences(CreateCompilation(source5, references: references, 4809Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4812Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4815Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4834CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4851CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4872CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4889CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4903var comp0 = CreateCompilation(source0); 4919var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 4993var comp0 = CreateCompilation(source0); 5009var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5053var comp0 = CreateCompilation(source0); 5064var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5140var comp0 = CreateCompilation(source0); 5151var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5195var comp0 = CreateCompilation(source0); 5398var comp0 = CreateCompilation(source0); 5409var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5617var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5631var comp1 = CreateCompilation(source1); 5677var comp0 = CreateCompilation(source0); 5687var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5715var comp0 = CreateCompilation(source0); 5725var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5754var comp0 = CreateCompilation(source0); 5765var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5789CreateCompilation(source2, references: new[] { comp0Ref, comp1RefWithAlias }).VerifyDiagnostics( 5805var comp0 = CreateCompilation(source0); 5842var comp0 = CreateCompilation(source0); 5877var comp0 = CreateCompilation(source0); 5915var comp1 = CreateCompilation(source1); 5927var comp2 = CreateCompilation(source2); 5939AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5941AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 5960AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5962AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 6006var comp1 = CreateCompilation(source1);
DeclarationTests.cs (14)
290var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 337var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 404var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 457var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 500var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 553var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 608var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 657var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 700var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 747var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 792var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 837var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 869var compilation1 = CreateCompilation(new SyntaxTree[] { firstTree }); 870var compilation2 = CreateCompilation(new SyntaxTree[] { firstTree });
DocumentationComments\CrefTests.cs (25)
247var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 277var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 1865var lib1Ref = CreateCompilation(lib1Source, assemblyName: "A").EmitToImageReference(); 1866var lib2Ref = CreateCompilation(lib2Source, assemblyName: "B").EmitToImageReference(); 4421CreateCompilation(new[] { tree1, tree2 }).VerifyDiagnostics( 6700var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments).VerifyDiagnostics(); 6731verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6739verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics()); 6740verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics()); 6775verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6796verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6797verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6838verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6839verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6840verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6868verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6889verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6890verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6919var compilation = CreateCompilation(source, parseOptions: parseOptions, options: options, targetFramework: TargetFramework.StandardAndCSharp); 6943var compilation = CreateCompilation(source, parseOptions: parseOptions, options: options, targetFramework: TargetFramework.StandardAndCSharp); 6968var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 6993var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7017var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 7038var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7057var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
DocumentationComments\DocumentationCommentCompilerTests.cs (49)
32CreateCompilation( 763var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 782var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 891var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 909var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 927var comp = CreateCompilation(tree, assemblyName: "Test"); 972var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 993var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1021var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1043var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1072var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1094var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1129var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1148var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1177var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1196var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1235var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1252var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1287var compilation = CreateCompilation(source, assemblyName: "Test"); 1344var compilation = CreateCompilation(source, assemblyName: "Test"); 1407var compilation = CreateCompilation(source, assemblyName: "Test"); 1470var compilation = CreateCompilation(source, assemblyName: "Test"); 1513var comp = CreateCompilation(tree, assemblyName: "Test"); 1559var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1580var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1610var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1631var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1651var comp = CreateCompilation(tree, assemblyName: "Test"); 1697var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1719var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1749var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1771var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1807var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1826var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1856var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1875var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1915var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1932var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1968var compilation = CreateCompilation(source, assemblyName: "Test"); 2026var compilation = CreateCompilation(source, assemblyName: "Test"); 2090var compilation = CreateCompilation(source, assemblyName: "Test"); 2154var compilation = CreateCompilation(source, assemblyName: "Test"); 3165var comp = CreateCompilation(new[] { tree1, tree2 }); 3185CreateCompilation(source).VerifyDiagnostics(); 4521var compilation = CreateCompilation(tree); 5322var comp = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 5760var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test"); 7117CreateCompilation(tree, options: compOptions).VerifyDiagnostics( 7355var comp = CreateCompilation(
DocumentationComments\DocumentationCommentIDTests.cs (23)
28var comp = CreateCompilation(source); 46var comp = CreateCompilation(source); 61var comp = CreateCompilation(source); 76var comp = CreateCompilation(source); 91var comp = CreateCompilation(source); 107var comp = CreateCompilation(source); 122var comp = CreateCompilation(source); 141var comp = CreateCompilation(source); 162var comp = CreateCompilation(source); 182var comp = CreateCompilation(source); 196var comp = CreateCompilation(source); 210var comp = CreateCompilation(source); 224var comp = CreateCompilation(source); 238var comp = CreateCompilation(source); 255var comp = CreateCompilation(source); 270var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 286var comp = CreateCompilation(source); 323var comp = CreateCompilation(source); 349var comp = CreateCompilation(source); 369var comp = CreateCompilation(source); 395var comp = CreateCompilation(source); 415var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions)); 435var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions));
DocumentationComments\DocumentationModeTests.cs (2)
354var comp = CreateCompilation(trees.ToArray(), assemblyName: "Test"); 383var comp = CreateCompilation(
DocumentationComments\EventDocumentationCommentTests.cs (1)
24_compilation = CreateCompilation(@"namespace Acme
DocumentationComments\MethodDocumentationCommentTests.cs (1)
200var compilation = CreateCompilation(references: new[] { csharpAssemblyReference, ilAssemblyReference }, source:
DocumentationComments\ParameterTests.cs (2)
829CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp2)).VerifyDiagnostics( 834CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.Latest)).VerifyDiagnostics();
DocumentationComments\PartialTypeDocumentationCommentTests.cs (1)
49_compilation = CreateCompilation(new[] { tree1, tree2 });
DocumentationComments\PropertyDocumentationCommentTests.cs (1)
24_compilation = CreateCompilation(@"namespace Acme
DocumentationComments\TypeDocumentationCommentTests.cs (1)
139var comp = CreateCompilation(text);
SymbolDisplay\SymbolDisplayTests.cs (56)
2181var comp1 = CreateCompilation(text); 2254var comp1 = CreateCompilation(text); 3588var comp = CreateCompilation(source); 3619var comp = CreateCompilation(source, parseOptions: parseOptions); 4731var complib = CreateCompilation(src1, assemblyName: "Lib"); 4733var comp1 = CreateCompilation(src2, references: new MetadataReference[] { compref }, assemblyName: "Comp1"); 4737var comp2 = CreateCompilation("", references: new MetadataReference[] { mtref }, assemblyName: "Comp2"); 4816var compilation = CreateCompilation(text); 4941var comp = CreateCompilation(source); 5115var comp = CreateCompilation(source); 5309var compilation = CreateCompilation(source); 5380var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 5617var comp = CreateCompilation(text); 5838var compA = CreateCompilation(sourceA); 5863var compA = CreateCompilation(sourceA); 6059var comp = CreateCompilation(text); 6093var comp = (Compilation)CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 6165var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6234var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6320var compilation = (Compilation)CreateCompilation(source); 6353var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6392var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6447var compilation = (Compilation)CreateCompilation(source); 6491var compilation = (Compilation)CreateCompilation(source); 6515var comp = (Compilation)CreateCompilation(source); 6606var comp = CreateCompilation(srcTree); 6649var comp = CreateCompilation(srcTree); 6745var comp = CreateCompilation(srcTree); 6839var comp = CreateCompilation(srcTree); 6872var comp = CreateCompilation(srcTree); 6917var comp = CreateCompilation(srcTree); 7036var comp = CreateCompilation(source).VerifyDiagnostics(); 7074var comp = CreateCompilation(source).VerifyDiagnostics(); 7112var comp = CreateCompilation(source).VerifyDiagnostics(); 7159var comp = CreateCompilation(source).VerifyDiagnostics( 7244var comp = CreateCompilation(source).VerifyDiagnostics(); 7504var comp = CreateCompilation(source).VerifyDiagnostics(); 7657var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 7902var compilation = CreateCompilation(source); 8000var compilation = CreateCompilation(source); 8060var compilation = CreateCompilation(source); 8092var compilation = CreateCompilation(source); 8128var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9); 8396var comp = CreateCompilation(source); 8447var comp = CreateCompilation(source); 8517var comp = CreateCompilation(source); 8542var comp = CreateCompilation(source); 8610var comp = CreateCompilation(source); 8645var comp = CreateCompilation(source); 8694var comp = CreateCompilation(source); 8778var comp = CreateCompilation(source); 8804var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 8844var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8871var comp = CreateCompilation(source); 8927var comp = CreateCompilation(source); 9021var comp = CreateCompilation(source);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (20)
40var compilation = CreateCompilation(text); 99var compilation = CreateCompilation(text); 150var compilation = CreateCompilation(text); 198var comp1 = CreateCompilation(text1); 202var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 205var compilation = CreateCompilation(text3, refs, assemblyName: "Test3"); 255CreateCompilation(text).VerifyDiagnostics( 284CreateCompilation(text).VerifyDiagnostics( 413var compilation = CreateCompilation(text); 466var compilation = CreateCompilation(text); 506var comp = CreateCompilation(source); 533var comp = CreateCompilation(source); 560var compilation = CreateCompilation(text); 630var compilation = CreateCompilation(text); 686var compilation = CreateCompilation(text); 826var comp = CreateCompilation(text1, references: refs, assemblyName: "OHI_ExpImpPropGetSetMismatch001", 855var comp0 = CreateCompilation(@" 861var comp1 = CreateCompilation(@" 873var comp2 = CreateCompilation(@"", references: new MetadataReference[] { mtref }, assemblyName: "META"); 1003var compilation = (Compilation)CreateCompilation(source);
Symbols\AnonymousTypesSemanticsTests.cs (5)
1536var comp = CreateCompilation(source); 1899var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 1917var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1934var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1955var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Symbols\AnonymousTypesSymbolTests.cs (3)
1638var comp = CreateCompilation(tree); 1679var comp = CreateCompilation(tree); 1845var comp = CreateCompilation(source);
Symbols\AssemblyAndNamespaceTests.cs (6)
30var comp = CreateCompilation(text, assemblyName: simpleName); 57var comp = CreateCompilation(text, assemblyName: "Test"); 161var comp1 = CreateCompilation(text); 202var comp1 = CreateCompilation(text1, assemblyName: "Compilation1"); 203var comp2 = CreateCompilation(text2, assemblyName: "Compilation2"); 687var comp = CreateCompilation(code);
Symbols\CheckedUserDefinedOperatorsTests.cs (122)
34var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 37compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 45compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 78var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 187var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 227var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 398var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 895var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 926var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1251var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1254compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 1262compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 1296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1362var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1395var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1517var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 2214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2429var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2456var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2488compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 2496compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 2532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2656var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2821var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 3208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3422var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3432compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 3442var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3443var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3821var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3828compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 3835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3836var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4035var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4197var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4207compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4217var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4218var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4658var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4668compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4679var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4779var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4788compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4797var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4798var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4840var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5001var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5110var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5204var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5216compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5228var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5229var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5290var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5328var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5682var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5689compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5696var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5697var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5769var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6037var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6153var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6326var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6431var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6550var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6604var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6607var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6608var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6754var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6757var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6758var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6803var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6806var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6807var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6852var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6855var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6856var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7003var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7006var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7007var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7048var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7051var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7052var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7201var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7273var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7344var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7417var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7481var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
Symbols\CompilationCreationTests.cs (6)
2972var lib1 = CreateCompilation(source1, assemblyName: "Lib1", options: TestOptions.ReleaseModule); 2975var lib2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "Lib2"); 3008var compilation = CreateCompilation("Compilation"); 3016compilation = CreateCompilation("Compilation", targetFramework: TargetFramework.Net50); 3024compilation = CreateCompilation("Compilation", targetFramework: TargetFramework.Net60); 3032compilation = CreateCompilation("Compilation", targetFramework: TargetFramework.Net70);
Symbols\ConversionTests.cs (46)
300var compilation = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 348var comp = (Compilation)CreateCompilation(source); 448var comp = CreateCompilation(src); 476var comp = CreateCompilation(src); 511var comp = CreateCompilation(src); 547var comp = CreateCompilation(src); 583var comp = CreateCompilation(src); 617var comp = CreateCompilation(src); 652var comp = CreateCompilation(src); 680var comp = CreateCompilation(src); 711var comp = CreateCompilation(src); 734var comp = CreateCompilation(src); 760var comp = CreateCompilation(src); 789var compilation = CreateCompilation(source); 809var compilation = CreateCompilation(source); 832CreateCompilation(source).VerifyDiagnostics(); 855var compilation = CreateCompilation(source); 877var compilation = CreateCompilation(source); 900CreateCompilation(source).VerifyDiagnostics(); 916CreateCompilation(source).VerifyDiagnostics( 938CreateCompilation(source).VerifyDiagnostics(); 956CreateCompilation(source).VerifyDiagnostics(); 987CreateCompilation(source).VerifyDiagnostics( 1020CreateCompilation(source).VerifyDiagnostics( 1053CreateCompilation(source).VerifyDiagnostics( 1086CreateCompilation(source).VerifyDiagnostics( 1119CreateCompilation(source).VerifyDiagnostics( 1153CreateCompilation(source).VerifyDiagnostics(); 1184CreateCompilation(source).VerifyDiagnostics( 1201CreateCompilation(source).VerifyDiagnostics( 1227CreateCompilation(source).VerifyDiagnostics( 1251CreateCompilation(source).VerifyDiagnostics( 1278CreateCompilation(source).VerifyDiagnostics( 1316CreateCompilation(source).VerifyDiagnostics( 1356CreateCompilation(source).VerifyDiagnostics( 1382CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1385CreateCompilation(source).VerifyDiagnostics(); 1412CreateCompilation(source).VerifyDiagnostics( 1449CreateCompilation(source).VerifyDiagnostics(); 1474CreateCompilation(source).VerifyDiagnostics( 1504CreateCompilation(source).VerifyDiagnostics( 1560CreateCompilation(source).VerifyDiagnostics( 1776CreateCompilation(source).VerifyDiagnostics( 2053var comp = (Compilation)CreateCompilation(source); 2135var comp = (Compilation)CreateCompilation(source); 2169var comp = (Compilation)CreateCompilation(source);
Symbols\CorLibrary\CorTypes.cs (18)
268CreateCompilation(source2).VerifyDiagnostics( 288var comp = CreateCompilation(source, options: TestOptions.DebugExe); 301comp = CreateCompilation(source, options: TestOptions.DebugExe); 372var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 378var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 425var comp = CreateCompilation(source, options: TestOptions.DebugExe); 432comp = CreateCompilation(source, options: TestOptions.DebugExe); 557var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 563var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 617var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 627comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 635comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 663var comp = CreateCompilation(source, options: TestOptions.DebugExe); 673comp = CreateCompilation(source, options: TestOptions.DebugExe); 829var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 844var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 1023var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 1038var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib");
Symbols\CovariantReturnTests.cs (18)
406return CreateCompilation( 425return CreateCompilation( 465var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.Empty); 487var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.Empty); 511var result = CreateCompilation( 540CreateCompilation( 3871var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 3888var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 3947var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4007var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4113var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4130var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4228var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4245var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4337var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4354var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4500var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4526var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty);
Symbols\CSharpCompilerFeatureRequiredTests.cs (2)
65return CSharpTestBase.CreateCompilation(source, references); 553var comp = CSharpTestBase.CreateCompilation(new[] { """
Symbols\CustomModifiersTests.cs (2)
2283var compilation = CreateCompilation(source, references: new[] { TestReferences.SymbolsTests.CustomModifiers.GenericMethodWithModifiers.dll }, 2329var compilation = CreateCompilation(source, references: new[] { TestReferences.SymbolsTests.CustomModifiers.GenericMethodWithModifiers.dll },
Symbols\DefaultInterfaceImplementationTests.cs (1049)
117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 168var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 345var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 361var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 485var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 501var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1200var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1279var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1539var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1585var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1622var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 1666var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60, 1678var compilation3 = CreateCompilation(source2, new[] { reference }, 1723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1744var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 1776var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1819var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 1871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1928var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1971var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 2015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2038var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 2102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2181var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2203var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2267var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2329var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2336var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2402var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2409var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2482var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2633var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2650var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3006var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3083var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3108var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3231var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3295var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3320var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3514var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3599var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3982var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 4134var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 4225var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 4277var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4405var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 4470var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4489var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 4534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 4579var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 4675var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4735var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4786var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4802var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4867var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5297var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5591var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5736var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 5855var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 5953var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5965var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 6011var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6030var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 6081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 6126var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 6189var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6220var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6236var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6354var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6368var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6541var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 6598var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 6619var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 6943var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7046var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 7343var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7417var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7429var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 7477var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7496var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 7532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 7559var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7597var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 7620var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7696var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7712var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8085var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8399var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8612var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 8770var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 8937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 9092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9230var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9257compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9282var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9295compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9308var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 9447var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 9455compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 9462var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9472var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9481compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9529var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9536var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9543var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9554var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9828var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9842var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9849var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9887var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9899var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9907var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9919var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9964var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9976compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9984var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9996var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 10043var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10050var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10058compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10371var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10456var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10507var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 10574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10827var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10881var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 10915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10927var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10938var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 10977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10999var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 11054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11353var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11455var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11633var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11646var compilation2 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 11692var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 11716var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 11724var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 11757var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 11767var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 11784var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 11847var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11881compilation1 = CreateCompilation(source22 + source1, options: TestOptions.DebugExe, 11890var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11907var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 11915compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 11923var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 11983var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11996compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 12005var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12022var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12037compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 12044var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12103var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 12119compilation1 = CreateCompilation(source22 + source1, options: TestOptions.DebugExe, 12128var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12145var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12160compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 12173var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12216var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12226var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12237var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12278var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12288var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12299var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12340var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12350var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12360var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12612var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12623var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12637var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12700var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12711var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12725var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12788var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12813var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12947var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13020var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13567var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 13897var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 14065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14705var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14912var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 14920compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 14932var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 14958var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 14966compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 14985var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 15110var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15118compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15129var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15137var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15145compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15245var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15255var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15263var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15660var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15669var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15674var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15683var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15743var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15750var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15755var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15762var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15837var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15845compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15856var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15864var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 15872compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15955var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15962compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15969var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 16002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 16307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 16917var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 16925var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 17015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17265var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17456var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 17510var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 17527var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 17541var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 17588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17619var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 17726var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18282var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe.WithMetadataImportOptions(metadataImportOptions), 18315var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(metadataImportOptions), 18328var compilation3 = CreateCompilation(source2, new[] { reference }, 18457var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18465compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18484var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 18494var compilation3 = CreateCompilation(source2, new[] { reference }, 18503compilation3 = CreateCompilation(source2, new[] { reference }, 19837var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 19891var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 19908var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 19922var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 19969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 19999var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 20038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20170var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20314var compilation1 = CreateCompilation(source0 + source1, 20353var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 20367var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 20426var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 20444var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 20456var compilation6 = CreateCompilation(source5, options: TestOptions.DebugExe, 20491var compilation7 = CreateCompilation(source1, options: TestOptions.DebugExe, 21552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22131var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 22370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22447var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22625var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23688var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23754var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24538var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 26531var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26567var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 26607var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26743var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26799var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27223var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 27619var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 27693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27863var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27883var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 28195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28418var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28426compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28478var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28501var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28509compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28528var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 28615var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28623compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28634var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28642var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28650compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28751var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, targetFramework: targetFramework, 28760var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: targetFramework, 28767var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 29169var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29178var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29183var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29192var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29255var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29262var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29267var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29274var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29349var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 29357compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29368var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29376var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 29384compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 29460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29467compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29474var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 29696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 30265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30319var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 30438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30659var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30861var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 30915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30930var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 30944var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 30990var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31020var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 31094var compilation1 = CreateCompilation(source0 + source1, 31121var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 31130var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 31168var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 31180var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 31206var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 31750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31932var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 31983var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 32016var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32024var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32038var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32123var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32150var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32158var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32172var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32254var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32257var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe); 32287var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe); 32381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32481var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32508var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 32541var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32549var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32556var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32687var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32764var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32801var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32828var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32959var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 32975var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 32991var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 33117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33141var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33214CreateCompilation(source1, options: TestOptions.DebugDll, 33227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33243CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 33307var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 33357var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 33386var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 33433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33714var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 33832var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 33884var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 33980var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 34141var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 34157var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34173var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34188var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 34194var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 34210var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 34282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34463var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 34489compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 34501var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 34540var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll, 34585var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 34683var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34689var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34703var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 34797var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 34894var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34912var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34968var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34973var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34997var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35064var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35092var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35165var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35190var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35261var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35285var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35366var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35462var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35469var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35578var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35684var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35691var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35804var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36008var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36015var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36113var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36386var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36404var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36421var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36429var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36574var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36592var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36609var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36617var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36762var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36780var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36797var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36805var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 36859var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36887var comp = CreateCompilation(source1, options: TestOptions.DebugDll, 36986var compilation1 = CreateCompilation(source1 + source2, options: options, 37002var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: options, 37018var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: options, 37274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37291var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 37375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 37391var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 37522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37649var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37952var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37987var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 37995var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 38002var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 38401var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 38420var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 38438var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 38446var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 38741var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 38800var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 38826compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 38838var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 38880var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 38909var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 39002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39008var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 39015var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 39106var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 39175var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 39193var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 39492var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39510var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40014var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 40032var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 40050var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 40212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40242var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40333var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 40423var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 40482var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 40511var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 40572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40927var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41069var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 41087var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41105var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 41122var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 41128var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 41141var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 41238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41462var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 41488compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 41500var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 41542var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 41587var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 41668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41674var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 41688var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 41782var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 41851var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41869var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 42019var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42039var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42058var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42066var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42223var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42243var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42262var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42270var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42427var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42447var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42466var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42474var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 43589var compilation1 = CreateCompilation(source1, 43626var compilation1 = CreateCompilation(source1, 43669var compilation1 = CreateCompilation(source1, 43696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 43720var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 43789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43834var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43839var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43844var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 43868var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 43919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43971var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43976var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43981var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 44004var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 44106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 44111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 44134var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44192var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44222var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 44242var compilation3 = CreateCompilation(source0 + source3, options: TestOptions.DebugExe, 44268var compilation2 = CreateCompilation(source3 + source4, new[] { reference }, options: TestOptions.DebugExe, 44288var compilation4 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44343var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44420var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 44544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44642var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 44797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44838var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44964var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44982var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 45002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45056var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45144var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45254var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45259var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45264var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45297var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45350var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45393var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45398var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45403var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45439var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45478var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45585var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45590var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45595var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45627var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45680var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45722var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45727var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45732var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45764var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45838var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 45844var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45902var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 45920var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 45936var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, targetFramework: TargetFramework.Mscorlib461Extended, 46001var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 46034var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 46112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46160var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46198var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, 46256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46303var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46317var compilation4 = CreateCompilation(source4, options: TestOptions.DebugDll, 46346var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 46372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMainTypeName("I2"), 46588var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 46598var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46605var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46611var compilation6 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46690var compilation61 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46766var compilation7 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46844var compilation8 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46864var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 46879var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 46949var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 46952var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 46995var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47012CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47024var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47028CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47156var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 47222var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47231var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47237var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47256var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 47267var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 47314var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47323var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47329var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47390var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47399var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47405var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47463var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 47470var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47520var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47529var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47535var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47601var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47610var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47616var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47676var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47684var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47689var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47708var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47716var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47721var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47737var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47745var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47750var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47809var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47817var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47822var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47841var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47849var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47854var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47870var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47878var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47883var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 47945var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47950var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48004var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48012var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48017var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48079var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48088var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48094var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48136var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48145var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48151var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48203var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48212var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48218var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48238var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 48252var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 48300var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48309var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48315var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48370var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48379var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48385var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48434var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48443var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48449var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48513var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48522var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48528var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48585var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48594var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48600var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48666var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48671var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48736var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48741var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48798var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 48805var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48890var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48899var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48905var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48956var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48965var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48971var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49063var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49072var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49078var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49118var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49222var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49295var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49304var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49310var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49528var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49544var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49550var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49576var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49606var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49617var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49652var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49660var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49768var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49776var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49917var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll, 49955var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 49981var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50010var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50044var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50083var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50109var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50129var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50164var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50202var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50246var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50262var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50306var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50361var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50369var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50397var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50409var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50438var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50450var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50478var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50490var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50518var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50530var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50562var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50577var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50606var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50622var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50658var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50670var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50683var attributes = CreateCompilation(NoPiaAttributes, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50711var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50749var pia2Compilation = CreateCompilation(pia2, baseReferences, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Empty); 50753var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.Empty); 50757var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, references: baseReferences.Concat(new[] { reference2, pia2Reference }), targetFramework: TargetFramework.Empty); 50791var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50807var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50843var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50896var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50949var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50994var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 51042var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51063var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51070var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51220var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51237var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51360var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51374var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51381var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51501var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51511var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51518var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51644var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51658var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51784var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51798var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51805var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51894var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51904var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51911var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51959var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52014var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52257var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52408var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52432var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52497var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52503var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52510var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 52689var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 52699var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52706var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 52854var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52860var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52867var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53017var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53027var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53034var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53192var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53198var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53206var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53354var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53360var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53368var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53486var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53496var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53503var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 54193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 54200var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 57029var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57219var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57231var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57272var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57304var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57313var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57339var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57351var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57389var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57427var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57475var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57481var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57488var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57647var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57664var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 57805var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57811var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57818var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57956var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57966var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57973var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 58119var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58125var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58132var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58268var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58274var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58281var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58388var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 58398var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58405var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 58481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 58673var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59252var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 59313var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59413var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59422var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 59448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62209var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62247var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62273var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62282var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62513var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 62528compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 62555var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62567compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62780var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 62833var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 64787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64813var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64873var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64941var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65019var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65051var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65246var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65560var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65644var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65727var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65846var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65881var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65923var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65958var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66131var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66379var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66410var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66452var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66745var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66751var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66804var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66839var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66925var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66931var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66954var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67003compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67032var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67044compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67096var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67108compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67461var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67499var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67537var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67613var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67710var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67792var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67825var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67930var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68061var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68159var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 68191var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 68485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68529var compilation3 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68548var compilation4 = CreateCompilation(source4, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68554compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 68592compilation3 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, 68605compilation4 = CreateCompilation(source4, new[] { compilation1.ToMetadataReference() }, 68682var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68688var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68699var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 68843var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68859var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68866var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 68925var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68944var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68951var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 69045var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 69321var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 69389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
Symbols\DestructorTests.cs (14)
29var comp = CreateCompilation(source); 41CreateCompilation(source).VerifyDiagnostics( 58CreateCompilation(source).VerifyDiagnostics( 76CreateCompilation(source).VerifyDiagnostics( 126CreateCompilation(source).VerifyDiagnostics( 207CreateCompilation(source).VerifyDiagnostics( 289CreateCompilation(source).VerifyDiagnostics( 331CreateCompilation(source).VerifyDiagnostics( 361CreateCompilation(source).VerifyDiagnostics( 385CreateCompilation(source).VerifyDiagnostics(); 398var compilation = (Compilation)CreateCompilation(source); 433CreateCompilation(source).VerifyDiagnostics(); 529CreateCompilation(source, new[] { vbRef }).VerifyDiagnostics( 552CreateCompilation(source).VerifyDiagnostics(
Symbols\EnumTests.cs (17)
159CreateCompilation(source).VerifyDiagnostics( 174CreateCompilation(source).VerifyDiagnostics( 190CreateCompilation(source).VerifyDiagnostics( 207CreateCompilation(source).VerifyDiagnostics( 230CreateCompilation(source).VerifyDiagnostics(); 247CreateCompilation(source).VerifyDiagnostics( 262CreateCompilation(source).VerifyDiagnostics( 275CreateCompilation(source).VerifyDiagnostics( 288CreateCompilation(source).VerifyDiagnostics(); 320var comp = CreateCompilation(sourceA, assemblyName: "UseSiteError_sourceA"); 332comp = CreateCompilation(sourceB, references: new[] { refA }); 344comp = CreateCompilation(sourceC, references: new[] { refB }); 364var comp = CreateCompilation(sourceA, assemblyName: "UseSiteError_sourceA"); 376comp = CreateCompilation(sourceB, references: new[] { refA }); 388comp = CreateCompilation(sourceC, references: new[] { refB }, options: TestOptions.ReleaseExe); 395comp = CreateCompilation(sourceC, references: new[] { refB }, options: TestOptions.DebugExe); 406CreateCompilation("partial public enum E { }").VerifyDiagnostics(
Symbols\ErrorTypeSymbolTests.cs (5)
29var compilation1 = CreateCompilation(source1, assemblyName: "91AB32B7-DDDF-4E50-87EF-4E8B0A664A41"); 42var compilation2 = CreateCompilation(source2, references: new[] { reference1 }, assemblyName: "91AB32B7-DDDF-4E50-87EF-4E8B0A664A42"); 50var compilation3 = CreateCompilation(source3, references: new[] { reference1, reference2 }); 55var compilation4 = CreateCompilation(source2); 61var compilation5 = CreateCompilation(source5, references: new[] { reference2 });
Symbols\ExtendedPartialMethodsTests.cs (128)
29var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 39comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 52var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 71var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 87var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 128var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 138comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 151var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 170var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 186var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 275comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 288var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 305var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 322var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 339var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 355var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 367var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 380var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 390comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 403var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 422var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 439var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 456var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 512var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 538var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 564var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 586var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 608var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 629var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 642var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 654comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 669var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 692var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 713var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 742var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 765var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 791var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 812var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 839var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 867var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 894var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 911var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 920comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 937var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 964var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 985var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1006var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1023var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1040var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1049comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1066var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1092var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1258var comp = CreateCompilation(text); 1282var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1338var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1364var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1387var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1416var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1440var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1449comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1466var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1488var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1513var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1535var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1644var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1678var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1714var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1735var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1755var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1782var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1812var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1856var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1888var comp = CreateCompilation(text); 1913var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1939var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 1948comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1970var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2005var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2027var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2088var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2094var comp2 = CreateCompilation( 2125var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2179var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2233var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2240var comp2 = CreateCompilation( 2277var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2283var comp2 = CreateCompilation( 2320var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2361var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2386var comp1 = CreateCompilation( 2434var comp1 = CreateCompilation( 2481var comp1 = CreateCompilation(source1, assemblyName: "C"); 2579var comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2726var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2732comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2748var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2770var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2773comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2798var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2807comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2861var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2891var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2937var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3001var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3029var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3054var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3067var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3083var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3102var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3105comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3129var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3132comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3154var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3210var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3234comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3293var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3320comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3355var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3373comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3419comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3457var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3460comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3490var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
Symbols\ExtensionMethodTests.cs (47)
203var compilation = CreateCompilation(source); 224var compilation = CreateCompilation(source); 257var compilation = CreateCompilation(source); 430var compilation = CreateCompilation(source); 458var compilation = CreateCompilation(source); 674var compilation = CreateCompilation(source); 751var compilation = CreateCompilation(source); 778var compilation = CreateCompilation(source); 840var compilation = CreateCompilation(source); 1092var compilation = CreateCompilation(source); 1138var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1199var compilation = CreateCompilation(source); 1249var compilation = CreateCompilation(source); 1337var compilation = CreateCompilation(source); 1408var compilation = CreateCompilation(source); 1440var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1445compilation = CreateCompilation(source); 1481var compilation = CreateCompilation(source); 1526var compilation = CreateCompilation(source); 1574var compilation = CreateCompilation(source); 1593var compilation = CreateCompilation(source); 1616var compilation = CreateCompilation(source); 1687var compilation = CreateCompilation(source); 1723var compilation = CreateCompilation(source); 1826var compilation = CreateCompilation(source); 1859var compilation = CreateCompilation(source); 1892var compilation = CreateCompilation(source); 1952var compilation = CreateCompilation(source); 2007var compilation = CreateCompilation(source); 2045var compilation = CreateCompilation(source); 2188var compilation = CreateCompilation(source); 2522var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2584var comp = CreateCompilation(@" 2616CreateCompilation(text).GetDiagnostics(); 2825var compilation1 = CreateCompilation(source1); 3135var comp = CreateCompilation(src1); 3253var compilation = CreateCompilation(source2, new[] { reference1 }); 3279var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3324var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 3423var compilation = CreateCompilation(source, references: new[] { FSharpTestLibraryRef }); 3772var compilation = CreateCompilation(source); 3860var compilation = CreateCompilation(source); 3903var compilation = CreateCompilation(source); 3952var compilation = CreateCompilation(source); 3998var compilation = CreateCompilation(source); 4124var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 4157var comp = CreateCompilation(source);
Symbols\FunctionPointerTypeSymbolTests.cs (11)
23return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: targetFramework); 1512var comp = CreateCompilation("", references: new[] { CompileIL(il) }); 1528var comp = (Compilation)CreateCompilation(""); 1551var comp = (Compilation)CreateCompilation(""); 1563var comp = (Compilation)CreateCompilation(@"class C {}"); 1579var comp = (Compilation)CreateCompilation(""); 1595var comp = (Compilation)CreateCompilation(""); 1612var comp = (Compilation)CreateCompilation(""); 1635var comp = (Compilation)CreateCompilation(""); 1647var comp = (Compilation)CreateCompilation(""); 1958var mainComp = CreateCompilation("");
Symbols\GenericConstraintConversionTests.cs (19)
57CreateCompilation(source).VerifyDiagnostics( 93CreateCompilation(source).VerifyDiagnostics( 139CreateCompilation(source).VerifyDiagnostics( 214CreateCompilation(source).VerifyDiagnostics( 286CreateCompilation(source).VerifyDiagnostics( 333CreateCompilation(source).VerifyDiagnostics( 414CreateCompilation(source).VerifyDiagnostics( 534CreateCompilation(source).VerifyDiagnostics( 607CreateCompilation(source).VerifyDiagnostics( 628CreateCompilation(source).VerifyDiagnostics( 651CreateCompilation(source).VerifyDiagnostics( 691CreateCompilation(source).VerifyDiagnostics( 730CreateCompilation(source).VerifyDiagnostics(); 762CreateCompilation(source).VerifyDiagnostics(); 790CreateCompilation(source).VerifyDiagnostics( 818CreateCompilation(source).VerifyDiagnostics( 970CreateCompilation(source).VerifyDiagnostics( 1005CreateCompilation(source).VerifyDiagnostics( 1053CreateCompilation(source).VerifyDiagnostics(
Symbols\GenericConstraintTests.cs (110)
243CreateCompilation(source).VerifyDiagnostics( 264CreateCompilation(source).VerifyDiagnostics( 290var comp1 = CreateCompilation(metadatasrc); 291var comp2 = CreateCompilation(source, new MetadataReference[] { comp1.EmitToImageReference() }); 313CreateCompilation(source).VerifyDiagnostics( 340CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 386CreateCompilation(source).VerifyDiagnostics(); 477CreateCompilation(source).VerifyDiagnostics( 519CreateCompilation(source).VerifyDiagnostics( 548CreateCompilation(source).VerifyDiagnostics( 605CreateCompilation(source).VerifyDiagnostics( 681CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 744CreateCompilation(source).VerifyDiagnostics( 785CreateCompilation(text).VerifyDiagnostics( 810CreateCompilation(text).VerifyDiagnostics( 859CreateCompilation(text).VerifyDiagnostics( 894CreateCompilation(text).VerifyDiagnostics( 911CreateCompilation(text).VerifyDiagnostics( 933CreateCompilation(source).VerifyDiagnostics( 957CreateCompilation(source).VerifyDiagnostics( 991CreateCompilation(source).VerifyDiagnostics( 1012CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1389CreateCompilation(source).VerifyDiagnostics( 1780CreateCompilation(source).VerifyDiagnostics( 1816CreateCompilation(source).VerifyDiagnostics( 1863CreateCompilation(source).VerifyDiagnostics( 1931CreateCompilation(source).VerifyDiagnostics( 1987CreateCompilation(source).VerifyDiagnostics( 2083CreateCompilation(source).VerifyDiagnostics( 2110CreateCompilation(source).VerifyDiagnostics( 2135CreateCompilation(source).VerifyDiagnostics( 2172CreateCompilation(source).VerifyDiagnostics( 2222CreateCompilation(source).VerifyDiagnostics( 2264CreateCompilation(source).VerifyDiagnostics( 2303CreateCompilation(source).VerifyDiagnostics( 2341CreateCompilation(source).VerifyDiagnostics( 2369CreateCompilation(source).VerifyDiagnostics( 2414CreateCompilation(source).VerifyDiagnostics( 2499CreateCompilation(source).VerifyDiagnostics(); 2666CreateCompilation(source).VerifyDiagnostics( 2889var compilation1 = CreateCompilation(source1, assemblyName: "d521fe98-c881-45cf-0788-249e00d004ea"); 2934var compilation2 = CreateCompilation(source2, references: new MetadataReference[] { MetadataReference.CreateFromImage(compilation1.EmitToArray()) }); 2965var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { MetadataReference.CreateFromImage(compilation2.EmitToArray()) }); 3072var compilation1 = CreateCompilation(source1, assemblyName: "d521fe98-c881-45cf-8870-249e00ae400d"); 3081var compilation2 = CreateCompilation(source2, assemblyName: "d03a3229-eb22-4682-88df-77efaa348e3b", references: new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 3097var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new CSharpCompilationReference(compilation2) }); 3195CreateCompilation(source).VerifyDiagnostics( 3228var comp = CreateCompilation(source); 3258CreateCompilation(source).VerifyDiagnostics( 3300CreateCompilation(source).VerifyDiagnostics( 4333CreateCompilation(source).VerifyDiagnostics(); 4364CreateCompilation(source).VerifyDiagnostics( 4383CreateCompilation(source).VerifyDiagnostics(); 4407CreateCompilation(source).VerifyDiagnostics(); 4423CreateCompilation(source).VerifyDiagnostics( 4450CreateCompilation(source).VerifyDiagnostics( 4480CreateCompilation(source).VerifyDiagnostics(); 5059CreateCompilation(source).VerifyDiagnostics( 5181CreateCompilation(source).VerifyDiagnostics( 5587var compilation = CreateCompilation(source); 5633CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 5657CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5809CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 5833CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5841CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 5857var compilation = CreateCompilation(source); 5874CreateCompilation(source).VerifyDiagnostics( 5910CreateCompilation(source).VerifyDiagnostics(); 5945CreateCompilation(source).VerifyDiagnostics( 5976CreateCompilation(source).VerifyDiagnostics( 6060CreateCompilation(source).VerifyDiagnostics( 6084CreateCompilation(source).VerifyDiagnostics( 6114CreateCompilation(source).VerifyDiagnostics( 6146CreateCompilation(source).VerifyDiagnostics( 6170CreateCompilation(source).VerifyDiagnostics( 6194CreateCompilation(source).VerifyDiagnostics(); 6234CreateCompilation(source).VerifyDiagnostics( 6270CreateCompilation(source).VerifyDiagnostics( 6313CreateCompilation(source).VerifyDiagnostics(); 6332var comp = CreateCompilation(text); 6353var comp = CreateCompilation(text); 6416CreateCompilation(source).VerifyDiagnostics( 6432var compilation1 = CreateCompilation(source1, assemblyName: "e521fe98-c881-45cf-8870-249e00ae400d"); 6439var compilation2 = CreateCompilation(source2, references: new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 6443var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new CSharpCompilationReference(compilation2) }); 6475CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6477CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6498CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6500CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6525CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6540CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6714CreateCompilation(source).VerifyDiagnostics( 6769CreateCompilation(source).VerifyDiagnostics( 6804CreateCompilation(source).VerifyDiagnostics( 6839var compilation1 = CreateCompilation(source1); 6860var compilation2 = CreateCompilation( 6967var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11); 6974compilation = CreateCompilation(source, parseOptions: TestOptions.Regular12); 7005var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 7011compilation = CreateCompilation(source, parseOptions: TestOptions.Regular12); 7042CreateCompilation(source).VerifyDiagnostics( 7076CreateCompilation(source).VerifyDiagnostics( 7138CreateCompilation(source).VerifyDiagnostics( 7197CreateCompilation(source).VerifyDiagnostics( 7252CreateCompilation(source).VerifyDiagnostics( 7296var comp = CreateCompilation(@"System.Console.WriteLine(typeof(C.D).FullName);", 7357var metadataComp = CreateCompilation(code, new[] { remappedComp11.EmitToImageReference() }, assemblyName: "intermediate", targetFramework: TargetFramework.NetStandard20); 7360var comp = CreateCompilation(@" 7388var comp = CreateCompilation(src); 7409var comp = CreateCompilation(src);
Symbols\ImplicitClassTests.cs (2)
53var c = CreateCompilation(@" 96var comp = CreateCompilation(@"
Symbols\IndexedPropertyTests.cs (18)
588var compilation2 = CreateCompilation(source2, new[] { reference1 }); 861var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1147CreateCompilation(source).VerifyDiagnostics( 1186var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1222var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1265var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1329var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1363var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1405var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1492var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1550var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1756var compilation4 = CreateCompilation(source4, new[] { reference1, reference2 }); 1873var compilation3 = CreateCompilation(source3, new[] { reference1 }); 1908var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2057var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2110var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2149var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2188var compilation3 = CreateCompilation(source3, new[] { reference1, reference2 });
Symbols\IndexerTests.cs (61)
239CreateCompilation(source).VerifyDiagnostics( 273var compilation = CreateCompilation(source); 313var compilation = CreateCompilation(text); 846CreateCompilation(source, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 888CreateCompilation(source).VerifyDiagnostics( 913CreateCompilation(source).VerifyDiagnostics( 933CreateCompilation(source).VerifyDiagnostics( 956CreateCompilation(source).VerifyDiagnostics(); 979CreateCompilation(source).VerifyDiagnostics(); 1003CreateCompilation(source).VerifyDiagnostics( 1038CreateCompilation(source).VerifyDiagnostics( 1058CreateCompilation(source).VerifyDiagnostics( 1109CreateCompilation(source).VerifyDiagnostics( 1202CreateCompilation(source).VerifyDiagnostics(); 1260CreateCompilation(source).VerifyDiagnostics( 1286var comp = CreateCompilation(tree); 1320var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1351var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1367var compilation = CreateCompilation(source, 1386var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1408var compilation = CreateCompilation(source, 1432var compilation = CreateCompilation(source); 1457var compilation = CreateCompilation(source); 1486CreateCompilation(source).VerifyDiagnostics( 1512var compilation = CreateCompilation(source); 1538CreateCompilation(source).VerifyDiagnostics(); 1564var compilation = CreateCompilation(source); 1593var compilation = CreateCompilation(source); 1624var compilation = CreateCompilation(source); 1656var compilation = CreateCompilation(source); 1685var compilation = CreateCompilation(source); 1714CreateCompilation(source).VerifyDiagnostics( 1751CreateCompilation(source).VerifyDiagnostics( 1788CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 1837CreateCompilation(source).VerifyDiagnostics( 1870CreateCompilation(source).VerifyDiagnostics( 1903CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 1955CreateCompilation(source).VerifyDiagnostics( 2004CreateCompilation(source).VerifyDiagnostics( 2047CreateCompilation(source).VerifyDiagnostics( 2075CreateCompilation(source).VerifyDiagnostics( 2101CreateCompilation(source).VerifyDiagnostics( 2126var compilation = CreateCompilation(source).VerifyDiagnostics(); 2164var compilation = CreateCompilation(source); 2195var compilation = CreateCompilation(source); 2231var comp = CreateCompilation(tree); 2272var comp = CreateCompilation(tree); 2314var comp = CreateCompilation(tree); 2352var comp = CreateCompilation(tree); 2385CreateCompilation(source).VerifyDiagnostics( 2402var comp = CreateCompilation(text); 2431CreateCompilation(text).VerifyDiagnostics(); 2558var compilation = CreateCompilation(new string[] { text1, text2 }); 2562compilation = CreateCompilation(new string[] { text2, text1 }); 2610var comp = CreateCompilation(tree); 2697var comp = CreateCompilation(tree); 2860var comp = CreateCompilation(source); 2885CreateCompilation(source).VerifyDiagnostics( 2906CreateCompilation(source).VerifyDiagnostics( 2926CreateCompilation(source).VerifyDiagnostics( 2952var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
Symbols\InterfaceImplementationTests.cs (42)
48var comp = CreateCompilation(text); 119var comp = CreateCompilation(text); 175var comp = CreateCompilation(text); 233var comp1 = CreateCompilation(text1); 237var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 241var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 305var comp1 = CreateCompilation(text1); 309var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 313var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 371var comp = CreateCompilation(text); 419var comp1 = CreateCompilation(text1); 423var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 427var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 504var comp = CreateCompilation(text); 572var comp = CreateCompilation(text); 622var comp = CreateCompilation(text); 673var comp = CreateCompilation(text); 734var comp = CreateCompilation(text); 824var comp = CreateCompilation(text); 906var comp = CreateCompilation(text); 967var comp1 = CreateCompilation(text1, 972var comp2 = CreateCompilation(text2, 1054var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 1108var comp = CreateCompilation(text, new[] { ilAssemblyReference }); 1126var comp = CreateCompilation(text, new[] { ilAssemblyReference }); 1147var comp = CreateCompilation(text); 1171CreateCompilation(text).VerifyDiagnostics(); 1214var comp = CreateCompilation(csharp); 1561CreateCompilation(text).VerifyDiagnostics( 1587var comp = CreateCompilation(text); 1628var comp = CreateCompilation(text); 1688var comp = CreateCompilation(text); 1854var comp = CreateCompilation(source); 1892var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 2100CreateCompilation(source, new[] { ilRef }).VerifyDiagnostics( 2480var comp = CreateCompilation(text); 2697var comp = CreateCompilation(source0); 2700comp = CreateCompilation(source1, references: new[] { ref0 }); 2703comp = CreateCompilation(new[] { source2, source3 }, references: new[] { ref0, ref1 }, options: TestOptions.ReleaseExe); 2730var comp1 = CreateCompilation(text1); 2753var comp0 = CreateCompilation(text0); 2755var comp1 = CreateCompilation("", references: new[] { comp0.EmitToImageReference() });
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (43)
44CreateCompilation(source).VerifyDiagnostics( 88CreateCompilation(source).VerifyDiagnostics( 129CreateCompilation(source).VerifyDiagnostics( 167CreateCompilation(source).VerifyDiagnostics( 203CreateCompilation(source).VerifyDiagnostics( 238CreateCompilation(source).VerifyDiagnostics( 292CreateCompilation(source).VerifyDiagnostics( 330CreateCompilation(source).VerifyDiagnostics( 366CreateCompilation(source).VerifyDiagnostics( 402CreateCompilation(source).VerifyDiagnostics( 459CreateCompilation(source).VerifyDiagnostics( 497CreateCompilation(source).VerifyDiagnostics( 533CreateCompilation(source).VerifyDiagnostics( 569CreateCompilation(source).VerifyDiagnostics( 626CreateCompilation(source).VerifyDiagnostics( 667CreateCompilation(source).VerifyDiagnostics( 709CreateCompilation(source).VerifyDiagnostics( 751CreateCompilation(source).VerifyDiagnostics( 784var comp = CreateCompilation(source); 824CreateCompilation(source).VerifyDiagnostics(); 841var comp = CreateCompilation(code).VerifyDiagnostics( 870var comp = CreateCompilation(code).VerifyDiagnostics( 899var comp = CreateCompilation(code).VerifyDiagnostics( 928var comp = CreateCompilation(code).VerifyDiagnostics( 957var comp = CreateCompilation(code).VerifyDiagnostics( 986var comp = CreateCompilation(code).VerifyDiagnostics( 1015var comp = CreateCompilation(code).VerifyDiagnostics( 1044var comp = CreateCompilation(code).VerifyDiagnostics(); 1070var comp = CreateCompilation(code).VerifyDiagnostics(); 1096var comp = CreateCompilation(code).VerifyDiagnostics(); 1122var comp = CreateCompilation(code).VerifyDiagnostics(); 1140var comp = CreateCompilation(code).VerifyDiagnostics(); 1158var comp = CreateCompilation(code).VerifyDiagnostics(); 1175var comp = CreateCompilation(code).VerifyDiagnostics( 1201var comp = CreateCompilation(text).VerifyDiagnostics(); 1220var comp = CreateCompilation(text).VerifyDiagnostics( 1246var comp = CreateCompilation(text).VerifyDiagnostics( 1272var comp = CreateCompilation(code).VerifyDiagnostics( 1296var comp = CreateCompilation(code).VerifyDiagnostics( 1317var comp = CreateCompilation(code).VerifyDiagnostics( 1337var comp = CreateCompilation(code).VerifyDiagnostics(); 1354var comp = CreateCompilation(code).VerifyDiagnostics( 1374var comp = CreateCompilation(code).VerifyDiagnostics(
Symbols\LocalFunctionTests.cs (13)
31var compilation = CreateCompilation(source).VerifyDiagnostics(); 52var compilation = CreateCompilation(source).VerifyDiagnostics(); 73var compilation = CreateCompilation(source).VerifyDiagnostics(); 96var compilation = CreateCompilation(source).VerifyDiagnostics(); 110CreateCompilation(""" 133CreateCompilation(""" 171CreateCompilation(""" 197CreateCompilation(""" 246CreateCompilation(""" 283CreateCompilation(""" 332CreateCompilation(""" 370CreateCompilation(""" 408CreateCompilation("""
Symbols\LookupSymbolsInfoTests.cs (1)
91var compilation = CreateCompilation(source);
Symbols\Metadata\MetadataMemberTests.cs (12)
151var compilation = CreateCompilation(text); 298var compilation = CreateCompilation(text); 343var compilation = CreateCompilation(text); 394var compilation = CreateCompilation(text); 619var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 629var comp2 = CreateCompilation("", new[] { comp1.EmitToImageReference() }); 659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 670var comp2 = CreateCompilation("", new[] { comp1.EmitToImageReference() }); 731var compilation0 = CreateCompilation(source); 734var compilation = CreateCompilation("", options: options, references: new[] { compilation0.EmitToImageReference() }); 794var compilation0 = CreateCompilation(source); 796var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() });
Symbols\Metadata\MetadataTypeTests.cs (2)
167var compilation = CreateCompilation(text); 358var comp = CreateCompilation(source: tree, references: new[] { modRef });
Symbols\Metadata\PE\BaseTypeResolution.cs (3)
337var compilation1 = CreateCompilation(compilationDef1, new MetadataReference[] { crossRefLib }, TestOptions.ReleaseDll); 357var compilation2 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule1, crossRefModule2 }, TestOptions.ReleaseDll); 369var compilation3 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule2 }, TestOptions.ReleaseDll);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
439var c = CreateCompilation(csSource, new[] { dll });
Symbols\Metadata\PE\LoadInAttributeModifier.cs (34)
43CreateCompilation(@" 88CreateCompilation(@" 122var c = CreateCompilation(@" 156CreateCompilation(@" 198CreateCompilation(@" 240CreateCompilation(@" 275CreateCompilation(@" 310CreateCompilation(@" 447CreateCompilation(@" 600CreateCompilation(@" 648CreateCompilation(@" 680CreateCompilation(@" 726CreateCompilation(@" 771CreateCompilation(@" 813CreateCompilation(@" 862CreateCompilation(@" 907CreateCompilation(@" 949CreateCompilation(@" 1006CreateCompilation(@" 1055CreateCompilation(@" 1101CreateCompilation(@" 1158CreateCompilation(@" 1207CreateCompilation(@" 1253CreateCompilation(@" 1522CreateCompilation(@" 1749CreateCompilation(@" 1951CreateCompilation(@" 2233CreateCompilation(@" 2460CreateCompilation(@" 2662CreateCompilation(@" 2722CreateCompilation(@" 2769CreateCompilation(@" 2808CreateCompilation(@" 2847CreateCompilation(@"
Symbols\Metadata\PE\LoadingAttributes.cs (1)
1292var compilation = CreateCompilation(
Symbols\Metadata\PE\LoadingEvents.cs (4)
467var reference = CreateCompilation(source).EmitToImageReference(); 468var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 521var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 581var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Metadata\PE\LoadingFields.cs (1)
148var comp = CreateCompilation("", targetFramework: TargetFramework.Net60);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
199CreateCompilation(source, new[] { mdRef }).VerifyDiagnostics(
Symbols\Metadata\PE\LoadingMetadataTokens.cs (2)
18var compilation = CreateCompilation( 81var compilation = CreateCompilation(
Symbols\Metadata\PE\LoadingMethods.cs (7)
772var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 785var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 829var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 1265var c = CreateCompilation(source, new[] { longFormRef }); 1289var c = CreateCompilation(source, new[] { lib }); 1309var c = CreateCompilation(source, new[] { lib }); 1372var comp = CreateCompilation(source, references: references);
Symbols\Metadata\PE\NoPia.cs (6)
1382var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 1388var compilationBase = CreateCompilation(sourceBase, new[] { referencePIASource }, TestOptions.DebugDll); 1403var compilationDerived1 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseSource }, TestOptions.DebugDll); 1406var compilationDerived2 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseSource }, TestOptions.DebugDll); 1409var compilationDerived3 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseImage }, TestOptions.DebugDll); 1412var compilationDerived4 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseImage }, TestOptions.DebugDll);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (2)
554var localType = CreateCompilation(assemblyName: "Dummy", source: localTypeSource, 557var localConsumer = CreateCompilation(assemblyName: "Dummy", source: (string[])null,
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (6)
27var localConsumer = CreateCompilation(assemblyName: "Dummy", source: (string[])null, 423var localType1 = CreateCompilation(assemblyName: "Dummy1", source: localTypeSource1, references: null); 425var localType2 = CreateCompilation(assemblyName: "Dummy2", source: localTypeSource2, 430var localConsumer = CreateCompilation(source: "", assemblyName: "Dummy3", 468var localType = CreateCompilation(assemblyName: "Dummy1", source: localTypeSource, references: null); 470var localConsumer = CreateCompilation(assemblyName: "Dummy2", source: "",
Symbols\Metadata\PE\TypeForwarders.cs (47)
170var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 233var compilation = CreateCompilation(csharp, new[] { ref1, ref2 }); 307var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 406var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3, ref4 }); 514var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 570var compilation = CreateCompilation(csharp, new[] { ref1, ref2 }); 634CreateCompilation(csharp, new[] { ref1, ref2 }).VerifyDiagnostics(); 703CreateCompilation(csharp, new[] { ref1, ref2 }).VerifyDiagnostics(); 754var comp3 = CreateCompilation(csharp, new[] { ref1, ref2 }); 802CreateCompilation(csharp, new[] { ref1 }).VerifyDiagnostics( 858CreateCompilation(csharp, new[] { ref1 }).VerifyDiagnostics( 898CreateCompilation(csharp, new[] { ref1 }).VerifyDiagnostics( 911CreateCompilation(source).VerifyDiagnostics( 945CreateCompilation(csharp, new[] { ref1 }).VerifyDiagnostics( 981CreateCompilation(csharp, new[] { ref1 }).VerifyDiagnostics( 1051var compilation = CreateCompilation(csharp, new[] { ref1 }); 1145var compilation = CreateCompilation(csharp, new[] { ref1 }); 1209var compilation = CreateCompilation(csharp, new[] { ref1 }); 1462var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "Asm1"); 1466var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "Asm2"); 1537var bitsA = CreateCompilation(moduleA, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1541var bitsB = CreateCompilation(moduleB, new[] { refA }, TestOptions.ReleaseExe, assemblyName: "test").EmitToArray(); 1544var bits0 = CreateCompilation(module0, options: TestOptions.ReleaseModule, assemblyName: "asm0").EmitToArray(); 1548var bits1 = CreateCompilation(module1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1").EmitToArray(); 1552var bits2 = CreateCompilation(module2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1611var forwardedTypesCompilation = CreateCompilation(forwardedTypes, options: TestOptions.ReleaseDll, assemblyName: "ForwarderTargetAssembly"); 1684appCompilation = CreateCompilation(app, references: new MetadataReference[] { modRef2, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1715appCompilation = CreateCompilation(app, references: new[] { modRef1 }, options: TestOptions.ReleaseDll); 1727var comp0 = CreateCompilation(source0, options: TestOptions.ReleaseModule, assemblyName: "asm0"); 1731var comp1 = CreateCompilation(source1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1738var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2"); 1823var cA_v1 = CreateCompilation(@" 1837var cC_v1 = CreateCompilation(@" 1859var cC_v2 = CreateCompilation(@" 1891var context = CreateCompilation("", new[] { r1, r2, r3 }, options: TestOptions.ReleaseDll); 1918var compA1 = CreateCompilation(sourceA1, assemblyName: "A"); 1922var compB1 = CreateCompilation(sourceB1, assemblyName: "B"); 1936var comp = CreateCompilation(sourceProgram, references: new[] { refA1, refB1 }); 1945var compBImpl = CreateCompilation(sourceBImpl, assemblyName: "BImpl"); 1951var compB2 = CreateCompilation(sourceB2, references: new[] { refBImpl }, assemblyName: "B"); 1954comp = CreateCompilation(sourceProgram, references: new[] { refA1, compB2.EmitToImageReference(aliases: ImmutableArray.Create("B")), refBImpl }); 1982var compA1 = CreateCompilation(sourceA1, assemblyName: "A"); 1986var compB1 = CreateCompilation(sourceB1, assemblyName: "B"); 2000var comp = CreateCompilation(sourceProgram, references: new[] { refA1, refB1 }); 2009var compBImpl = CreateCompilation(sourceBImpl, assemblyName: "BImpl"); 2015var compB2 = CreateCompilation(sourceB2, references: new[] { refBImpl }, assemblyName: "B"); 2018comp = CreateCompilation(sourceProgram, references: new[] { refA1, compB2.EmitToImageReference(aliases: ImmutableArray.Create("B")), refBImpl });
Symbols\MethodEqualityTests.cs (4)
33var comp = CreateCompilation(text); 80var comp = CreateCompilation(text); 140var comp = CreateCompilation(text); 199var comp = (Compilation)CreateCompilation(text);
Symbols\MissingSpecialMember.cs (4)
37var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 69var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 101var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 1103var comp = CreateCompilation(source);
Symbols\ModuleInitializers\AccessibilityTests.cs (5)
36var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 119var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 159var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 215var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 283var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\ModuleInitializers\GenericsTests.cs (4)
32var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 54var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 76var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 101var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (12)
39var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 62var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 830var comp1 = CreateCompilation(s1, options: moduleOptions.WithModuleName("A"), parseOptions: s_parseOptions); 847var comp2 = CreateCompilation(s2, options: moduleOptions.WithModuleName("B"), parseOptions: s_parseOptions, references: new[] { ref1 }); 865var comp3 = CreateCompilation(s3, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 881var comp4 = CreateCompilation(s4, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 897var comp5 = CreateCompilation(s5, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 913var comp6 = CreateCompilation(s6, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 935var comp7 = CreateCompilation(s7, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 959var comp8 = CreateCompilation(s8, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 1098var ref1 = CreateCompilation(source1).ToMetadataReference(aliases: ImmutableArray.Create("Alias1")); 1099var ref2 = CreateCompilation(source1).ToMetadataReference(aliases: ImmutableArray.Create("Alias2"));
Symbols\ModuleInitializers\SignatureTests.cs (9)
33var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 56var compilation = CreateCompilation(source, parseOptions: s_parseOptions, targetFramework: TargetFramework.NetCoreApp); 81var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 103var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 125var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 147var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 195var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 217var compilation = CreateCompilation(source, targetFramework: StaticAbstractMembersInInterfacesTests._supportingFramework); 237var compilation = CreateCompilation(source, targetFramework: StaticAbstractMembersInInterfacesTests._supportingFramework);
Symbols\ModuleInitializers\TargetsTests.cs (18)
36var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 67var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 89var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 116var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 138var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 165var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 187var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 214var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 241var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 276var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 306var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 341var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 371var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 406var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 431var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 458var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 480var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 507var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\NamespaceExtentTests.cs (2)
19var c1 = CreateCompilation(""); 20var c2 = CreateCompilation("");
Symbols\OverriddenOrHiddenMembersTests.cs (102)
74var comp = CreateCompilation(tree); 161var comp = CreateCompilation(tree); 242var comp = CreateCompilation(text); 333var comp = CreateCompilation(text); 414var comp = CreateCompilation(text); 465var comp = CreateCompilation(text); 601var comp = CreateCompilation(text); 663var comp = CreateCompilation(text); 734var comp1 = CreateCompilation(text1); 738var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 742var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 861CreateCompilation(text).VerifyDiagnostics( 897var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 1110CreateCompilation(text) 1135var comp = CreateCompilation(text); 1153var comp = CreateCompilation(text); 1182var comp = CreateCompilation( 1219var comp = CreateCompilation( 1255CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1317CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1416CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1551CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1565CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1615CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1819CreateCompilation(text).VerifyDiagnostics(); 1861var comp = CreateCompilation(text); 1887var comp = CreateCompilation(text); 1912var comp = CreateCompilation(text); 1940var comp = CreateCompilation(text); 1968var comp = CreateCompilation(text); 1996var comp = CreateCompilation(text); 2025var comp = CreateCompilation(text); 2092var comp = CreateCompilation(text); 2113CreateCompilation(text).VerifyDiagnostics(); 2119CreateCompilation(@" 2160CreateCompilation(text).VerifyDiagnostics( 2176var c1 = CreateCompilation(@" 2190var c2 = CreateCompilation(@" 2205var c1 = CreateCompilation(@" 2231var c2 = CreateCompilation(@" 2432var comp = CreateCompilation(source); 2491var comp = CreateCompilation(source); 2556var comp = CreateCompilation(source); 2615var comp = CreateCompilation(source); 2828var comp = CreateCompilation(csharp, new[] { ref1 }, options: TestOptions.ReleaseExe); 2899var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2902var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 2905var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 2947var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2950var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 2953var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 2995var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2998var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3001var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3042var comp1 = CreateCompilation(source1, assemblyName: "A"); 3045var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B"); 3048var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C"); 3089var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3092var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3095var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3136var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3139var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3142var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3208var comp1 = CreateCompilation(source1, assemblyName: "A"); 3211var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B"); 3216var comp3 = CreateCompilation("", new[] { ref1, ref2, ilRef }, assemblyName: "Test"); 3263var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3266var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3269var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3366CreateCompilation(source).VerifyDiagnostics( 3482CreateCompilation(source).VerifyDiagnostics( 3577var comp = CreateCompilation(source); 3626CreateCompilation(source).VerifyDiagnostics(); 3681var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3753var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3813var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3937var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3973var comp = CreateCompilation(code).VerifyDiagnostics( 4003var comp = CreateCompilation(code).VerifyDiagnostics( 4033var comp = CreateCompilation(code).VerifyDiagnostics( 4063var comp = CreateCompilation(code).VerifyDiagnostics( 4093var comp = CreateCompilation(code).VerifyDiagnostics( 4123var comp = CreateCompilation(code).VerifyDiagnostics( 4153var comp = CreateCompilation(code).VerifyDiagnostics( 4182var comp = CreateCompilation(code).VerifyDiagnostics(); 4209var comp = CreateCompilation(code).VerifyDiagnostics(); 4236var comp = CreateCompilation(code).VerifyDiagnostics(); 4262var comp = CreateCompilation(code).VerifyDiagnostics(); 4289var comp = CreateCompilation(code).VerifyDiagnostics(); 4316var comp = CreateCompilation(code).VerifyDiagnostics(); 4342var comp = CreateCompilation(code).VerifyDiagnostics(); 4376var comp = CreateCompilation(text).VerifyDiagnostics(); 4421var comp = CreateCompilation(text).VerifyDiagnostics( 4447var comp = CreateCompilation(text).VerifyDiagnostics( 4473var comp = CreateCompilation(code).VerifyDiagnostics( 4497var comp = CreateCompilation(code).VerifyDiagnostics( 4518var comp = CreateCompilation(code).VerifyDiagnostics( 4538var comp = CreateCompilation(code).VerifyDiagnostics(); 4555var comp = CreateCompilation(code).VerifyDiagnostics( 4578var comp = CreateCompilation(code).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (59)
178var comp = CreateCompilation(source); 204var comp = CreateCompilation(source); 226var comp = CreateCompilation(source); 252var comp = CreateCompilation(source); 276var comp = CreateCompilation(source); 304var comp = CreateCompilation(source); 329var comp = CreateCompilation(source); 352var comp = CreateCompilation(source); 389var comp = CreateCompilation(source); 425var comp = CreateCompilation(source); 450var comp = CreateCompilation(source); 478var comp = CreateCompilation(source); 497var comp = CreateCompilation(source); 591var comp = CreateCompilation(source); 610var comp = CreateCompilation(source); 1218var comp = CreateCompilation(source); 1250var comp = CreateCompilation(source); 1358var comp = CreateCompilation(source); 1385var comp = CreateCompilation(source); 1449var comp = CreateCompilation(source); 1481var comp = CreateCompilation(source); 1510var comp = CreateCompilation(source); 1553var comp = CreateCompilation(source); 1586var comp = CreateCompilation(source); 1624var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 1639comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Annotations)); 1675var comp = CreateCompilation(source); 1799var comp = CreateCompilation(source); 1878var comp = CreateCompilation(source); 1914var comp = CreateCompilation(source); 1969var comp = CreateCompilation(source); 2036var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2045comp = CreateCompilation(source); 2075var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2180var comp = CreateCompilation(source); 2260var comp = CreateCompilation(source); 2412var comp = CreateCompilation(source); 2445var comp = CreateCompilation(source); 2479var comp = CreateCompilation(source); 2549var comp = CreateCompilation(source); 2590var comp = CreateCompilation(source); 2623var comp = CreateCompilation(source); 2675var comp = CreateCompilation(source); 2719var comp = CreateCompilation(source); 2758var comp = CreateCompilation(source); 2780var comp = CreateCompilation(source); 2799var comp = CreateCompilation(source); 2874var comp = CreateCompilation(source); 2950var comp = CreateCompilation(source); 2985var comp = CreateCompilation(source); 3016var comp = CreateCompilation(source); 3045var comp = CreateCompilation(source); 3100var comp = CreateCompilation(source); 3160var comp = CreateCompilation(source); 3188var comp = CreateCompilation(source); 3221var comp = CreateCompilation(source); 3254var comp = CreateCompilation(source); 3281var comp = CreateCompilation(source); 3319var comp = CreateCompilation(source);
Symbols\RelaxedShiftOperatorTests.cs (10)
47var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 51var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 54var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 59var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 92var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 224var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 312var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp,
Symbols\RequiredMembersTests.cs (61)
23=> CreateCompilation(new[] { source, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }, references, options: options, parseOptions: parseOptions, assemblyName: assemblyName, targetFramework: targetFramework); 511comp = CreateCompilation(derived, references: new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 554var derivedComp = CreateCompilation(derived, references: new[] { baseReference }); 557comp = CreateCompilation(derivedDerived, new[] { baseReference, useMetadataReference ? derivedComp.ToMetadataReference() : derivedComp.EmitToImageReference() }); 599comp = CreateCompilation(derived, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 652var derivedComp = CreateCompilation(derived, new[] { baseReference }); 655comp = CreateCompilation(derivedDerived, new[] { baseReference, useMetadataReference ? derivedComp.ToMetadataReference() : derivedComp.EmitToImageReference() }); 731comp = CreateCompilation(derived, new[] { baseReference }, assemblyName: "derived"); 802comp = CreateCompilation("#pragma warning disable CS0649 // Never assigned" + derived, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 1286var comp = CreateCompilation(@" 1379var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1608comp = CreateCompilation(creation, references: new[] { useMetadataReference ? cComp.ToMetadataReference() : cComp.EmitToImageReference() }); 1635comp = CreateCompilation(creation, references: new[] { useMetadataReference ? cComp.ToMetadataReference() : cComp.EmitToImageReference() }); 1678comp = CreateCompilation(creation, references: new[] { useMetadataReference ? cComp.ToMetadataReference() : cComp.EmitToImageReference() }); 1703comp = CreateCompilation(creation, references: new[] { useMetadataReference ? cComp.ToMetadataReference() : cComp.EmitToImageReference() }); 1798var comp = CreateCompilation(new[] { c }, references: new[] { ilRef }, targetFramework: TargetFramework.Net70); 2026comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2065var derivedComp = CreateCompilation(derived, new[] { baseRef }); 2068comp = CreateCompilation(code, new[] { baseRef, useMetadataReference ? derivedComp.ToMetadataReference() : derivedComp.EmitToImageReference() }); 2120comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2153comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2184comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2217var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2268var derivedComp = CreateCompilation(derived, new[] { baseRef, originalCRef }, targetFramework: TargetFramework.Standard); 2276var comp = CreateCompilation(code, new[] { baseRef, derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2312var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2352comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2387comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2426comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2458comp = CreateCompilation(code, new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 2540var comp = CreateCompilation(code, new[] { baseRef }, targetFramework: TargetFramework.Net70); 2569var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }); 2600var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }); 2735var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2766var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2888var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3014var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3239var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3284var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3328var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3369var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3413var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3546var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3680var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3811var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 4058var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute }); 4082var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute }); 4125var comp = CreateCompilation(new[] { code, RequiredMemberAttribute, CompilerFeatureRequiredAttribute }); 4664comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 4709comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 4754comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 4798comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 4844comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 5220comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 5366comp = CreateCompilation(derived, new[] { baseComp.EmitToImageReference() }); 5896comp = CreateCompilation(code, references: new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 5975comp = CreateCompilation(code, references: new[] { useMetadataReference ? baseComp.ToMetadataReference() : baseComp.EmitToImageReference() }); 6296var script = CreateCompilation(""" 6825var comp = CreateCompilation(new[] { """ 6898var comp = CreateCompilation(new[] { """ 7197CreateCompilation(source, targetFramework: TargetFramework.NetStandard20).VerifyEmitDiagnostics(
Symbols\Retargeting\NoPia.cs (55)
649var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 654var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 950var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1", targetFramework: TargetFramework.Standard); 953var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 958var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 1258var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 1283var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1308var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1313var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1335var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3"); 1571var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1586var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1590var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1624var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1639var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1643var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1668var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1681var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1685var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1718var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1736var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1740var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1887var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 1934var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1937var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 2015var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2041var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2046var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2061compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2076compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2091compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2140var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2166var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2171var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2186compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2201compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2216compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2265var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2291var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2296var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2311compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2326compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2341compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2381var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2403var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 2408var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2423compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2473var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2499var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2504var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2519compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2534compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2549compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2586var pia1 = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 2602var multiModule = CreateCompilation("", options: TestOptions.ReleaseDll,
Symbols\Retargeting\RetargetCustomAttributes.cs (7)
338var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 346var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugDll); 347var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference() }, options: TestOptions.DebugDll); 368var comp1_1 = CreateCompilation(source1_1, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 376var comp2 = CreateCompilation(source2, references: new[] { comp1_1.ToMetadataReference() }, options: TestOptions.DebugDll); 387var comp1_2 = CreateCompilation(source1_2, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 389var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference(), comp1_2.ToMetadataReference() }, options: TestOptions.DebugDll);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (3)
451var compilation1 = CreateCompilation(source1, references: new[] { ref1 }); 459var compilation2 = CreateCompilation(source2, references: new[] { compilation1.ToMetadataReference(), ref1, CreateEmptyCompilation("").ToMetadataReference() }); 461var compilation3 = CreateCompilation("", references: new[] { compilation1.ToMetadataReference(), compilation2.ToMetadataReference() });
Symbols\Retargeting\RetargetingTests.cs (16)
37var compilation = CreateCompilation(source); 108var compilation = CreateCompilation(source); 141var compilation = CreateCompilation(source); 175var compilation = CreateCompilation(source); 211var compilation = CreateCompilation(source); 242var compilation1_v1 = CreateCompilation(source1, assemblyName: "assembly1"); 243var compilation1_v2 = CreateCompilation(source1, assemblyName: "assembly1"); 405var comp = CreateCompilation(source); 462var comp = CreateCompilation(source); 483var comp = CreateCompilation(source); 544var comp = CreateCompilation(source); 603var comp = CreateCompilation(source); 666var compilation = CreateCompilation(code).VerifyDiagnostics(); 940var consistent = CreateCompilation("public class C {}", assemblyName: "Con", targetFramework: TargetFramework.Standard); 971var originalComp = CreateCompilation($@" 979var retargetedComp = CreateCompilation("", references: new[] { originalComp.ToMetadataReference(), retargeted2Ref, consistentRef, ilRef },
Symbols\Source\AccessTests.cs (7)
28var comp = CreateCompilation(tree); 45var comp = CreateCompilation(tree); 71var comp = CreateCompilation(tree); 94var comp = CreateCompilation(tree); 123var comp = CreateCompilation(tree); 145var comp = CreateCompilation(tree); 168var comp = CreateCompilation(tree);
Symbols\Source\BaseClassTests.cs (66)
77var comp = CreateCompilation(text, new[] { C1, C2 }); 156var comp = CreateCompilation(text); 179var comp = CreateCompilation(text); 203var comp = CreateCompilation(text); 337var comp = CreateCompilation(text); 365var comp = CreateCompilation(text); 392var comp = CreateCompilation(text); 433var comp = CreateCompilation(text); 697CreateCompilation(text).VerifyDiagnostics( 710CreateCompilation(text).VerifyDiagnostics( 727CreateCompilation(text).VerifyDiagnostics( 742CreateCompilation(text).VerifyDiagnostics(); 755CreateCompilation(text).VerifyDiagnostics(); 771CreateCompilation(text).VerifyDiagnostics(); 787CreateCompilation(text).VerifyDiagnostics( 806CreateCompilation(text).VerifyDiagnostics(); 824CreateCompilation(text).VerifyDiagnostics(); 839CreateCompilation(text).VerifyDiagnostics( 859CreateCompilation(text).VerifyDiagnostics(); 880CreateCompilation(text).VerifyDiagnostics(); 897CreateCompilation(text).VerifyDiagnostics( 916CreateCompilation(text).VerifyDiagnostics( 945CreateCompilation(text).VerifyDiagnostics( 976CreateCompilation(text).VerifyDiagnostics( 993var comp = CreateCompilation(text, new[] { C1, C2 }); 1013var comp = CreateCompilation(text, new[] { ClassAv1 }, assemblyName: "ClassB"); 1031var comp2 = CreateCompilation(text, new MetadataReference[] { ClassAv2, new CSharpCompilationReference(comp) }); 1064var comp = CreateCompilation(text, new[] 1087var comp2 = CreateCompilation(text, new MetadataReference[] 1127var comp = CreateCompilation(text, new[] { ClassAv2 }, assemblyName: "ClassB"); 1156var comp2 = CreateCompilation(text, new MetadataReference[] 1180var comp = CreateCompilation(text, new MetadataReference[] 1213var comp2 = CreateCompilation(text, new MetadataReference[] 1409var comp = CreateCompilation(tree); 1425var comp = CreateCompilation(tree); 1439var comp = CreateCompilation(Parse(text)); 1464var comp = CreateCompilation(Parse(text)); 1495var comp = CreateCompilation(Parse(text)); 1521var comp = CreateCompilation(text); 1537var comp = CreateCompilation(text); 1560var comp = CreateCompilation(text); 1613CSharpCompilation c1 = CreateCompilation(textA); 1621c2 = CreateCompilation(textB, new[] { MetadataReference.CreateFromImage(metadata1) }); 1648var compilation1 = CreateCompilation(source1, assemblyName: "One"); 1840var compilation1 = CreateCompilation(source1, assemblyName: "One"); 1872var comp = CreateCompilation(Parse(text)); 1894var metadataRef = CreateCompilation(source).EmitToImageReference(embedInteropTypes: true); 1896var comp = CreateCompilation("", new[] { metadataRef }); 1915var compilation = CreateCompilation(source); 1930var compilation = CreateCompilation(source); 1947var compilation = CreateCompilation(source); 1970var compilation = CreateCompilation(source); 2006var compilation = CreateCompilation(source); 2059var comp = CreateCompilation(text); 2093var comp = CreateCompilation(text); 2131var comp = CreateCompilation(text); 2164var comp = CreateCompilation(text); 2197var comp = CreateCompilation(text); 2230var comp = CreateCompilation(text); 2256var comp = CreateCompilation(text); 2281var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 2318var comp = CreateCompilation(text, parseOptions: TestOptions.Regular12); 2339comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 2369var comp = CreateCompilation(source); 2387var comp = CreateCompilation(source); 2404var comp = CreateCompilation(source);
Symbols\Source\ClsComplianceTests.cs (139)
51CreateCompilation(source).VerifyDiagnostics( 124CreateCompilation(source).VerifyDiagnostics( 208CreateCompilation(source).VerifyDiagnostics( 282CreateCompilation(source).VerifyDiagnostics( 331CreateCompilation(source).VerifyDiagnostics(); 363CreateCompilation(source).VerifyDiagnostics( 397CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 405CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 442CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 495var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", parseOptions: TestOptions.Regular11).EmitToImageReference(); 496var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", parseOptions: TestOptions.Regular11).EmitToImageReference(); 497var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", parseOptions: TestOptions.Regular11).EmitToImageReference(); 499CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 561var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 562var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 563var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 565CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 582lib1 = CreateCompilation(libSource1, assemblyName: "lib1").EmitToImageReference(); 583lib2 = CreateCompilation(libSource2, assemblyName: "lib2").EmitToImageReference(); 584lib3 = CreateCompilation(libSource3, assemblyName: "lib3").EmitToImageReference(); 586CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll).VerifyDiagnostics( 689CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 736CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 762CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 810CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 840CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 849CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 879CreateCompilation(source).VerifyDiagnostics( 928CreateCompilation(source).VerifyDiagnostics( 963CreateCompilation(source).VerifyDiagnostics( 1024CreateCompilation(source).VerifyDiagnostics( 1068CreateCompilation(source).VerifyDiagnostics( 1122CreateCompilation(source).VerifyDiagnostics( 1181CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1228CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1271CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1322CreateCompilation(source).VerifyDiagnostics( 1364CreateCompilation(source, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions)).VerifyDiagnostics( 1398CreateCompilation(source).VerifyDiagnostics( 1440CreateCompilation(source).VerifyDiagnostics( 1498CreateCompilation(source).VerifyDiagnostics( 1558CreateCompilation(source).VerifyDiagnostics( 1622CreateCompilation(source).VerifyDiagnostics( 1697CreateCompilation(source).VerifyDiagnostics( 1717CreateCompilation(source).VerifyDiagnostics( 1764CreateCompilation(source).VerifyDiagnostics( 1864CreateCompilation(source).VerifyDiagnostics( 1971CreateCompilation(source).VerifyDiagnostics( 2008CreateCompilation(source).VerifyDiagnostics( 2067CreateCompilation(source).VerifyDiagnostics( 2129CreateCompilation(source).VerifyDiagnostics(); 2142CreateCompilation(source).VerifyDiagnostics( 2161CreateCompilation(source).VerifyDiagnostics( 2182CreateCompilation(source).VerifyDiagnostics( 2203CreateCompilation(source).VerifyDiagnostics( 2239CreateCompilation(source).VerifyDiagnostics( 2274CreateCompilation(source).VerifyDiagnostics( 2307CreateCompilation(source).VerifyDiagnostics(); 2325CreateCompilation(source).VerifyDiagnostics( 2334CreateCompilation("[module:System.CLSCompliant(true)]").VerifyDiagnostics( 2339CreateCompilation("[module:System.CLSCompliant(false)]").VerifyDiagnostics( 2353CreateCompilation(string.Format(sourceTemplate, "true", "true")).VerifyDiagnostics(); 2354CreateCompilation(string.Format(sourceTemplate, "false", "false")).VerifyDiagnostics(); 2356CreateCompilation(string.Format(sourceTemplate, "true", "false")).VerifyDiagnostics( 2360CreateCompilation(string.Format(sourceTemplate, "false", "true")).VerifyDiagnostics(); // No warnings, since false. 2366var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2367var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2368var noneModuleRef = CreateCompilation("", options: TestOptions.ReleaseModule, assemblyName: "none").EmitToImageReference(); 2371CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { trueModuleRef }).VerifyDiagnostics(); 2372CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { falseModuleRef }).VerifyDiagnostics( 2379CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { noneModuleRef }).VerifyDiagnostics( 2384CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { trueModuleRef }).VerifyDiagnostics( 2389CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { falseModuleRef }).VerifyDiagnostics(); //CONSIDER: dev11 reports WRN_CLS_NotOnModules (don't know why) 2390CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { noneModuleRef }).VerifyDiagnostics(); 2393CreateCompilation("", new[] { trueModuleRef }).VerifyDiagnostics(); 2394CreateCompilation("", new[] { falseModuleRef }).VerifyDiagnostics(); 2395CreateCompilation("", new[] { noneModuleRef }).VerifyDiagnostics(); 2401var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2402var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2403var noneModuleRef = CreateCompilation("", options: TestOptions.ReleaseModule, assemblyName: "none").EmitToImageReference(); 2406CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { trueModuleRef }).VerifyDiagnostics(); 2407CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { falseModuleRef }).VerifyDiagnostics( 2412CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { noneModuleRef }).VerifyDiagnostics( 2417CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { trueModuleRef }).VerifyDiagnostics( 2422CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { falseModuleRef }).VerifyDiagnostics(); //CONSIDER: dev11 reports WRN_CLS_NotOnModules (don't know why) 2423CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { noneModuleRef }).VerifyDiagnostics(); 2426CreateCompilation("", new[] { trueModuleRef }).VerifyDiagnostics(); 2427CreateCompilation("", new[] { falseModuleRef }).VerifyDiagnostics(); 2428CreateCompilation("", new[] { noneModuleRef }).VerifyDiagnostics(); 2434var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2435var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2437CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { trueModuleRef, falseModuleRef }).VerifyDiagnostics( 2444CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { trueModuleRef, falseModuleRef }).VerifyDiagnostics( 2449CreateCompilation("", new[] { trueModuleRef, falseModuleRef }).VerifyDiagnostics( 2495CreateCompilation(source).VerifyDiagnostics( 2542CreateCompilation(source).VerifyDiagnostics( 2598CreateCompilation(source).VerifyDiagnostics( 2652CreateCompilation(source).VerifyDiagnostics( 2695CreateCompilation(source).VerifyDiagnostics( 2733CreateCompilation(source).VerifyDiagnostics( 2763CreateCompilation(source).VerifyDiagnostics(); 2807CreateCompilation(source).VerifyDiagnostics( 2862CreateCompilation(source).VerifyDiagnostics( 2896CreateCompilation(source).VerifyDiagnostics(); 2967CreateCompilation(string.Format(sourceTemplate, "")).VerifyDiagnostics( 2973CreateCompilation(string.Format(sourceTemplate, "void M();")).VerifyDiagnostics( 2980CreateCompilation(string.Format(sourceTemplate, "void m();")).VerifyDiagnostics( 2996CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3017CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3038CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3066CreateCompilation(source).VerifyDiagnostics(); 3090CreateCompilation(source).VerifyDiagnostics(); 3108CreateCompilation(source).VerifyDiagnostics(); 3130var moduleRef = CreateCompilation(moduleSource, assemblyName: "module").EmitToImageReference(expectedWarnings: new[] 3138CreateCompilation(source, new[] { moduleRef }).VerifyDiagnostics(); 3218CreateCompilation(source).VerifyDiagnostics( 3244CreateCompilation(source).VerifyDiagnostics( 3270CreateCompilation(source).VerifyDiagnostics( 3288var comp = CreateCompilation(source); 3366CreateCompilation(source).VerifyDiagnostics( 3420CreateCompilation(source).VerifyDiagnostics( 3459var libRef = CreateCompilation(libSource).EmitToImageReference(); 3460var comp = CreateCompilation(source, new[] { libRef }); 3499var comp = CreateCompilation(new[] { tree1, tree2 }); 3599CreateCompilation(source).VerifyDiagnostics( 3608CreateCompilation("[assembly:System.CLSCompliant(true)]" + source).VerifyDiagnostics( 3617CreateCompilation("[assembly:System.CLSCompliant(false)]" + source).VerifyDiagnostics(); 3646var libRef = CreateCompilation(libSource).EmitToImageReference(); 3647CreateCompilation(source, new[] { libRef }).VerifyDiagnostics( 3709CreateCompilation(source, new[] { libRef }).VerifyDiagnostics( 3728CreateCompilation(source).VerifyDiagnostics( 3756var libRef = CreateCompilation(libSource, assemblyName: "lib").EmitToImageReference(); 3776CreateCompilation(source).VerifyDiagnostics( 3800CreateCompilation(source).VerifyDiagnostics( 3829CreateCompilation(source).VerifyDiagnostics( 3851CreateCompilation(source).VerifyDiagnostics( 3866var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseModule); 3879var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }, TestOptions.ReleaseDll.WithConcurrentBuild(false)); 3918CreateCompilation(source).VerifyDiagnostics();
Symbols\Source\CompletionTests.cs (1)
72var comp = CreateCompilation(text, skipUsesIsNullable: true);
Symbols\Source\CustomModifierCopyTests.cs (15)
49var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 92var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 143var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 192var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 254var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 319var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 355var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 409var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 518var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 587var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 634var comp = CreateCompilation(text); 690var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 723var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 764var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 805var comp = CreateCompilation(text);
Symbols\Source\DeclaringSyntaxNodeTests.cs (13)
188var comp = (Compilation)CreateCompilation(text); 232var comp = (Compilation)CreateCompilation(text); 258var comp = CreateCompilation(tree); 301var comp = CreateCompilation(tree); 407var comp = (Compilation)CreateCompilation(text); 447var comp = (Compilation)CreateCompilation(text); 514var comp = (Compilation)CreateCompilation(text); 603var comp = CreateCompilation(tree); 638var comp = CreateCompilation(tree); 663var comp = CreateCompilation(tree); 689var comp = CreateCompilation(tree); 718var comp = CreateCompilation(tree); 736var comp0 = CreateCompilation(new[] { source0, source1, source2, source3 });
Symbols\Source\DelegateTests.cs (25)
70var comp = CreateCompilation(text); 87var comp = CreateCompilation(text); 105var comp = CreateCompilation(text); 126var comp = CreateCompilation(text); 154var comp = CreateCompilation(text); 201var comp = CreateCompilation(text); 227var comp = CreateCompilation(Parse(text)); 256CreateCompilation(text).VerifyDiagnostics(); 300CreateCompilation(text).VerifyDiagnostics( 321CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 325CreateCompilation(text).VerifyDiagnostics(); 335var comp = CreateCompilation(text); 379CreateCompilation(text).VerifyDiagnostics(); 389var comp = CreateCompilation(text); 420var comp = CreateCompilation(text); 451var comp = CreateCompilation(text); 485var comp = CreateCompilation(text); 598CreateCompilation(text).VerifyDiagnostics( 701CreateCompilation(source).VerifyDiagnostics(); 714CreateCompilation(source).VerifyDiagnostics( 732var comp = CreateCompilation(source).VerifyDiagnostics(); 755var comp = CreateCompilation(source); 845CreateCompilation("partial public delegate void M();").VerifyDiagnostics( 857CreateCompilation("public partial delegate void M();").VerifyDiagnostics( 866CreateCompilation("public partial delegate void M();").VerifyDiagnostics(
Symbols\Source\EnumTests.cs (31)
80var comp = CreateCompilation(text); 97comp = CreateCompilation(text); 152var comp = CreateCompilation(text); 162var comp = CreateCompilation(text); 172var comp = CreateCompilation(text); 184var comp = CreateCompilation(text); 204var comp = CreateCompilation(text); 215var comp = CreateCompilation(text); 235var comp = CreateCompilation(text); 270var comp = CreateCompilation(text); 289var comp1 = CreateCompilation(text); 327var comp = CreateCompilation(text); 397var comp = CreateCompilation(source); 426comp = CreateCompilation(source); 469var comp = CreateCompilation(text); 489var comp = CreateCompilation(text); 568var comp = CreateCompilation(source).VerifyDiagnostics( 601var comp = CreateCompilation(source).VerifyDiagnostics( 693var comp = CreateCompilation(text); 709var comp = CreateCompilation(text); 722var comp = CreateCompilation(text); 730comp = CreateCompilation(text); 750var comp = CreateCompilation(text); 781var comp = CreateCompilation(text); 806CreateCompilation(text).VerifyDiagnostics(); // No Errors 822CreateCompilation(text).VerifyDiagnostics( 857CreateCompilation(text).VerifyDiagnostics( 879CreateCompilation(text).VerifyDiagnostics(); // No Errors 903CreateCompilation(text).VerifyDiagnostics(); // No Errors 913CreateCompilation(text).VerifyDiagnostics( 992var comp = CreateCompilation(text);
Symbols\Source\EventTests.cs (48)
40var comp = CreateCompilation(text); 58var comp = CreateCompilation(Parse(text)); 77var comp = CreateCompilation(text); 116var comp = CreateCompilation(text); 154var comp = CreateCompilation(text); 189var comp = CreateCompilation(text); 234CreateCompilation(text).VerifyDiagnostics(); 323var comp = CreateCompilation(text); 415var libComp = CreateCompilation(source: libText).VerifyDiagnostics(); 460var libComp = CreateCompilation(source: libText); 506var libComp = CreateCompilation(libText); 535var libComp = CreateCompilation(source: libText); 594var libComp = CreateCompilation(source: libText); 626var libComp = CreateCompilation(source: libText); 827var compilation = CreateCompilation(source).VerifyDiagnostics( 843var compilation = CreateCompilation(source).VerifyDiagnostics( 868CreateCompilation(text).VerifyDiagnostics( 909CreateCompilation(text).VerifyDiagnostics( 977CreateCompilation(text).VerifyDiagnostics( 1036CreateCompilation(text).VerifyDiagnostics( 1182CreateCompilation(text).VerifyDiagnostics( 1246CreateCompilation(text).VerifyDiagnostics( 1307CreateCompilation(text).VerifyDiagnostics( 1348CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1356CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1387CreateCompilation(source).VerifyDiagnostics( 1427CreateCompilation(source).VerifyDiagnostics( 1458CreateCompilation(text).VerifyDiagnostics(expected).VerifyEmitDiagnostics(expected); 1460CreateCompilation(text).VerifyEmitDiagnostics(expected); 1475CreateCompilation(text).VerifyDiagnostics( 1903CreateCompilation(cSharpSource).VerifyDiagnostics(); 1928CreateCompilation(cSharpSource).VerifyDiagnostics(); 1946CreateCompilation(cSharpSource).VerifyDiagnostics( 1976CreateCompilation(cSharpSource).VerifyDiagnostics( 2043CreateCompilation(cSharpSource).VerifyDiagnostics( 2066CreateCompilation(source).VerifyDiagnostics( 2117var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2127CreateCompilation("event this").VerifyDiagnostics( 2141CreateCompilation("event System.Action E<T>").VerifyDiagnostics( 2155CreateCompilation("event").VerifyDiagnostics( 2169CreateCompilation("event System.Action ").VerifyDiagnostics( 2183CreateCompilation("event System.Action System.IFormattable.").VerifyDiagnostics( 2252var comp = CreateCompilation(source, new[] { CompileIL(il) }); 2334var comp = CreateCompilation(source, new[] { CompileIL(il) }); 2377var comp = CreateCompilation(source); 2411var comp = CreateCompilation(source); 2457CreateCompilation(source).VerifyDiagnostics( 2483CreateCompilation(text).VerifyDiagnostics(
Symbols\Source\ExpressionBodiedMethodTests.cs (2)
59var comp = CreateCompilation(@" 87var comp = CreateCompilation(@"
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
22var comp = CreateCompilation(@" 48var comp = CreateCompilation(@"
Symbols\Source\ExternAliasTests.cs (20)
37var comp = CreateCompilation(src, assemblyName: "Goo1", options: TestOptions.ReleaseDll); 62var comp = CreateCompilation(src, assemblyName: "Goo2", options: TestOptions.ReleaseDll); 87var comp = CreateCompilation(src); 139var comp = CreateCompilation(src); 159var comp = CreateCompilation(src); 187var comp = CreateCompilation(src); 214var comp = CreateCompilation(src, assemblyName: "Baz.dll", options: TestOptions.ReleaseDll); 229comp = CreateCompilation(src, assemblyName: "Bar.dll", options: TestOptions.ReleaseDll); 243comp = CreateCompilation(src); 265var comp = CreateCompilation(src); 289var comp = CreateCompilation(src); 316var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 330comp = CreateCompilation(src); 351var comp = CreateCompilation(tree); 384var comp = CreateCompilation(text).AddReferences(Goo1); 395var comp1 = CreateCompilation("public class C { }", assemblyName: "A1"); 398var comp2 = CreateCompilation("public class D { }", assemblyName: "A2"); 402var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), new[] { ref1, ref2 }, assemblyName: "A3.dll"); 428var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), assemblyName: "A3.dll"); 471var libRef = new CSharpCompilationReference(CreateCompilation(libSource, assemblyName: "lib"), aliases: ImmutableArray.Create("A"));
Symbols\Source\FieldTests.cs (15)
28CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 44var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 88var comp = CreateCompilation(text); 175var comp = CreateCompilation(text); 199var comp = CreateCompilation(text); 234var comp = CreateCompilation(Parse(text)); 254var comp = CreateCompilation(Parse(text)); 407CreateCompilation(source).VerifyDiagnostics( 464var compilation = CreateCompilation(source); 495var comp = CreateCompilation(text); 515var comp = CreateCompilation(text); 532var compilation = CreateCompilation(source).VerifyDiagnostics(); 545var compilation = CreateCompilation(source).VerifyDiagnostics(); 553var comp = CreateCompilation(@" 574var comp = CreateCompilation(@"
Symbols\Source\FileModifierTests.cs (146)
35var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 41comp = CreateCompilation(source); 55var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 64comp = CreateCompilation(source); 81var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 88comp = CreateCompilation(source); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 126comp = CreateCompilation(source); 148var comp = CreateCompilation(source); 169var comp = CreateCompilation(source); 189var comp = CreateCompilation(source); 407var comp = CreateCompilation(source); 467var comp = CreateCompilation(new[] { source, source }); 488var comp = CreateCompilation(new[] { source, source }); 509var comp = CreateCompilation(new[] { source, source }); 540var comp = CreateCompilation(new[] { source1, source2 }); 546comp = CreateCompilation(new[] { source2, source1 }); 564var comp = CreateCompilation(new[] { source, source }); 595var comp = CreateCompilation(new[] { source1, source2 }); 601comp = CreateCompilation(new[] { source2, source1 }); 619var comp = CreateCompilation(new[] { source, source }); 650var comp = CreateCompilation(new[] { source1, source2 }); 656comp = CreateCompilation(new[] { source2, source1 }); 674var comp = CreateCompilation(new[] { source, source }); 709var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 835var comp1 = CreateCompilation(testSource1, options: options, assemblyName: "filetypes"); 836var comp2 = CreateCompilation(testSource2, options: options, assemblyName: "filetypes"); 842var comp3 = CreateCompilation(testSource2, options: options.WithSourceReferenceResolver(resolver), assemblyName: "filetypes"); 877var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 880comp = CreateCompilation(new[] { source2, source1 }, assemblyName: "comp"); 921var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 924comp = CreateCompilation(new[] { source2, source1 }, assemblyName: "comp"); 959var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 962comp = CreateCompilation(new[] { source2, source1 }, assemblyName: "comp"); 993var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 996comp = CreateCompilation(new[] { source2, source1 }, assemblyName: "comp"); 1033var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file1.cs") }); 1086var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: $"path/to/My{badChar}File.cs", encoding: Encoding.Default)); 1113var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "\uD800.cs")); 1278var comp = CreateCompilation(new[] { source1 + main, source2 }); 1281comp = CreateCompilation(new[] { source1, source2 + main }); 1529var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 1550comp = CreateCompilation(new[] { (source2, "file2.cs"), (source1, "file1.cs") }); 1604var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 1624comp = CreateCompilation(new[] { (source2, "file2.cs"), (source1, "file1.cs") }); 1678var compilation = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (source3, "file3.cs") }); 1728var compilation = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (source3, "file3.cs") }); 1785var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }); 1791comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2 + main, "file2.cs") }); 1857var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, options: TestOptions.DebugExe); 1865comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2 + main, "file2.cs") }, options: TestOptions.DebugExe); 2032var comp = CreateCompilation(source); 2049var comp = CreateCompilation(source); 2067var comp = CreateCompilation((source, "file1.cs")); 2088var comp = CreateCompilation(source); 2113var comp = CreateCompilation(source); 2138var comp = CreateCompilation(source); 2166var comp = CreateCompilation(source); 2207var comp = CreateCompilation(source); 2264var comp = CreateCompilation(source); 2292var comp = CreateCompilation(source); 2317var comp = CreateCompilation(source); 2346var comp = CreateCompilation(source); 2370var comp = CreateCompilation(source); 2391var comp = CreateCompilation(source); 2436var comp = CreateCompilation(source); 2481var comp = CreateCompilation(source); 2505var comp = CreateCompilation(source); 2525var comp = CreateCompilation(source); 2551var comp = CreateCompilation(source); 2656var comp = CreateCompilation(source); 2681var comp = CreateCompilation((source, "Program.cs")); 2714var comp = CreateCompilation(source); 2732var comp = CreateCompilation(source); 2753var comp = CreateCompilation(source); 2782var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 2806var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 2836var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 2866var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 2896var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2935var comp = CreateCompilation(source); 2962var comp = CreateCompilation(source); 2995var comp = CreateCompilation(source); 3010var comp = CreateCompilation(source); 3034var comp = CreateCompilation(source); 3055var comp = CreateCompilation(source); 3078var comp = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }); 3110var comp = CreateCompilation(source); 3130var comp = CreateCompilation(source); 3189var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 3219var comp = CreateCompilation(source); 3257var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 3325var compilation = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }, options: TestOptions.DebugExe.WithUsings("NS")); 3354var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3393var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3428var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3602var compilation = CreateCompilation(new[] { (source, "file.cs"), (main, "file2.cs") }); 3637var compilation = CreateCompilation(source); 3703var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3769var compilation = CreateCompilation(source); 3810var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3880var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3970var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4011var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4035var comp = CreateCompilation(source); 4059var comp = CreateCompilation(new[] 4115var comp = CreateCompilation(source1); 4137var comp = CreateCompilation(source1); 4153var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4172var comp = CreateCompilation(source1); 4184var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4207var comp = CreateCompilation(source1); 4235var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4249var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4272var ref1 = CreateCompilation(source1, assemblyName: "ref1"); 4273var ref2 = CreateCompilation(source1, assemblyName: "ref2"); 4275var comp = CreateCompilation("", references: new[] 4304var comp = CreateCompilation(source1); 4330var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "path/to/SomeFile.cs")); 4355var comp = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40); 4376var comp2 = CreateCompilation(source2, references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib461); 4404var comp = CreateCompilation(source); 4419var referencingMetadataComp = CreateCompilation("", new[] { comp.ToMetadataReference() }); 4428var referencingImageComp = CreateCompilation("", new[] { comp.EmitToImageReference() }); 4449var comp = CreateCompilation(source); 4472var comp = CreateCompilation(source); 4502var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4522var comp1 = CreateCompilation( 4544var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4561var comp1 = CreateCompilation( 4590var ex = Assert.Throws<ArgumentException>(() => CreateCompilation(new[] { tree, tree })); 4666var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4705var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4736var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4908var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4947var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4998var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 5072var comp = CreateCompilation(new[] { (source1, "File1.cs"), (source2, "File2.cs") }); 5075comp = CreateCompilation(source1 + source2); 5081comp = CreateCompilation(source2 + source1); 5107var comp1 = CreateCompilation(new[] { (source1, "File1.cs") }); 5110var comp2 = CreateCompilation(new[] { (source2, "File2.cs") }, references: new[] { useMetadataReference ? comp1.ToMetadataReference() : comp1.EmitToImageReference() }); 5113comp2 = CreateCompilation(new[] { (source2, "File2.cs") }); 5116comp1 = CreateCompilation(new[] { (source1, "File1.cs") }, references: new[] { useMetadataReference ? comp2.ToMetadataReference() : comp2.EmitToImageReference() }); 5155var comp = CreateCompilation(new[] { (source1, "File1.cs"), (source2, "File2.cs") });
Symbols\Source\LocalTests.cs (5)
32var compilation = CreateCompilation(sourceCode); 86var compilation = CreateCompilation(sourceCode); 111var compilation = CreateCompilation(sourceCode); 136var compilation = CreateCompilation(sourceCode); 159var compilation = CreateCompilation(sourceCode);
Symbols\Source\MethodTests.cs (60)
33var comp = CreateCompilation(text); 51var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 68var comp = CreateCompilation(source); 113var comp = CreateCompilation(text); 138var comp = CreateCompilation(text); 165var comp = CreateCompilation(text); 187var comp = CreateCompilation(text); 209var comp = CreateCompilation(text); 228var comp = CreateCompilation(text); 256var comp = CreateCompilation(text); 281var comp = CreateCompilation(text); 302var comp = CreateCompilation(text); 324var comp = CreateCompilation(text); 340var comp = CreateCompilation(text); 357var comp = CreateCompilation(text); 425var comp = CreateCompilation(text); 444var comp = CreateCompilation(text); 508var comp = CreateCompilation(new[] { text1, text2 }); 954var comp = CreateCompilation(new[] { text, text1, text2 }); 1044var comp1 = CreateCompilation(text); 1047var comp2 = CreateCompilation(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 1053var comp = CreateCompilation(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 1162var comp = CreateCompilation(new[] { text, text1, text2 }); 1256var comp = CreateCompilation(text); 1324var comp = CreateCompilation(text); 1352var comp = CreateCompilation(text); 1426var comp = CreateCompilation(code); 1461var comp = CreateCompilation(text); 1499var comp = CreateCompilation(text); 1543var comp = CreateCompilation(text); 1564var comp = CreateCompilation(text); 1592var comp = CreateCompilation(text); 1617var comp = CreateCompilation(Parse(text)); 1662var comp = CreateCompilation(Parse(text)); 1705var comp = CreateCompilation(Parse(text)); 1801var comp = CreateCompilation(Parse(text)); 1854var comp = CreateCompilation(Parse(text)); 1899var comp = CreateCompilation(text); 1919var comp = CreateCompilation(text); 1954var comp = CreateCompilation(text); 1998var comp = CreateCompilation(text); 2037var comp = CreateCompilation(text); 2065var comp = CreateCompilation(source); 2086var comp = CreateCompilation(source); 2113CreateCompilation(source).VerifyDiagnostics( 2129var comp = CreateCompilation(source); 2154var comp = CreateCompilation(source); 2310var compilation = CreateCompilation(source).VerifyDiagnostics(); 2323var compilation = CreateCompilation(source).VerifyDiagnostics(); 2336var compilation = CreateCompilation(source).VerifyDiagnostics(); 2351var compilation = CreateCompilation(source).VerifyDiagnostics(); 2372var compilation = CreateCompilation(source).VerifyDiagnostics(); 2387var compilation = CreateCompilation(source).VerifyDiagnostics( 2405var comp = CreateCompilation(source); 2421var comp = CreateCompilation(source); 2440var comp = CreateCompilation(source); 2459var comp = CreateCompilation(source); 2484var comp = CreateCompilation(source); 2534var comp = CreateCompilation(source); 2565var comp = CreateCompilation(source);
Symbols\Source\ModifierTests.cs (11)
47var comp = CreateCompilation(text); 149var comp = CreateCompilation(source); 178CreateCompilation(@" 188CreateCompilation(@" 201CreateCompilation(@" 214CreateCompilation(@" 229CreateCompilation(@" 241CreateCompilation(@" 273CreateCompilation(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 307CreateCompilation(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 328CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7)).VerifyDiagnostics(
Symbols\Source\NamedTypeTests.cs (14)
26var compilation = CreateCompilation($"[System.CLSCompliant(false)] {type}"); 35var compilation = CreateCompilation($"[System.Runtime.InteropServices.TypeIdentifierAttribute] {type}"); 44var compilation = CreateCompilation($"[System.Runtime.InteropServices.TypeIdentifier] {type}"); 53var compilation = CreateCompilation(@$" 65var compilation = CreateCompilation(@$" 77var compilation = CreateCompilation(@$" 89var compilation = CreateCompilation(@$" 101var compilation = CreateCompilation(@$" 113var compilation = CreateCompilation(new[] 127var compilation = CreateCompilation(new[] 141var compilation = CreateCompilation(new[] 155var compilation = CreateCompilation(new[] 173var compilation = CreateCompilation(new[] 191var compilation = CreateCompilation(new[]
Symbols\Source\NullablePublicAPITests.cs (121)
42var comp = CreateCompilation(source, options: WithNullableEnable()); 82var comp = CreateCompilation(source, options: WithNullableEnable()); 427var comp1 = CreateCompilation(source, options: WithNullableEnable()); 434var comp2 = CreateCompilation(source, options: WithNullableDisable()); 441var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 464var comp4 = CreateCompilation("", references: new[] { comp1Emit }, options: WithNullableEnable()); 469var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options: WithNullableDisable()); 473var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 938var comp = CreateCompilation(source); 995var comp = CreateCompilation(source); 1035var comp1 = CreateCompilation(source, options: WithNullableEnable()); 1039var comp2 = CreateCompilation(source, options: WithNullableDisable()); 1043var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 1050var comp4 = CreateCompilation("", references: new[] { comp1Emit }, options: WithNullableEnable()); 1055var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options: WithNullableDisable()); 1059var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 1089var comp = CreateCompilation(source, options: WithNullableEnable()); 1117var comp = CreateCompilation(source, options: WithNullableEnable()); 1141var comp = CreateCompilation(source, options: WithNullableEnable()); 1201var comp = (Compilation)CreateCompilation(source, options: WithNullableEnable()); 1253var comp = CreateCompilation(source, options: WithNullableEnable()); 1325var comp = CreateCompilation(source); 1354var comp = CreateCompilation(source, options: WithNullableEnable()); 1434var comp = CreateCompilation(source, options: WithNullableEnable()); 1466var comp = CreateCompilation(source); 1506var comp = CreateCompilation(source, options: WithNullableEnable()); 1559var comp = CreateCompilation(source, options: WithNullableEnable()); 1613var comp = CreateCompilation(source, options: WithNullableEnable()); 1653var comp = CreateCompilation(source, options: WithNullableEnable()); 1696var comp = CreateCompilation(source, options: WithNullableEnable()); 1739var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: featureFlagOff); 1750comp = CreateCompilation(source, options: WithNullableEnable()); 1817var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 1844var comp = CreateCompilation(source, options: WithNullableEnable()); 1887var comp = CreateCompilation(source, options: WithNullableEnable()); 1929var comp = CreateCompilation(source, options: WithNullableEnable()); 1979var comp = CreateCompilation(source, options: WithNullableEnable()); 2040var comp = CreateCompilation(source, options: WithNullableEnable()); 2083var comp = CreateCompilation(source, options: WithNullableEnable()); 2126var comp = CreateCompilation(source, options: WithNullableEnable()); 2208var comp = CreateCompilation(source, options: WithNullableEnable().WithAllowUnsafe(true)); 2238var comp = CreateCompilation(source, options: WithNullableEnable()); 2276var comp = CreateCompilation(source, options: WithNullableEnable()); 2320var comp = CreateCompilation(source, options: WithNullableEnable()); 2361var comp = CreateCompilation(source, options: WithNullableEnable()); 2406var comp = CreateCompilation(source, options: WithNullableEnable()); 2446var comp = CreateCompilation(source, options: WithNullableEnable()); 2494var comp = CreateCompilation(source, options: WithNullableEnable()); 2536var comp = CreateCompilation(source, options: WithNullableEnable()); 2588var comp = CreateCompilation(source, options: WithNullableEnable()); 2623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8.WithFeature("run-nullable-analysis", flagState)); 2657var comp = CreateCompilation(source, options: WithNullableEnable()); 2695var comp = CreateCompilation(source, options: WithNullableEnable()); 2727var comp = CreateCompilation(source, options: WithNullableEnable()); 2770var comp = CreateCompilation(source, options: WithNullableEnable()); 2819var comp = CreateCompilation(source, options: WithNullableEnable()); 2868var comp = CreateCompilation(source, options: WithNullableEnable()); 2905var comp = CreateCompilation(source, options: WithNullableEnable()); 2950var comp = CreateCompilation(source, options: WithNullableEnable()); 2992var comp = CreateCompilation(source, options: WithNullableEnable()); 3034var comp = CreateCompilation(source, options: WithNullableEnable()); 3082var comp = CreateCompilation(source, options: WithNullableEnable()); 3141var comp = CreateCompilation(source, options: WithNullableEnable()); 3186var comp = CreateCompilation(source, options: WithNullableEnable()); 3236var comp = CreateCompilation(source, options: WithNullableEnable()); 3396var comp = CreateCompilation(source); 3441var comp = CreateCompilation(source); 3478var comp = CreateCompilation(source, options: WithNullableEnable()); 3530var comp = CreateCompilation(source, options: WithNullableEnable()); 3591var comp = CreateCompilation(source, options: WithNullableEnable()); 3654var comp = CreateCompilation(source, options: WithNullableEnable()); 3677var comp = CreateCompilation(@" 3712var comp = CreateCompilation(@" 3759var comp = CreateCompilation(source, options: WithNullableEnable()); 3802var comp = CreateCompilation(source, options: WithNullableEnable()); 3844var comp = CreateCompilation(source, options: WithNullableEnable()); 3906var comp = CreateCompilation(source, options: WithNullableEnable()); 3962var comp = CreateCompilation(source, options: WithNullableEnable()); 4031var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 4104var comp = CreateCompilation(source, options: WithNullableEnable()); 4170var comp = CreateCompilation(source, options: WithNullableEnable()); 4205var comp = CreateCompilation(source, options: WithNullableEnable()); 4239var comp = CreateCompilation(source); 4262var comp = CreateCompilation(source, options: WithNullableEnable()); 4296var comp = CreateCompilation(source, options: WithNullableEnable()); 4331var comp = CreateCompilation(source); 4361var comp = CreateCompilation(source); 4389var comp = CreateCompilation(source, options: WithNullableEnable()); 4417var comp = CreateCompilation(source); 4447var comp = CreateCompilation(source, options: WithNullableEnable()); 4477var comp = CreateCompilation(source, options: WithNullableEnable()); 4507var comp = CreateCompilation(source, options: WithNullableDisable()); 4539var comp = CreateCompilation(source, options: WithNullableDisable()); 4572var comp = CreateCompilation(source, options: WithNullableDisable()); 4600var comp = CreateCompilation(source, options: WithNullableDisable()); 4633var comp = CreateCompilation(source, options: WithNullableDisable()); 4664var comp = CreateCompilation(source, options: WithNullableDisable()); 4695var comp = CreateCompilation(source, options: WithNullableDisable()); 4725var comp = CreateCompilation(source); 4763var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4810var comp = CreateCompilation(source, options: WithNullableEnable()); 4876var comp = CreateCompilation(source, options: WithNullableEnable()); 4896var comp = CreateCompilation(source, options: WithNullableEnable()); 4930var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithNullableContextOptions(NullableContextOptions.Enable)); 4962var comp = CreateCompilation(source, targetFramework: TargetFramework.Minimal); 4997var comp = CreateCompilation(source, assemblyName: "comp", options: WithNullableEnable()); 5017var comp = CreateCompilation(@" 5062var comp = CreateCompilation(@"string s = """" switch { _ => string.Empty };", options: WithNullableEnable(TestOptions.ReleaseExe)); 5094var comp = CreateCompilation(source); 5126var comp = CreateCompilation(source); 5157var comp = CreateCompilation(source); 5184var comp = CreateCompilation(source, parseOptions: runNullableAnalysisAlways ? TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "always") : TestOptions.RegularPreview); 5222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")); 5250var comp = CreateCompilation(source); 5273var comp = CreateCompilation(source); 5305var comp = CreateCompilation(source); 5328var comp = CreateCompilation(source); 5350var comp = CreateCompilation(source); 5387var comp = CreateCompilation(source); 5448var comp = CreateCompilation(source); 5526var comp = CreateCompilation(source);
Symbols\Source\PropertyTests.cs (40)
155CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 180var comp = CreateCompilation(text); 208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 233var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 280var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 294var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 312var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 328var comp = CreateCompilation(text).VerifyDiagnostics( 357var comp = CreateCompilation(text); 390var comp = CreateCompilation(text); 448var comp = CreateCompilation(Parse(text)); 1031CreateCompilation(cSharpSource).VerifyDiagnostics( 1052CreateCompilation(cSharpSource).VerifyDiagnostics( 1596CreateCompilation(cSharpSource, references: new[] { ref0 }).VerifyDiagnostics( 1653var comp = CreateCompilation(Parse(text)); 1690var comp = CreateCompilation(Parse(text)); 1725var comp = CreateCompilation(Parse(text)); 1745var comp = CreateCompilation(Parse(text)); 1816var comp = CreateCompilation(Parse(text)); 1867var compilation = CreateCompilation( 1922var comp = CreateCompilation(text); 1952var comp = CreateCompilation(text); 2048var compilation3 = CreateCompilation(source3, new[] { reference1 }); 2088var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2228var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2283var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2319var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2449var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2581return CreateCompilation(source, new[] { s_propertiesDll }, options ?? TestOptions.ReleaseDll); 2822var comp = CreateCompilation(libSrc, options: TestOptions.ReleaseDll); 2828comp = CreateCompilation(libSrc, options: TestOptions.ReleaseWinMD); 2854CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 2855CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics( 2960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 2967comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 2991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 2997comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3012var compilation = CreateCompilation(source).VerifyDiagnostics(); 3025var compilation = CreateCompilation(source).VerifyDiagnostics();
Symbols\Source\RecordTests.cs (4)
17=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1214var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1352var comp2 = CreateCompilation(src2, 1468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition },
Symbols\Source\SourcePlusMetadataTests.cs (10)
26var comp = CreateCompilation(text); 43var comp = CreateCompilation(text); 59var comp = CreateCompilation(text); 80var comp = CreateCompilation(text); 136var compilation = CreateCompilation(new string[] { text1, text2, text3 }); 230var compilation = CreateCompilation(text); 249var comp = CreateCompilation(text); 268var comp1 = CreateCompilation(@"public class C { }", 273var comp2 = CreateCompilation(@"public class B { public static C GetC() { return new C(); } }", 279var comp3 = CreateCompilation(@"public class A { public static void Main() { object o = B.GetC(); } }",
Symbols\Source\TypeMapTests.cs (3)
111var comp = CreateCompilation(tree); 135var compilation = CreateCompilation(source); 177var compilation = CreateCompilation(source);
Symbols\Source\UpdatedContainingSymbolAndNullableAnntotationTests.cs (1)
32var comp = CreateCompilation(source, options: WithNullableEnable());
Symbols\Source\UsingAliasTests.cs (42)
32var comp = CreateCompilation(tree); 89var comp = CreateCompilation(tree); 149var comp = CreateCompilation(tree); 204var comp = CreateCompilation(tree); 269var comp = CreateCompilation(tree); 296var comp = CreateCompilation(tree); 342var comp = CreateCompilation(tree); 383var comp = CreateCompilation(tree); 404var comp = CreateCompilation(tree); 423var comp = CreateCompilation(tree); 442var comp = CreateCompilation(tree); 461var comp = CreateCompilation(tree); 480var comp = CreateCompilation(tree); 501var comp = CreateCompilation(tree); 522CSharpCompilation comp = CreateCompilation(syntaxTree); 543CSharpCompilation comp = CreateCompilation(syntaxTree); 563CSharpCompilation comp = CreateCompilation(syntaxTree); 582CSharpCompilation comp = CreateCompilation(syntaxTree); 602CSharpCompilation comp = CreateCompilation(syntaxTree); 626CSharpCompilation comp = CreateCompilation(syntaxTree); 649CSharpCompilation comp = CreateCompilation(syntaxTree); 666CSharpCompilation comp = CreateCompilation(syntaxTree); 687var compilation = CreateCompilation(text); 731var compilation = CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview)); 773CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 778CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 803CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 830CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 844CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 875CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 890CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 891CreateCompilation(text).VerifyDiagnostics(expected); 907CreateCompilation(text).VerifyDiagnostics( 915CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 921CreateCompilation(""" 945CreateCompilation(""" 961CreateCompilation(""" 977CreateCompilation(""" 996CreateCompilation(""" 1015CreateCompilation(""" 1034CreateCompilation(""" 1054CreateCompilation("""
Symbols\StaticAbstractMembersInInterfacesTests.cs (563)
68var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 708var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 814var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 972var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1012var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1049var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1105var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1126var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1217var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1258var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1319var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1483var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1610var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1995var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2106var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2358var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2474var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3178var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3292var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3800var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3917var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4058compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4103compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4268compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4331compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4496compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4541compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4700compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4763compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4907var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5009var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5047var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5067var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5151var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5184var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5334var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5385var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5426var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5556var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5639var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5700var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5777var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5951var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5978var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6023var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6116var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6162var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6228var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6384compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6467var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6485compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6614compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6641var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6716var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6750compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6782var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6857var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6879compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6911var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6986var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 7008compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 7040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7098var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7128var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7239var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7333var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7737var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7974var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8071var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8424compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8502var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8506var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8517var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8550var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8587var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8591var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8602var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8672var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8773compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8906compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9116var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9127var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9184var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9209var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9272var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9314var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9335compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9397var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9401var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9412var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9450var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9465var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9525var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9680compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9802var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9806var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9817var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9868var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9879var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10291var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10540compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10645compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10882compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11063compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11267compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11478compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11704var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11710compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11834compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11997var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12068compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 12181var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12185var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12196var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12266var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12346var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12385var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12396var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12442var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12478var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12555var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12573var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12642var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12678var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12738var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12742var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12753var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12908var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13100var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13141var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13160compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13246compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13317var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13355compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13436var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13440var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13451var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13492var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13503var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13544var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13558var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13599var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13610var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13703var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13714var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13875var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14017var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14056compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14146var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14150var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14161var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14199var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14210var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14259var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14300var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14311var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14657var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14687compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14763var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14801var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14812var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14887var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 14953var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 15013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15099compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 15154var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15158var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15169var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15203var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15207var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15218var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15369compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), 15422var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15426var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15437var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15471var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15475var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15486var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15548var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15628var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15690var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15766var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15904var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15908var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15922var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15960var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15964var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15975var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 16007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16011var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16022var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 16059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16177var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16194var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16675var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16746var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16761var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16836var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16839references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 16855var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16918var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16921references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 16937var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17003references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17019var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17070var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17073references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17090var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17145var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17148references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17164var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17232var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17235references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17251var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17322var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17325references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17348var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17428var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17431references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 17454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18028var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18284var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18437var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18771var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18775var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18813var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 18899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18957var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19063var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19074var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19115var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19126var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19167var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19178var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19218var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19222var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19233var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19293var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19374var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19466var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19554var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19729var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19818var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19905var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19922var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19996var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20062var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20079var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20159var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20788var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21287var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21330var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21347var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21450var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21553var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21568var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21677references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 21693var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21786references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 21802var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21888references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 21904var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22262var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22378var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22458var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22596var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22677var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22772var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22810var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22814var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22831var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22866var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22870var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22881var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23016var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23107var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23212var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24386var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24756var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24773var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24999references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 25015var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25066var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25069references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 25086var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25157var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25237var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25457var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25526var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25530var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25553var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25594var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25615var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25794var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25882var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25899var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 26914var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27421var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27438var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27536var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27551var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27662var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27665references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 27681var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27732var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27735references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 27752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28034var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28422var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28456var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28519var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28523var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28534var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28575var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28586var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28869var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29247var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29494var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29511var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29609var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29612references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 29628var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29718references: new[] { CreateCompilation("", targetFramework: _supportingFramework).ToMetadataReference() }); 29734var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 29921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29986var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30146compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30212compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30325var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30398compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30516var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30520var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30531var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30578var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30589var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30631var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30635var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30660var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30717var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30721var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30732var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30869compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30987var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31082var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31196var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31341var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31463var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31699var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31711var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31771var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31784var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31834var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31869var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32085var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32136var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32344var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32385var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32473var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32515var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32763var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32833var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32935var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33043var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33096var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33132var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33163var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33230var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33266var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33297var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33325CreateCompilation(""" 33428CreateCompilation(""" 33443CreateCompilation(""" 33484CreateCompilation(""" 33530CreateCompilation(""" 33655var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33660var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() }, 33712var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33717var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33722var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() },
Symbols\SymbolDistinguisherTests.cs (48)
33var libRef = CreateCompilation(tree, assemblyName: "Metadata").EmitToImageReference(); 34var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 77var libRef = new CSharpCompilationReference(CreateCompilation(Parse(source, "file1.cs"), assemblyName: "Metadata")); 97var libComp = CreateCompilation(tree, assemblyName: "Metadata"); 99var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 117var libRef = new CSharpCompilationReference(CreateCompilation(tree, assemblyName: "Metadata")); 137var libComp = CreateCompilation(tree, assemblyName: "Metadata"); 140var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 158var libRef = CreateCompilation(source, assemblyName: "Metadata").EmitToImageReference(); 159var comp = CreateCompilation(source, new[] { libRef }, assemblyName: "Source"); 182var libRef = CreateCompilation(tree, assemblyName: "Metadata").EmitToImageReference(); 183var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 208var libRef = CreateCompilation(tree, assemblyName: "Metadata").EmitToImageReference(); 209var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 233var libRef = CreateCompilation(tree, assemblyName: "Metadata", options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 234var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.UnsafeReleaseDll); 258var libRef = CreateCompilation(tree, assemblyName: "Metadata").EmitToImageReference(); 259var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 280var libRef = CreateCompilation(tree, assemblyName: "Metadata").EmitToImageReference(); 281var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 297var libRef = CreateCompilation("public class dynamic { }", assemblyName: "Metadata").EmitToImageReference(); 298var comp = CreateCompilation("", new[] { libRef }, assemblyName: "Source"); 350var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 351CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 384var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 385CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 418var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 419CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 450var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 451CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 482var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 483CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 511var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 512CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 546var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 547CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 579var libRef = new CSharpCompilationReference(CreateCompilation(Parse(libSource, "file.cs"), assemblyName: "Metadata")); 611var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 612CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 648var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 649CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 679var libRef = CreateCompilation(libSource, assemblyName: "Metadata").EmitToImageReference(); 680CreateCompilation(Parse(source, "file.cs"), new[] { libRef }, assemblyName: "Source").VerifyDiagnostics( 697var compilation = CreateCompilation(source); 718var compilation = CreateCompilation(source); 738var compilation1 = CreateCompilation(source1); 743var compilation2 = CreateCompilation(source2, references: new[] { ref1 }); 776var comp0 = CreateCompilation(source0);
Symbols\SymbolEqualityTests.cs (25)
35var comp = CreateCompilation(src, options: WithNullableEnable()); 75var comp = CreateCompilation(src, options: WithNullableEnable()); 118var comp = CreateCompilation(src, options: WithNullableEnable()); 159var comp = CreateCompilation(src, options: WithNullableEnable()); 191var comp = CreateCompilation(source); 222var comp = (Compilation)CreateCompilation(source); 246var comp = (Compilation)CreateCompilation(source); 282var comp = (Compilation)CreateCompilation(source); 306var comp = (Compilation)CreateCompilation(source); 329var comp1 = (Compilation)CreateCompilation(source1); 373var comp = (Compilation)CreateCompilation(source); 406var comp = CreateCompilation(source); 444var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 518var comp = CreateCompilation(source); 549var comp = CreateCompilation(source); 585var comp = CreateCompilation(source); 619var comp = CreateCompilation(source); 668var comp = CreateCompilation(source); 720var comp = CreateCompilation(source); 770var comp = CreateCompilation(source); 821var comp = CreateCompilation(source); 878var comp = CreateCompilation(source); 929var comp = CreateCompilation(source); 958var comp = CreateCompilation(source);
Symbols\SymbolErrorTests.cs (612)
100var module1 = CreateCompilation(text1, options: TestOptions.ReleaseModule, assemblyName: name1); 102var module2 = CreateCompilation(text2, 107var comp = CreateCompilation(text, 143var comp = CreateCompilation(text, references: new MetadataReference[] { ref2 }, assemblyName: "Test3"); 169CreateCompilation(text).VerifyDiagnostics( 264CreateCompilation(source).VerifyDiagnostics( 350CreateCompilation(text).VerifyDiagnostics( 435CreateCompilation(text).VerifyDiagnostics( 513var comp = CreateCompilation(text); 540var comp = CreateCompilation(text); 576CreateCompilation(text).VerifyDiagnostics( 590var comp = CreateCompilation(text); 741CreateCompilation(source).VerifyDiagnostics( 765CreateCompilation(source).VerifyDiagnostics( 799CreateCompilation(text).VerifyDiagnostics( 822CreateCompilation(text).VerifyDiagnostics( 839CreateCompilation(text, parseOptions: TestOptions.Regular, 848CreateCompilation(text, parseOptions: TestOptions.Regular7, 876CreateCompilation(text, parseOptions: TestOptions.Regular7, 898CreateCompilation(text, parseOptions: TestOptions.Regular7, 920CreateCompilation(text).VerifyDiagnostics( 945CreateCompilation(text).VerifyDiagnostics( 967CreateCompilation(text).VerifyDiagnostics( 996CreateCompilation(text).VerifyDiagnostics( 1037CreateCompilation(text).VerifyDiagnostics( 1057CreateCompilation(text).VerifyDiagnostics( 1083var comp = CreateCompilation(text); 1212CreateCompilation( 1228CreateCompilation( 1258CreateCompilation( 1336CreateCompilation( 1362CreateCompilation( 1383CreateCompilation( 1399CreateCompilation( 1422CreateCompilation( 1455var comp = CreateCompilation(text).VerifyDiagnostics( 1560var comp = CreateCompilation(text); 1585CreateCompilation( 1625CreateCompilation( 1672var comp = CreateCompilation(text); 1716CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 1763CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 1826CreateCompilation(text).VerifyDiagnostics( 1881CreateCompilation(text).VerifyDiagnostics( 1934CreateCompilation(text).VerifyDiagnostics( 1962var compilation = CreateCompilation( 1979var compilation = CreateCompilation( 2008var compilation = CreateCompilation( 2044var compilation = CreateCompilation( 2086CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2115CreateCompilation(tree).VerifyDiagnostics( 2152CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2252CreateCompilation(text).VerifyDiagnostics( 2319var comp = CreateCompilation(text); 2388CreateCompilation(text).VerifyDiagnostics( 2415CreateCompilation(text).VerifyDiagnostics( 2491CreateCompilation(text). 2526CreateCompilation(text). 2541var comp = CreateCompilation(Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5))); 2663var comp = CreateCompilation(text); 2701CreateCompilation( 2723CreateCompilation( 2738CreateCompilation( 2808CreateCompilation(text).VerifyDiagnostics( 2846CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2876CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2893CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2938CreateCompilation(text).VerifyDiagnostics( 2974CreateCompilation(text).VerifyDiagnostics( 3066var comp = CreateCompilation(text); 3138var comp = CreateCompilation(text).VerifyDiagnostics( 3158var c = CreateCompilation(text, options: TestOptions.ReleaseDll.WithAllowUnsafe(false)); 3178CreateCompilation(text).VerifyDiagnostics( 3238CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 3276CreateCompilation(text).VerifyDiagnostics( 3330CreateCompilation(text).VerifyDiagnostics( 3413CreateCompilation(text).VerifyDiagnostics( 3434CreateCompilation(text).VerifyDiagnostics( 3467CreateCompilation(text). 3481CreateCompilation(text).VerifyDiagnostics( 3500CreateCompilation(text). 3523CreateCompilation(text). 3548CreateCompilation(text).VerifyDiagnostics( 3623var comp = CreateCompilation(text); 3752var comp = CreateCompilation(text); 3777var comp = CreateCompilation(text); 3855CreateCompilation(text).VerifyDiagnostics( 3915CreateCompilation(text).VerifyDiagnostics( 3938var comp = CreateCompilation(text, new[] { ref1, ref2 }); 3990CreateCompilation(text).VerifyDiagnostics( 4094CreateCompilation(text).VerifyDiagnostics( 4170CreateCompilation(text).VerifyDiagnostics( 4187CreateCompilation(text).VerifyDiagnostics( 4197CreateCompilation( 4221CreateCompilation( 4258CreateCompilation(text).VerifyDiagnostics( 4280CreateCompilation(text).VerifyDiagnostics( 4617CreateCompilation(text).VerifyDiagnostics( 4657CreateCompilation(text).VerifyDiagnostics( 4675CreateCompilation(text).VerifyDiagnostics( 4746var comp = CreateCompilation(text); 4774CreateCompilation(source).VerifyDiagnostics( 4796CreateCompilation(source).VerifyDiagnostics( 4821CreateCompilation(source).VerifyDiagnostics( 4877CreateCompilation(text).VerifyDiagnostics( 4917var compilation = CreateCompilation(text); 4987CreateCompilation(text).VerifyDiagnostics( 5002CreateCompilation(text).VerifyDiagnostics( 5025CreateCompilation(text).VerifyDiagnostics( 5109CreateCompilation(source).VerifyDiagnostics( 5169CreateCompilation(source).VerifyDiagnostics( 5238CreateCompilation(source).VerifyDiagnostics( 5276CreateCompilation(source).VerifyDiagnostics( 5325CreateCompilation(source).VerifyDiagnostics( 5368CreateCompilation(source).VerifyDiagnostics( 5401var comp = CreateCompilation(text); 5430CreateCompilation(text).VerifyDiagnostics( 5451CreateCompilation(text).VerifyDiagnostics( 5494var comp = CreateCompilation(text, new List<MetadataReference> { ref1, ref2 }); 5516comp = CreateCompilation(new SyntaxTree[] { Parse(text, "goo.cs") }, new List<MetadataReference> { ref1 }); 5587var comp = CreateCompilation(text, 5626var comp = CreateCompilation(text, 5653var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5671var comp = CreateCompilation(text, 5685comp = CreateCompilation(text, 5714var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5733var comp = CreateCompilation(text, 5746comp = CreateCompilation(text, 5774var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5792var comp = CreateCompilation(text, 5806comp = CreateCompilation(text, 5835var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5854var comp = CreateCompilation(text, 5867comp = CreateCompilation(text, 5895var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5913var comp = CreateCompilation(text, 5925comp = CreateCompilation(text, 5952var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5970var comp = CreateCompilation(text, 5983comp = CreateCompilation(text, 6011var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6029var comp = CreateCompilation(text, 6042comp = CreateCompilation(text, 6070var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6088var comp = CreateCompilation(text, 6101comp = CreateCompilation(text, 6135var comp = CreateCompilation(text, 6171var comp = CreateCompilation(text, 6207var comp = CreateCompilation(text, 6243var comp = CreateCompilation(text, 6267var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6286var comp = CreateCompilation(text, 6299comp = CreateCompilation(text, 6327var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6346var comp = CreateCompilation(text, 6360comp = CreateCompilation(text, 6389var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6408var comp = CreateCompilation(text, 6421comp = CreateCompilation(text, 6449var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6468var comp = CreateCompilation(text, 6482comp = CreateCompilation(text, 6511var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6533var comp = CreateCompilation(text, 6546comp = CreateCompilation(text, 6574var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6596var comp = CreateCompilation(text, 6609comp = CreateCompilation(text, 6637var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6659var comp = CreateCompilation(text, 6676comp = CreateCompilation(text, 6708var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6730var comp = CreateCompilation(text, 6743comp = CreateCompilation(text, 6771var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6793var comp = CreateCompilation(text, 6809comp = CreateCompilation(text, 6840var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6862var comp = CreateCompilation(text, 6879comp = CreateCompilation(text, 6911var mod3Ref = CreateCompilation(mod3Source, options: TestOptions.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference(); 6927var comp = CreateCompilation(text, 6944comp = CreateCompilation(text, 6963comp = CreateCompilation(text, 6996var mod3Ref = CreateCompilation(mod3Source, options: TestOptions.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference(); 7012var comp = CreateCompilation(text, 7026comp = CreateCompilation(text, 7042comp = CreateCompilation(text, 7067var ModuleA01Ref = CreateCompilation(ModuleA01, options: TestOptions.ReleaseModule, assemblyName: "ModuleA01").EmitToImageReference(); 7075var ModuleB01Ref = CreateCompilation(ModuleB01, options: TestOptions.ReleaseModule, assemblyName: "ModuleB01").EmitToImageReference(); 7087var comp = CreateCompilation(text, 7142var compilation = CreateCompilation(source, 7229var moduleRef2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "mod_1_2").EmitToImageReference(); 7231var compilation = CreateCompilation("", 7265var forwardedTypes1 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes1"); 7268var forwardedTypes2 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes2"); 7271var forwardedTypesModRef = CreateCompilation(forwardedTypesSource, 7282var module1_FT1_Ref = CreateCompilation(modSource, 7288var module2_FT1_Ref = CreateCompilation(modSource, 7294var module3_FT2_Ref = CreateCompilation(modSource, 7300var module4_Ref = CreateCompilation("[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(CF3<int>))]", 7306var compilation = CreateCompilation(forwardedTypesSource, 7319compilation = CreateCompilation(modSource, 7329compilation = CreateCompilation("[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(CF3<byte>))]", 7338compilation = CreateCompilation(modSource, 7352compilation = CreateCompilation( 7371compilation = CreateCompilation("", 7385compilation = CreateCompilation("", 7399compilation = CreateCompilation("", 7409compilation = CreateCompilation("", 7448var comp = CreateCompilation(text); 7477CreateCompilation(source).VerifyDiagnostics( 7495CreateCompilation(text).VerifyDiagnostics( 7520CreateCompilation(source).VerifyDiagnostics( 7578CreateCompilation(source).VerifyDiagnostics( 7656CreateCompilation(source).VerifyDiagnostics( 7731CreateCompilation(source).VerifyDiagnostics( 7757CreateCompilation(source).VerifyDiagnostics( 7785CreateCompilation(source).VerifyDiagnostics( 7824CreateCompilation(source).VerifyDiagnostics( 7853CreateCompilation(source).VerifyDiagnostics( 7876CreateCompilation(source).VerifyDiagnostics( 7910CreateCompilation(source).VerifyDiagnostics( 7937CreateCompilation(source).VerifyDiagnostics( 7960var comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 8020CreateCompilation(text).VerifyDiagnostics( 8060var comp = CreateCompilation(text).VerifyDiagnostics( 8103CreateCompilation(text).VerifyDiagnostics( 8132CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8143CreateCompilation(text).VerifyDiagnostics( 8165CreateCompilation(source).VerifyDiagnostics( 8221var comp = CreateCompilation(source).VerifyDiagnostics( 8528CreateCompilation(text).VerifyDiagnostics( 8548CreateCompilation(source).VerifyDiagnostics( 8569CreateCompilation(source).VerifyDiagnostics( 8596CreateCompilation(source).VerifyDiagnostics( 8624CreateCompilation(text).VerifyDiagnostics( 8764CreateCompilation(text).VerifyDiagnostics( 8885CreateCompilation(text).VerifyDiagnostics( 8930CreateCompilation(text).VerifyDiagnostics( 8961CreateCompilation(text).VerifyDiagnostics( 8997CreateCompilation(text).VerifyDiagnostics( 9030CreateCompilation(text).VerifyDiagnostics( 9090CreateCompilation(text).VerifyDiagnostics( 9147var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 9180var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp); 9311var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 9347CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9379CreateCompilation(text).VerifyDiagnostics( 9451CreateCompilation(text).VerifyDiagnostics( 9492CreateCompilation(text).VerifyDiagnostics( 9565CreateCompilation(text).VerifyDiagnostics( 9799CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 9818var comp = CreateCompilation( 9956CreateCompilation(source).VerifyDiagnostics(); 9962CreateCompilation( 10009CreateCompilation(source).VerifyDiagnostics( 10048CreateCompilation(source).VerifyDiagnostics( 10098var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10149var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10236var comp = CreateCompilation(text); 10290var comp = CreateCompilation(text); 10409CreateCompilation(text).VerifyDiagnostics( 10503var comp = CreateCompilation(text); 10533var comp = CreateCompilation(text); 10556var comp = CreateCompilation(text); 10581var comp = CreateCompilation(text); 10605var comp = CreateCompilation(text); 10636var comp = CreateCompilation(text); 10661var comp = CreateCompilation(text); 10680var comp = CreateCompilation(text); 10698var comp = CreateCompilation(text); 10717var comp = CreateCompilation(text); 10764var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview); 10774comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 10790comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 10811var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 10862var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10891var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 10912comp = CreateCompilation(text); 10944var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 10956comp = CreateCompilation(text); 11012var comp = CreateCompilation(text); 11052CreateCompilation(source).VerifyDiagnostics( 11076var comp = CreateCompilation(new[] { sourceA, sourceB }); 11092var comp = CreateCompilation(source); 11108var comp = CreateCompilation(source); 11129CreateCompilation(text).VerifyDiagnostics( 11147CreateCompilation(text).VerifyDiagnostics( 11177CreateCompilation(text).VerifyDiagnostics( 11196var comp = CreateCompilation(text); 11228var compilation = CreateCompilation(text); 11300CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 11332CreateCompilation(text).VerifyDiagnostics( 11353CreateCompilation(text).VerifyDiagnostics( 11473CreateCompilation(source).VerifyDiagnostics( 11517CreateCompilation(text).VerifyDiagnostics( 11572var comp = CreateCompilation(source); 11590CreateCompilation(text).VerifyDiagnostics( 11627CreateCompilation(text).VerifyDiagnostics( 11652var compilation = CreateCompilation(text); 11709CreateCompilation(text).VerifyDiagnostics( 11733CreateCompilation(source).VerifyDiagnostics( 11788CreateCompilation(text).VerifyDiagnostics(); 11801CreateCompilation(text).VerifyDiagnostics(); 11975CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 12022var comp = CreateCompilation(text); 12068CreateCompilation(text).VerifyDiagnostics( 12136CreateCompilation(text).VerifyDiagnostics( 12215CreateCompilation(text).VerifyDiagnostics( 12274CreateCompilation(text).VerifyDiagnostics( 12297CreateCompilation(text).VerifyDiagnostics( 12321var comp = CreateCompilation(text); 12372CreateCompilation(source).VerifyDiagnostics( 12410CreateCompilation(text).VerifyDiagnostics( 12451CreateCompilation(text).VerifyDiagnostics( 12481CreateCompilation(text).VerifyDiagnostics( 12506var comp = CreateCompilation(text); 12571var compilation2 = CreateCompilation(source2, new[] { reference1 }); 12625CreateCompilation(text).VerifyDiagnostics( 12692CreateCompilation(source).VerifyDiagnostics( 12747CreateCompilation(text).VerifyDiagnostics( 12820CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12836CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12859CreateCompilation(source).VerifyDiagnostics( 12884CreateCompilation(source).VerifyDiagnostics( 12906CreateCompilation(source).VerifyDiagnostics( 12940CreateCompilation(source).VerifyDiagnostics( 12978CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 13015var comp = CreateCompilation(text); 13148CreateCompilation(text).VerifyDiagnostics( 13178CreateCompilation(source).VerifyDiagnostics( 13196CreateCompilation(source).VerifyDiagnostics( 13227CreateCompilation(text).VerifyDiagnostics( 13252CreateCompilation(text).VerifyDiagnostics( 13283CreateCompilation(text).VerifyDiagnostics( 13373var strictComp = CreateCompilation(text); 13378var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 13391CreateCompilation(source).VerifyDiagnostics( 13418CreateCompilation(text).VerifyDiagnostics( 13503var comp = CreateCompilation(text); 13577CreateCompilation(source).VerifyDiagnostics( 13598CreateCompilation(source).VerifyDiagnostics( 13621CreateCompilation(source).VerifyDiagnostics( 13672CreateCompilation(source).VerifyDiagnostics( 13694CreateCompilation(source).VerifyDiagnostics( 13712CreateCompilation(source).VerifyDiagnostics( 13742CreateCompilation(source).VerifyDiagnostics( 13765CreateCompilation(csharp).VerifyDiagnostics( 13784var comp = CreateCompilation(source); 13804comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 13823var comp1 = CreateCompilation(text1); 13826var comp2 = CreateCompilation(text2, new MetadataReference[] { compRef1 }); 13847CreateCompilation(csharp).VerifyDiagnostics( 13952CreateCompilation(csharp).VerifyDiagnostics( 13973CreateCompilation(csharp).VerifyDiagnostics(); 14015CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 14091CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 14112var comp = CreateCompilation(text); 14160CreateCompilation(text).VerifyDiagnostics( 14181CreateCompilation(text).VerifyDiagnostics( 14224CreateCompilation(text).VerifyDiagnostics( 14240CreateCompilation(text).VerifyDiagnostics( 14260CreateCompilation(text).VerifyDiagnostics( 14336CreateCompilation(source).VerifyDiagnostics( 14430CreateCompilation(source).VerifyDiagnostics( 14447CreateCompilation(text).VerifyDiagnostics( 14465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14492CreateCompilation(text).VerifyDiagnostics( 14541var comp = CreateCompilation(text); 14589CreateCompilation(text).VerifyDiagnostics( 14621CreateCompilation(text).VerifyDiagnostics(); 14641CreateCompilation(text).VerifyDiagnostics( 14657CreateCompilation(source).VerifyDiagnostics( 14759CreateCompilation(text).VerifyDiagnostics( 14786var compilation = CreateCompilation(text); 14798var compilation = CreateCompilation( 14819CreateCompilation( 14845var compilation = CreateCompilation( 14889CreateCompilation( 14910var compilation = CreateCompilation( 14995var compilation = CreateCompilation(source); 15033CreateCompilation(text, new[] { ref1 }).VerifyDiagnostics( 15076var comp = CreateCompilation(text); 15125var comp = CreateCompilation(text); 15153CreateCompilation(text).VerifyDiagnostics( 15176CreateCompilation(text, references: new[] { ref1 }).VerifyDiagnostics( 15428CreateCompilation(text).VerifyDiagnostics( 15455var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 15468var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15482var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15498CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15528CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15582CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15615CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15629CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15646CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15680CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15705CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15771var comp = CreateCompilation(text).VerifyDiagnostics( 15784CreateCompilation(text).VerifyDiagnostics( 15888CreateCompilation(text).VerifyDiagnostics( 15917CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15979CreateCompilation(text).VerifyDiagnostics( 16009CreateCompilation(text).VerifyDiagnostics( 16034var comp = CreateCompilation(text); 16057CreateCompilation(source).VerifyDiagnostics( 16079CreateCompilation(text).VerifyDiagnostics( 16130var compilation = CreateCompilation(text); 16150CreateCompilation(text).VerifyDiagnostics( 16170CreateCompilation(text, references: new[] { ref1 }).VerifyDiagnostics( 16206var comp1 = CreateCompilation(textdll); 16208CreateCompilation(text, references: new MetadataReference[] { ref1 }).VerifyDiagnostics( 16274var comp = CreateCompilation(textdll); 16302var comp = CreateCompilation(textdll); 16340var comp = CreateCompilation(textdll); 16440CreateCompilation(text, new[] { ref1 }).VerifyDiagnostics( 16543var comp = CreateCompilation(textdll); 16567var comp = CreateCompilation(text); 16588CreateCompilation(text).VerifyDiagnostics( 16608CreateCompilation(text).VerifyDiagnostics(); 16623CreateCompilation(text).VerifyDiagnostics( 16642CreateCompilation(text).VerifyDiagnostics(); 16659CreateCompilation(text).VerifyDiagnostics( 16677CreateCompilation(text).VerifyDiagnostics( 16691CreateCompilation(text).VerifyDiagnostics( 16704CreateCompilation(text).VerifyDiagnostics( 16804CreateCompilation(source).VerifyDiagnostics( 16868CreateCompilation(source).VerifyDiagnostics( 16889CSharpCompilation comp = CreateCompilation(text); 16914CSharpCompilation comp = CreateCompilation(text); 16949CSharpCompilation comp = CreateCompilation(text); 16996CreateCompilation(text).VerifyDiagnostics( 17073CreateCompilation(source).VerifyDiagnostics( 17158CreateCompilation(text).VerifyDiagnostics( 17231CreateCompilation(text).VerifyDiagnostics( 17407CreateCompilation(text).VerifyDiagnostics( 17507CreateCompilation(text).VerifyDiagnostics( 17575var comp = CreateCompilation(text); 17609var comp = CreateCompilation(program); 17637var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17675var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17737var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics(); 17738var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics(); 17742var lib = CreateCompilation(tree, new MetadataReference[] 17795CreateCompilation(sourceLib).VerifyDiagnostics( 17818var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics(); 17819var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics(); 17823var lib = CreateCompilation(tree, new MetadataReference[] 17856CreateCompilation(new SyntaxTree[] { Parse(text, "goo.cs") }).VerifyDiagnostics( 17886CreateCompilation(new SyntaxTree[] { Parse(text, "goo.cs") }).VerifyDiagnostics( 17918var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17944var compilation = CreateCompilation( 17984CreateCompilation(text).VerifyDiagnostics( 18042CreateCompilation(source).VerifyDiagnostics( 18070CreateCompilation(source).VerifyDiagnostics( 18143CreateCompilation(text).VerifyDiagnostics( 18165CreateCompilation(text).VerifyDiagnostics( 18192CreateCompilation(text).VerifyDiagnostics( 18226CreateCompilation(text).VerifyDiagnostics( 18267CreateCompilation(text).VerifyDiagnostics( 18314CreateCompilation(text).VerifyDiagnostics( 18410CreateCompilation(source).VerifyDiagnostics( 18431CreateCompilation(source).VerifyDiagnostics( 18451var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18479var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18504var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18529var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18555var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18575var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18601var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18624var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18643var compilation = CreateCompilation( 18663var compilation = CreateCompilation( 18690var compilation = CreateCompilation( 18721CreateCompilation(text).VerifyDiagnostics( 18745CreateCompilation(text).VerifyDiagnostics( 18813CSharpCompilation comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 18841CreateCompilation(text).VerifyDiagnostics( 18861CreateCompilation(text).VerifyDiagnostics( 18882CreateCompilation(text).VerifyDiagnostics( 18900CreateCompilation(text).VerifyDiagnostics( 18922CreateCompilation(text).VerifyDiagnostics( 18948CreateCompilation(text).VerifyDiagnostics( 18965CreateCompilation(text).VerifyDiagnostics( 18984CreateCompilation(text).VerifyDiagnostics( 19004CreateCompilation(text).VerifyDiagnostics( 19031CreateCompilation(text).VerifyDiagnostics( 19058CreateCompilation(text).VerifyDiagnostics( 19075CreateCompilation(text).VerifyDiagnostics( 19085CreateCompilation("[assembly: System.CLSCompliant(true)]", new[] { netModule }).VerifyDiagnostics( 19107CreateCompilation(text).VerifyDiagnostics( 19124CreateCompilation(text).VerifyDiagnostics( 19149CreateCompilation(text).VerifyDiagnostics( 19168CreateCompilation(text).VerifyDiagnostics(); 19185CreateCompilation(text).VerifyDiagnostics( 19208CreateCompilation(text).VerifyDiagnostics( 19229CreateCompilation(text).VerifyDiagnostics( 19251CreateCompilation(text).VerifyDiagnostics( 19270CreateCompilation(text).VerifyDiagnostics( 19305CreateCompilation(text).VerifyDiagnostics( 19441var comp = CreateCompilation(text).VerifyDiagnostics( 19461CreateCompilation( 19477CreateCompilation( 19509CreateCompilation( 19567var comp = CreateCompilation(text); 19595CreateCompilation( 19609CreateCompilation( 19664CreateCompilation( 19678CreateCompilation( 19732CreateCompilation( 19824CreateCompilation(text).VerifyDiagnostics( 19877CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 19885CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 19892CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 19900CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics( 19905CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 19920CreateCompilation(string.Format(template, "int P;")).VerifyDiagnostics( 19928CreateCompilation(string.Format(template, "int get_P;")).VerifyDiagnostics( 19935CreateCompilation(string.Format(template, "int set_P;")).VerifyDiagnostics( 19943CreateCompilation(string.Format(template, "int P() { return 0; }")).VerifyDiagnostics( 19948CreateCompilation(string.Format(template, "int set_P() { return 0; }")).VerifyDiagnostics(); 19951CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 19955CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 19959CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 19963CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics(); 19964CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 20215CreateCompilation(text).VerifyDiagnostics( 20237CreateCompilation(text).VerifyDiagnostics( 20289CreateCompilation(text).VerifyDiagnostics( 20322CreateCompilation(text).VerifyDiagnostics( 20369CreateCompilation(text).VerifyDiagnostics(); 20378var comp1 = CreateCompilation(@" 20404var comp4 = CreateCompilation(source3, new[] { comp2.EmitToImageReference() }, options: TestOptions.ReleaseDll); 20427CreateCompilation(source).VerifyDiagnostics( 20448CreateCompilation(source).VerifyDiagnostics(); 20683var referenceC = CreateCompilation(codeC, assemblyName: "C").EmitToImageReference(); 20698var referenceB = CreateCompilation(codeB, references: new MetadataReference[] { referenceC }, assemblyName: "B").EmitToImageReference(); 20714CreateCompilation(codeA, references: new MetadataReference[] { referenceB, referenceC }, assemblyName: "A").VerifyDiagnostics(); // No Errors 20732CreateCompilation(codeA, references: new MetadataReference[] { referenceB, referenceC2 }, assemblyName: "A").VerifyDiagnostics( 20747var referenceC = CreateCompilation(codeC, assemblyName: "C").EmitToImageReference(); 20762var referenceB = CreateCompilation(codeB, references: new MetadataReference[] { referenceC }, assemblyName: "B").EmitToImageReference(); 20800CreateCompilation(codeA, references: new MetadataReference[] { referenceB, referenceC2 }).VerifyDiagnostics( 20810var referenceD = CreateCompilation(codeD, assemblyName: "D").EmitToImageReference(); 20848CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule }, assemblyName: "Forwarder").VerifyDiagnostics( 20868CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule }).VerifyDiagnostics( 20877var dReference = CreateCompilation(dCode, assemblyName: "D").EmitToImageReference(); 20880CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule, dReference }).VerifyDiagnostics(); 20920var userCompilation = CreateCompilation( 20985var userCompilation = CreateCompilation( 21011var referenceC = CreateCompilation(codeC, assemblyName: "C").EmitToImageReference(); 21026var referenceB = CreateCompilation(codeB, references: new MetadataReference[] { referenceC }, assemblyName: "B").EmitToImageReference(); 21053var referenceE = CreateCompilation(codeC, assemblyName: "E").EmitToImageReference(); 21070CreateCompilation(codeA, references: new MetadataReference[] { referenceB, referenceC2, referenceD, referenceE }, assemblyName: "A").VerifyDiagnostics( 21079CreateCompilation(@" 21092CreateCompilation(@" 21105CreateCompilation(@" 21121CreateCompilation(@" 21134CreateCompilation(@" 21147CreateCompilation(@" 21163CreateCompilation(@" 21176CreateCompilation(@" 21189CreateCompilation(@" 21205CreateCompilation(@" 21221CreateCompilation(@" 21237CreateCompilation(@" 21253CreateCompilation(@" 21333var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21336comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21339comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21394var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21397comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21400comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21439var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21442comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21461comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21502comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21529comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21562var comp1_v1 = CreateCompilation(source1_1, assemblyName: "Lib1"); 21574var comp2 = CreateCompilation(source2, references: new[] { comp1_v1.ToMetadataReference() }); 21578var comp3 = CreateCompilation(source1_1); 21595var comp1_v2 = CreateCompilation(source1_2, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21604var comp1_v3 = CreateCompilation(source1_3, assemblyName: "Lib1", references: new[] { comp2Ref }); 21622var comp1_v4 = CreateCompilation(source1_4, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21639var comp1_v5 = CreateCompilation(source1_5, assemblyName: "Lib1", references: new[] { comp2Ref }); 21660var comp1_v1 = CreateCompilation(source1_1, assemblyName: "Lib1"); 21669var comp2 = CreateCompilation(source2, references: new[] { comp1_v1.ToMetadataReference() }); 21673var comp3 = CreateCompilation(source1_1); 21690var comp1_v2 = CreateCompilation(source1_2, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21699var comp1_v3 = CreateCompilation(source1_3, assemblyName: "Lib1", references: new[] { comp2Ref }); 21717var comp1_v4 = CreateCompilation(source1_4, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21734var comp1_v5 = CreateCompilation(source1_5, assemblyName: "Lib1", references: new[] { comp2Ref }); 21763var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21773var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21802var comp2 = CreateCompilation(new[] { source1, source2 }); 21832var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21846var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21876var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21896var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21926var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21943var comp2 = CreateCompilation(new[] { string.Format(source2, "TypeForwarded_2"), string.Format(source2, "TypeForwardedTo"), source3 }, references: new[] { comp1.ToMetadataReference() }); 21982var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 22004var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 22118CreateCompilation(new[] 22168CreateCompilation(new[]
Symbols\SymbolExtensionTests.cs (5)
53var compilation = CreateCompilation(source); 99var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 117var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 135var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 154var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
Symbols\TypedConstantTests.cs (1)
31_compilation = CreateCompilation("class C {}");
Symbols\TypeTests.cs (77)
39var compilation = CreateCompilation(code); 61var compilation = CreateCompilation(code); 85var comp = CreateCompilation(text); 124var comp = CreateCompilation(new[] { text, text1, text2, text3 }); 190var comp1 = CreateCompilation(text); 193var comp2 = CreateCompilation(new string[] { text1, text2 }, assemblyName: "Test1", 197var comp = CreateCompilation(text3, assemblyName: "Test2", 271var comp = CreateCompilation(text); 346var comp = CreateCompilation(new[] { text, text1, text2 }); 378var comp1 = CreateCompilation(text); 380var comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 397comp1 = CreateCompilation(text); 399comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 416comp1 = CreateCompilation(text); 418comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 439comp1 = CreateCompilation(text); 441comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 465var comp = CreateCompilation(text); 586var compilation = CreateCompilation(text); 620var global = CreateCompilation(text).GlobalNamespace; 668var comp = CreateCompilation(text); 707var compilation = CreateCompilation(text); 743var refAsm = CreateCompilation(refSource, assemblyName: "RefAsm").ToMetadataReference(); 744var compilation = CreateCompilation(csharp, references: new[] { refAsm }); 764var compilation1 = CreateCompilation(referenceText, assemblyName: "A"); 767var compilation2 = CreateCompilation(referenceText, assemblyName: "B"); 849var comp = CreateCompilation(text); 902var comp = CreateCompilation(text, references: new[] { module1Ref }); 966var comp = CreateCompilation(text); 1016var comp = CreateCompilation(text); 1035var comp = CreateCompilation(text); 1060var comp = CreateCompilation(text); 1078var comp = CreateCompilation(text); 1100var comp = CreateCompilation(text); 1118var comp = CreateCompilation(text); 1139var comp = CreateCompilation(tree); 1153var comp = CreateCompilation(tree); 1178var comp = CreateCompilation(tree); 1197var comp = CreateCompilation(tree); 1235var comp = CreateCompilation(text); 1304var comp = CreateCompilation(text); 1385var comp = CreateCompilation(text); 1406var comp = CreateCompilation(text); 1413var compilation = CreateCompilation(@" 1453var comp = CreateCompilation(@"public void TopLevelMethod() {}"); 1476var comp = CreateCompilation(text); 1503var comp = CreateCompilation(text); 1610var comp = CreateCompilation(text); 1676var comp = (Compilation)CreateCompilation(tree); 1760var comp = (Compilation)CreateCompilation(tree); 1803var compilation = CreateCompilation(code); 1830var compilation = CreateCompilation(code); 1850var compilation = (Compilation)CreateCompilation(code); 1875var compilation = CreateCompilation(code); 1880compilation = CreateCompilation(code); 1897var compilation = CreateCompilation(code); 1918var compilation = CreateCompilation(code); 1932compilation = CreateCompilation(code); 1953var compilation = CreateCompilation(code); 1986var compilation = CreateCompilation(code); 2007var compilation = CreateCompilation(code); 2028var compilation = CreateCompilation(code); 2049var compilation = CreateCompilation(code); 2075var compilation = CreateCompilation(code); 2099var compilation = CreateCompilation(code); 2125var compilation = CreateCompilation(code); 2174var compilation = CreateCompilation(code); 2225var compilation = CreateCompilation(code); 2246var compilation = CreateCompilation(code); 2266var compilation = CreateCompilation(code); 2280var compilation = CreateCompilation(code); 2296var compilation = CreateCompilation(code); 2314var compilation = CreateCompilation(text); 2330var compilation = CreateCompilation(text); 2337var sourceComp = CreateCompilation(@" 2428var comp = CreateCompilation(new[] { source }); 2510var comp = CreateCompilation(source);
Symbols\TypeUnificationTests.cs (8)
46var comp = CreateCompilation(text); 130var comp = CreateCompilation(text); 203var comp = CreateCompilation(text); 245var comp = CreateCompilation(text); 296var comp = CreateCompilation(text); 333var comp = CreateCompilation(text); 366var comp = CreateCompilation(text); 417var comp = CreateCompilation(text);
Symbols\UnsignedRightShiftTests.cs (81)
109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 393compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 397compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 493var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 617var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 896compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 900compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1011compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1015compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1048var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1052compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1056compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1449compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1453compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1857compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1861compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1973var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 1990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 1993var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 1999var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2225var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2242var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 2245var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 2251var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2278var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2280var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.ToMetadataReference() }, 2288var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.EmitToImageReference() }, 2318var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2404var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2443var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2495var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3120var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3206var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3214var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3308var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3394var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3402var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3428var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3436compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3440var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3445var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3453compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3480var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3488compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3492var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3497var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3505compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3532var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3540compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3544var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3549var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3557compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3584var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3592compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3596var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3601var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3609compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3629var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
Symbols\UserDefinedOperatorErrorTests.cs (5)
100var comp = CreateCompilation(text); 157var comp = CreateCompilation(text); 196var comp = CreateCompilation(text); 270var comp = CreateCompilation(text); 304var comp = CreateCompilation(text);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1008)
Diagnostics\DiagnosticTest.cs (162)
110var comp = CreateCompilation(""); 147var comp = CreateCompilation(text); 205CreateCompilation(text).VerifyDiagnostics( 564CreateCompilation(text, options: TestOptions.ReleaseExe).VerifyDiagnostics( 572CreateCompilation(text, options: option).VerifyDiagnostics(); 575CreateCompilation(text, options: option).VerifyDiagnostics( 582CreateCompilation(text, options: option).VerifyDiagnostics( 605CreateCompilation(text, options: commonoption).VerifyDiagnostics( 616CreateCompilation(text, options: option).VerifyDiagnostics( 623CreateCompilation(text, options: option).VerifyDiagnostics( 632CreateCompilation(text, options: option).VerifyDiagnostics( 641CreateCompilation(text, options: option).VerifyDiagnostics(); 644CreateCompilation(text, options: option).VerifyDiagnostics(); 647CreateCompilation(text, options: option).VerifyDiagnostics(); 668CreateCompilation(text, options: commonoption).VerifyDiagnostics( 676CreateCompilation(text, options: option).VerifyDiagnostics( 682CreateCompilation(text, options: option).VerifyDiagnostics( 688CreateCompilation(text, options: option).VerifyDiagnostics(); 691CreateCompilation(text, options: option).VerifyDiagnostics(); 694CreateCompilation(text, options: option).VerifyDiagnostics(); 716CreateCompilation(text, options: commonoption).VerifyDiagnostics( 727CreateCompilation(text, options: option).VerifyDiagnostics( 736CreateCompilation(text, options: option).VerifyDiagnostics( 745CreateCompilation(text, options: option).VerifyDiagnostics(); 748CreateCompilation(text, options: option).VerifyDiagnostics(); 751CreateCompilation(text, options: option).VerifyDiagnostics(); 772CreateCompilation(text, options: commonoption).VerifyDiagnostics( 783CreateCompilation(text, options: option).VerifyDiagnostics( 792CreateCompilation(text, options: option).VerifyDiagnostics( 801CreateCompilation(text, options: option).VerifyDiagnostics(); 804CreateCompilation(text, options: option).VerifyDiagnostics(); 807CreateCompilation(text, options: option).VerifyDiagnostics(); 828CreateCompilation(text, options: commonoption).VerifyDiagnostics( 839CreateCompilation(text, options: option).VerifyDiagnostics( 848CreateCompilation(text, options: option).VerifyDiagnostics( 857CreateCompilation(text, options: option).VerifyDiagnostics(); 860CreateCompilation(text, options: option).VerifyDiagnostics(); 863CreateCompilation(text, options: option).VerifyDiagnostics(); 886CreateCompilation(text, options: commonoption).VerifyDiagnostics( 897CreateCompilation(text, options: option).VerifyDiagnostics( 906CreateCompilation(text, options: option).VerifyDiagnostics( 915CreateCompilation(text, options: option).VerifyDiagnostics(); 918CreateCompilation(text, options: option).VerifyDiagnostics(); 921CreateCompilation(text, options: option).VerifyDiagnostics(); 944CreateCompilation(text, options: commonoption).VerifyDiagnostics( 955CreateCompilation(text, options: option).VerifyDiagnostics( 964CreateCompilation(text, options: option).VerifyDiagnostics( 973CreateCompilation(text, options: option).VerifyDiagnostics(); 976CreateCompilation(text, options: option).VerifyDiagnostics(); 979CreateCompilation(text, options: option).VerifyDiagnostics(); 1000CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1014CreateCompilation(text, options: option).VerifyDiagnostics( 1026CreateCompilation(text, options: option).VerifyDiagnostics( 1038CreateCompilation(text, options: option).VerifyDiagnostics(); 1041CreateCompilation(text, options: option).VerifyDiagnostics(); 1044CreateCompilation(text, options: option).VerifyDiagnostics(); 1067CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1084CreateCompilation(text, options: option).VerifyDiagnostics( 1099CreateCompilation(text, options: option).VerifyDiagnostics( 1114CreateCompilation(text, options: option).VerifyDiagnostics(); 1117CreateCompilation(text, options: option).VerifyDiagnostics(); 1120CreateCompilation(text, options: option).VerifyDiagnostics(); 1141CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1155CreateCompilation(text, options: option).VerifyDiagnostics( 1167CreateCompilation(text, options: option).VerifyDiagnostics( 1179CreateCompilation(text, options: option).VerifyDiagnostics(); 1182CreateCompilation(text, options: option).VerifyDiagnostics(); 1185CreateCompilation(text, options: option).VerifyDiagnostics(); 1212CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1220CreateCompilation(text, options: option).VerifyDiagnostics( 1226CreateCompilation(text, options: option).VerifyDiagnostics( 1232CreateCompilation(text, options: option).VerifyDiagnostics(); 1235CreateCompilation(text, options: option).VerifyDiagnostics(); 1238CreateCompilation(text, options: option).VerifyDiagnostics(); 1265CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1273CreateCompilation(text, options: option).VerifyDiagnostics( 1279CreateCompilation(text, options: option).VerifyDiagnostics( 1285CreateCompilation(text, options: option).VerifyDiagnostics(); 1288CreateCompilation(text, options: option).VerifyDiagnostics(); 1291CreateCompilation(text, options: option).VerifyDiagnostics(); 1319CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1327CreateCompilation(text, options: option).VerifyDiagnostics( 1333CreateCompilation(text, options: option).VerifyDiagnostics( 1339CreateCompilation(text, options: option).VerifyDiagnostics(); 1342CreateCompilation(text, options: option).VerifyDiagnostics(); 1345CreateCompilation(text, options: option).VerifyDiagnostics(); 1372CreateCompilation(text, options: commonoption).VerifyDiagnostics(); 1377CreateCompilation(text, options: option).VerifyDiagnostics(); 1380CreateCompilation(text, options: option).VerifyDiagnostics(); 1383CreateCompilation(text, options: option).VerifyDiagnostics(); 1386CreateCompilation(text, options: option).VerifyDiagnostics(); 1389CreateCompilation(text, options: option).VerifyDiagnostics(); 1420CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1428CreateCompilation(text, options: option).VerifyDiagnostics( 1434CreateCompilation(text, options: option).VerifyDiagnostics( 1440CreateCompilation(text, options: option).VerifyDiagnostics(); 1443CreateCompilation(text, options: option).VerifyDiagnostics(); 1446CreateCompilation(text, options: option).VerifyDiagnostics(); 1467CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1484CreateCompilation(text, options: option).VerifyDiagnostics( 1501CreateCompilation(text, options: option).VerifyDiagnostics( 1513CreateCompilation(text, options: option).VerifyDiagnostics( 1537CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1551CreateCompilation(text, options: option).VerifyDiagnostics( 1563CreateCompilation(text, options: option).VerifyDiagnostics(); 1584CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1601CreateCompilation(text, options: option).VerifyDiagnostics( 1616CreateCompilation(text, options: option).VerifyDiagnostics( 1643CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1657CreateCompilation(text, options: option).VerifyDiagnostics( 1669CreateCompilation(text, options: option).VerifyDiagnostics(); 1693CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1704CreateCompilation(text, options: option).VerifyDiagnostics( 1713CreateCompilation(text, options: option).VerifyDiagnostics(); 1736CreateCompilation(text, options: commonoption).VerifyDiagnostics(); 1741CreateCompilation(text, options: option).VerifyDiagnostics(); 1744CreateCompilation(text, options: option).VerifyDiagnostics(); 1763CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1774CreateCompilation(text, options: option).VerifyDiagnostics( 1784CreateCompilation(text, options: option).VerifyDiagnostics( 1790CreateCompilation(text, options: option).VerifyDiagnostics(); 1809CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1823CreateCompilation(text, options: option).VerifyDiagnostics( 1836CreateCompilation(text, options: option).VerifyDiagnostics( 1845CreateCompilation(text, options: option).VerifyDiagnostics( 1876CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1918CreateCompilation(text, options: commonoption).VerifyDiagnostics( 1979CreateCompilation(text, options: commonoption).VerifyDiagnostics(); 2015CreateCompilation(text, options: commonoption).VerifyDiagnostics( 2051CreateCompilation(text, options: commonoption).VerifyDiagnostics( 2098CreateCompilation(text, options: commonoption).VerifyDiagnostics( 2140CreateCompilation(text1, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected1); 2141CreateCompilation(text1).VerifyDiagnostics(expected1); 2145CreateCompilation(text1, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(); 2146CreateCompilation(text1, options: options).VerifyDiagnostics(); 2152CreateCompilation(text2, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected1); 2153CreateCompilation(text2, options: options).VerifyDiagnostics(expected1); 2159CreateCompilation(text3, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected1); 2160CreateCompilation(text3, options: options).VerifyDiagnostics(expected1); 2173CreateCompilation(text4, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected2); 2174CreateCompilation(text4, options: options).VerifyDiagnostics(expected2); 2180CreateCompilation(text5, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected2); 2181CreateCompilation(text5, options: options).VerifyDiagnostics(expected2); 2202CreateCompilation(text, options: commonoption).VerifyDiagnostics( 2227CreateCompilation(text, options: commonoption).VerifyDiagnostics( 2247CreateCompilation(text, options: option).VerifyDiagnostics( 2266CreateCompilation(text, options: option).VerifyDiagnostics( 2278CreateCompilation(text, options: option).VerifyDiagnostics( 2310CreateCompilation(text, options: commonoption).VerifyDiagnostics(); 2332CreateCompilation(text, options: commonoption).VerifyDiagnostics(); 2432var compilation = CreateCompilation(text); 2457var compilation = CreateCompilation(text); 2483AssertEx.Equal(CreateCompilation(tree).GetDiagnostics(), CreateCompilation(tree).GetDiagnostics()); 2527CreateCompilation(text, options: options).VerifyDiagnostics( 2573var compilation = CreateCompilation(source); 2613var compilation = CreateCompilation(source); 2644var compilation = CreateCompilation(source); 2689var compilation = CreateCompilation(source); 2723var compilation = CreateCompilation(source); 2744var compilation = CreateCompilation(source); 2874var ca = CreateCompilation(source, options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()).WithCryptoKeyContainer("bogus"));
Diagnostics\LineSpanDirectiveTests.cs (4)
135var comp = CreateCompilation(tree); 523var comp = CreateCompilation(source); 553var comp = CreateCompilation(source); 599var comp = CreateCompilation(source);
IncrementalParsing\IncrementalParsingTests.cs (1)
2896var comp = CSharpTestBase.CreateCompilation(SyntaxFactory.ParseSyntaxTree(String.Empty));
LexicalAndXml\LexicalErrorTests.cs (79)
975CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 976CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1016CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1020CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1039CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1043CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1061CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1065CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1084CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1088CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1108CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1112CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1131CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1135CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1154CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1158CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1177CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1181CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1201CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1205CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1243CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1262CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1316CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1335CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1370CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1371CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1389CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1393CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1415CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1419CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1439CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1440CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1458CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1462CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1483CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1487CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1508CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1512CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1530CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1534CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1557CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1561CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1584CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1588CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1608CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1612CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1633CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1637CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1658CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1662CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1683CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1687CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1710CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1714CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1737CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1741CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1762CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1766CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1790CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1794CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1818CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1822CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1844CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1848CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1869CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1873CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1897CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1901CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1925CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1929CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1951CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1955CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1974CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1975CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 2024CreateCompilation(test).VerifyDiagnostics(
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
233CreateCompilation(
LexicalAndXml\XmlDocCommentTests.cs (2)
41var comp = CreateCompilation(@" 3192var comp = CreateCompilation(new[] {
Parsing\AnonymousFunctionParsingTests.cs (51)
113CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 213CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 311CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 412CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 513CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 627CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 768CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 877CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 889CreateCompilation(testInMethod).VerifyDiagnostics( 893CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 951CreateCompilation(testInMethod).VerifyDiagnostics( 958CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1020CreateCompilation(testInMethod).VerifyDiagnostics( 1024CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1090CreateCompilation(testInMethod).VerifyDiagnostics( 1094CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1162CreateCompilation(testInMethod).VerifyDiagnostics( 1166CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1326CreateCompilation(testInMethod).VerifyDiagnostics( 1330CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1403CreateCompilation(testInMethod).VerifyDiagnostics( 1407CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1590CreateCompilation(testInMethod).VerifyDiagnostics( 1600CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1694CreateCompilation(testInMethod).VerifyDiagnostics( 1704CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1795CreateCompilation(testInMethod).VerifyDiagnostics( 1799CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1876CreateCompilation(testWithStatement).VerifyDiagnostics( 1889CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1982CreateCompilation(testInMethod).VerifyDiagnostics( 2007CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2105CreateCompilation(test).VerifyDiagnostics( 2112CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2194CreateCompilation(testWithStatement).VerifyDiagnostics( 2201CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2578CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2726CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2875CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2994CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 3140CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3254CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3404CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3557CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3711CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3839CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 3994CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4117CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4276CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4438CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4601CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(
Parsing\AsyncParsingTests.cs (3)
2383CreateCompilation(test, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 2470CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 2586CreateCompilation(test, parseOptions: TestOptions.Regular5).VerifyDiagnostics(
Parsing\CollectionExpressionParsingTests.cs (1)
18605CreateCompilation("""
Parsing\DeclarationParsingTests.cs (18)
1182CreateCompilation(text).GetDeclarationDiagnostics().Verify( 1196CreateCompilation(text).GetDeclarationDiagnostics().Verify( 5666CreateCompilation(text).VerifyDiagnostics( 5676CreateCompilation(text).VerifyDiagnostics( 5686CreateCompilation(text).VerifyDiagnostics( 5731CreateCompilation(text).VerifyDiagnostics( 5798CreateCompilation(text).VerifyDiagnostics( 5912CreateCompilation(text1).VerifyDiagnostics( 5916CreateCompilation(text2).VerifyDiagnostics( 6864CreateCompilation(code).VerifyDiagnostics( 6883CreateCompilation(code).VerifyDiagnostics( 6905CreateCompilation(code).VerifyDiagnostics( 6924CreateCompilation(code).VerifyDiagnostics( 6947CreateCompilation(code).VerifyDiagnostics( 6970CreateCompilation(code).VerifyDiagnostics( 8529CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 8787CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8916CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics(
Parsing\DeclarationScopeParsingTests.cs (3)
3262CreateCompilation(source, parseOptions: parseOptions).VerifyDiagnostics( 3278CreateCompilation(source, parseOptions: parseOptions).VerifyDiagnostics( 3291CreateCompilation(source, parseOptions: parseOptions).VerifyDiagnostics(
Parsing\DeconstructionTests.cs (12)
2074CreateCompilation(source).VerifyDiagnostics( 2104CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 2130CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2160CreateCompilation(source).VerifyDiagnostics( 2193CreateCompilation(source).VerifyDiagnostics( 2220CreateCompilation(source).VerifyDiagnostics( 2247CreateCompilation(source).VerifyDiagnostics( 2276CreateCompilation(source).VerifyDiagnostics( 2305CreateCompilation(source).VerifyDiagnostics( 2332CreateCompilation(source).VerifyDiagnostics( 2359CreateCompilation(source).VerifyDiagnostics( 2386CreateCompilation(source).VerifyDiagnostics(
Parsing\ExpressionParsingTests.cs (6)
204CreateCompilation($@" 234CreateCompilation($@" 260CreateCompilation($@" 309CreateCompilation($@" 742CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5240CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Parsing\FileModifierParsingTests.cs (1)
37var comp = CreateCompilation(tree);
Parsing\FunctionPointerTests.cs (1)
510CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\ImplicitObjectCreationParsingTests.cs (3)
408CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 457CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 538CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\LocalFunctionParsingTests.cs (24)
696CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 706CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 788CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 795CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 976CreateCompilation(tree).VerifyDiagnostics( 1061CreateCompilation(tree).VerifyDiagnostics( 1199CreateCompilation(errorText).VerifyDiagnostics( 1304CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1720CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1727CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1731CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1805CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1824CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1939CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1973CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1995CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2127CreateCompilation(text).VerifyDiagnostics( 2204CreateCompilation(text).VerifyDiagnostics( 2288CreateCompilation(text).VerifyDiagnostics( 2379CreateCompilation(text).VerifyDiagnostics( 2474CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2496CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2515CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\MemberDeclarationParsingTests.cs (61)
1645CreateCompilation(classWithText, parseOptions: parseOptions).VerifyDiagnostics( 2317CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2333CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2428CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2453CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2553CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2578CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2677CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2783CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2802CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3198CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3214CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3313CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3338CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3441CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3466CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3569CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3588CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3679CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3698CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4243CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4256CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4347CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4369CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4464CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4486CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4581CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4597CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4680CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5083CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5096CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5191CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5312CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5334CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5433CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5449CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5536CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5552CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6268CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6281CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6355CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6371CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6506CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6522CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6606CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6622CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6993CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7006CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7084CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7103CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7197CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7301CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7317CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7405CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7421CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 12101CreateCompilation(text).VerifyDiagnostics( 12163CreateCompilation(text).VerifyDiagnostics(
Parsing\NameParsingTests.cs (5)
910CreateCompilation(source).VerifyDiagnostics( 1008CreateCompilation(source, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 1139CreateCompilation(source).VerifyDiagnostics( 1264CreateCompilation(source).VerifyDiagnostics( 1428CreateCompilation(source).VerifyDiagnostics(
Parsing\NullableParsingTests.cs (2)
742CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 810CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\ParserErrorMessageTests.cs (120)
89CreateCompilation(test).VerifyDiagnostics( 117CreateCompilation(test).VerifyDiagnostics( 132CreateCompilation(test).VerifyDiagnostics( 157CreateCompilation(test).VerifyDiagnostics( 266CreateCompilation(test).VerifyDiagnostics( 587CreateCompilation(test).VerifyDiagnostics( 611CreateCompilation(test).VerifyDiagnostics( 624CreateCompilation(test).VerifyDiagnostics( 638CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 669CreateCompilation(test).VerifyDiagnostics( 699CreateCompilation(test).VerifyDiagnostics( 793CreateCompilation(test).VerifyDiagnostics( 878CreateCompilation(test).VerifyDiagnostics( 908CreateCompilation(test).VerifyDiagnostics( 938CreateCompilation(source).VerifyDiagnostics( 976CreateCompilation(test).VerifyDiagnostics( 996CreateCompilation(test).VerifyDiagnostics( 1018CreateCompilation(test).VerifyDiagnostics( 1082CreateCompilation(test).VerifyDiagnostics( 1103CreateCompilation(source).VerifyDiagnostics( 1232CreateCompilation(test).VerifyDiagnostics( 1257CreateCompilation(test).VerifyDiagnostics( 1279CreateCompilation(test).VerifyDiagnostics( 1311CreateCompilation(test).VerifyDiagnostics( 1504CreateCompilation(test).VerifyDiagnostics( 1673CreateCompilation(test).VerifyDiagnostics( 1693CreateCompilation(test).VerifyDiagnostics( 1710CreateCompilation(test).VerifyDiagnostics( 1728CreateCompilation(test).VerifyDiagnostics( 1746CreateCompilation(test).VerifyDiagnostics( 1761CreateCompilation(test).VerifyDiagnostics( 1776CreateCompilation(test).VerifyDiagnostics( 1791CreateCompilation(test).VerifyDiagnostics( 1806CreateCompilation(test).VerifyDiagnostics( 1820CreateCompilation(test).VerifyDiagnostics( 1834CreateCompilation(test).VerifyDiagnostics( 1848CreateCompilation(test).VerifyDiagnostics( 1862CreateCompilation(test).VerifyDiagnostics( 1874CreateCompilation(test).VerifyDiagnostics( 1906CreateCompilation(test).VerifyDiagnostics( 1930CreateCompilation( 1952CreateCompilation( 2174CreateCompilation(test).VerifyDiagnostics( 2210CreateCompilation(test).VerifyDiagnostics( 2251CreateCompilation(test).VerifyDiagnostics( 2363CreateCompilation(test).VerifyDiagnostics( 2421CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2456CreateCompilation(test).VerifyDiagnostics( 2478CreateCompilation(test).VerifyDiagnostics( 2500CreateCompilation(test).VerifyDiagnostics( 2813CreateCompilation(test).VerifyDiagnostics( 2885CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2982CreateCompilation(test).VerifyDiagnostics( 2999CreateCompilation(test).VerifyDiagnostics( 3010CreateCompilation(test).VerifyDiagnostics( 3028CreateCompilation(test).VerifyDiagnostics( 3043CreateCompilation(test).VerifyDiagnostics( 3213CreateCompilation(test).VerifyDiagnostics( 3230CreateCompilation(test).VerifyDiagnostics( 3255CreateCompilation(test).VerifyDiagnostics( 4045CreateCompilation(test).GetDeclarationDiagnostics().Verify( 4554CreateCompilation(test).VerifyDiagnostics( 4615CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 4671CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4697CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4717CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4737CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4780CreateCompilation(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 4888CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4949CreateCompilation(test).GetDeclarationDiagnostics().Verify( 4973CreateCompilation(test).GetDeclarationDiagnostics().Verify( 5225CreateCompilation(test).VerifyDiagnostics( 5269CreateCompilation(test).VerifyDiagnostics( 5300CreateCompilation(test).VerifyDiagnostics( 5445CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics(); 5446CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 5467CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5480CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5511CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5515CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5551CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics(); 5552CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5573CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5577CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5608CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyEmitDiagnostics( 5612CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 5642CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5646CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5676CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 5683CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5765CreateCompilation(test).VerifyDiagnostics( 5803CreateCompilation(test).VerifyDiagnostics( 5843CreateCompilation(test).VerifyDiagnostics( 5870CreateCompilation(test).GetDiagnostics().Verify( 5911CreateCompilation(test).VerifyDiagnostics( 5927CreateCompilation(test, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics( 5980CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5988CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6008CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6015CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6038CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6051CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6080CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6093CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6121CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6131CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6163CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6167CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6187CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6191CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6209CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics(); 6210CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6231CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyEmitDiagnostics( 6235CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 6259CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyEmitDiagnostics( 6263CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 6383CreateCompilation(source, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6390CreateCompilation(source, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6430CreateCompilation(source, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 6437CreateCompilation(source, parseOptions: TestOptions.Regular5).VerifyDiagnostics(
Parsing\ParserRegressionTests.cs (1)
31var comp = CreateCompilation(@"
Parsing\PatternParsingTests.cs (22)
50CreateCompilation(test, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 85CreateCompilation(test).VerifyDiagnostics(); 86CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1846CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 1856CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1942CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2030CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2154CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2213CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2282CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2373CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2450CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2481CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2549CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2628CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2722CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 8254CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8316CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8378CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8430CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8484CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8647CreateCompilation(test, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics(
Parsing\PatternParsingTests2.cs (2)
31CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 38CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (30)
56CreateCompilation(text).VerifyDiagnostics(expected); 69CreateCompilation( 82CreateCompilation( 92CreateCompilation( 102CreateCompilation( 112CreateCompilation( 122CreateCompilation( 132CreateCompilation( 143CreateCompilation( 154CreateCompilation( 164CreateCompilation( 182CreateCompilation( 199CreateCompilation( 216CreateCompilation( 236CreateCompilation( 249CreateCompilation( 262CreateCompilation( 277CreateCompilation( 300CreateCompilation( 315CreateCompilation( 330CreateCompilation( 347CreateCompilation( 363CreateCompilation( 382CreateCompilation( 398CreateCompilation( 414CreateCompilation( 431CreateCompilation( 445CreateCompilation( 462CreateCompilation( 476CreateCompilation(
Parsing\RawInterpolatedStringLiteralParsingTests.cs (109)
26CreateCompilation(text).VerifyDiagnostics(); 41CreateCompilation(text).VerifyDiagnostics( 59CreateCompilation(text).VerifyDiagnostics( 77CreateCompilation(text).VerifyDiagnostics(); 92CreateCompilation(text).VerifyDiagnostics(); 107CreateCompilation(text).VerifyDiagnostics(); 122CreateCompilation(text).VerifyDiagnostics(); 137CreateCompilation(text).VerifyDiagnostics(); 152CreateCompilation(text).VerifyDiagnostics(); 167CreateCompilation(text).VerifyDiagnostics( 185CreateCompilation(text).VerifyDiagnostics( 203CreateCompilation(text).VerifyDiagnostics( 221CreateCompilation(text).VerifyDiagnostics( 239CreateCompilation(text).VerifyDiagnostics( 257CreateCompilation(text).VerifyDiagnostics( 275CreateCompilation(text).VerifyDiagnostics(); 290CreateCompilation(text).VerifyDiagnostics(); 305CreateCompilation(text).VerifyDiagnostics(); 320CreateCompilation(text).VerifyDiagnostics(); 335CreateCompilation(text).VerifyDiagnostics(); 351CreateCompilation(text).VerifyDiagnostics(); 366CreateCompilation(text).VerifyDiagnostics(); 381CreateCompilation(text).VerifyDiagnostics(); 396CreateCompilation(text).VerifyDiagnostics(); 411CreateCompilation(text).VerifyDiagnostics(); 427CreateCompilation(text).VerifyDiagnostics(); 444CreateCompilation(text).VerifyDiagnostics(); 459CreateCompilation(text).VerifyDiagnostics(); 476CreateCompilation(text).VerifyDiagnostics(); 493CreateCompilation(text).VerifyDiagnostics( 511CreateCompilation(text).VerifyDiagnostics(); 526CreateCompilation(text).VerifyDiagnostics(); 541CreateCompilation(text).VerifyDiagnostics(); 557CreateCompilation(text).VerifyDiagnostics(); 574CreateCompilation(text).VerifyDiagnostics(); 589CreateCompilation(text).VerifyDiagnostics(); 604CreateCompilation(text).VerifyDiagnostics(); 619CreateCompilation(text).VerifyDiagnostics(); 634CreateCompilation(text).VerifyDiagnostics(); 649CreateCompilation(text).VerifyDiagnostics(); 664CreateCompilation(text).VerifyDiagnostics(); 679CreateCompilation(text).VerifyDiagnostics(); 694CreateCompilation(text).VerifyDiagnostics(); 709CreateCompilation(text).VerifyDiagnostics(); 724CreateCompilation(text).VerifyDiagnostics(); 739CreateCompilation(text).VerifyDiagnostics(); 754CreateCompilation(text).VerifyDiagnostics(); 769CreateCompilation(text).VerifyDiagnostics(); 784CreateCompilation(text).VerifyDiagnostics(); 799CreateCompilation(text).VerifyDiagnostics(); 814CreateCompilation(text).VerifyDiagnostics(); 829CreateCompilation(text).VerifyDiagnostics(); 844CreateCompilation(text).VerifyDiagnostics(); 859CreateCompilation(text).VerifyDiagnostics(); 874CreateCompilation(text).VerifyDiagnostics(); 889CreateCompilation(text).VerifyDiagnostics(); 904CreateCompilation(text).VerifyDiagnostics(); 919CreateCompilation(text).VerifyDiagnostics(); 934CreateCompilation(text).VerifyDiagnostics(); 949CreateCompilation(text).VerifyDiagnostics(); 964CreateCompilation(text).VerifyDiagnostics(); 979CreateCompilation(text).VerifyDiagnostics(); 994CreateCompilation(text).VerifyDiagnostics(); 1009CreateCompilation(text).VerifyDiagnostics(); 1024CreateCompilation(text).VerifyDiagnostics(); 1039CreateCompilation(text).VerifyDiagnostics(); 1054CreateCompilation(text).VerifyDiagnostics(); 1069CreateCompilation(text).VerifyDiagnostics(); 1084CreateCompilation(text).VerifyDiagnostics(); 1099CreateCompilation(text).VerifyDiagnostics( 1120CreateCompilation(text).VerifyDiagnostics( 1150CreateCompilation(text).VerifyDiagnostics( 1168CreateCompilation(text).VerifyDiagnostics( 1186CreateCompilation(text).VerifyDiagnostics( 1207CreateCompilation(text).VerifyDiagnostics( 1237CreateCompilation(text).VerifyDiagnostics( 1255CreateCompilation(text).VerifyDiagnostics( 1273CreateCompilation(text).VerifyDiagnostics( 1291CreateCompilation(text).VerifyDiagnostics( 1312CreateCompilation(text).VerifyDiagnostics( 1330CreateCompilation(text).VerifyDiagnostics( 1348CreateCompilation(text).VerifyDiagnostics( 1366CreateCompilation(text).VerifyDiagnostics( 1387CreateCompilation(text).VerifyDiagnostics( 1405CreateCompilation(text).VerifyDiagnostics( 1423CreateCompilation(text).VerifyDiagnostics( 1441CreateCompilation(text).VerifyDiagnostics( 1462CreateCompilation(text).VerifyDiagnostics( 1480CreateCompilation(text).VerifyDiagnostics( 1498CreateCompilation(text).VerifyDiagnostics( 1516CreateCompilation(text).VerifyDiagnostics( 1537CreateCompilation(text).VerifyDiagnostics( 1555CreateCompilation(text).VerifyDiagnostics( 1573CreateCompilation(text).VerifyDiagnostics( 1591CreateCompilation(text).VerifyDiagnostics( 1612CreateCompilation(text).VerifyDiagnostics( 1630CreateCompilation(text).VerifyDiagnostics( 1648CreateCompilation(text).VerifyDiagnostics( 1666CreateCompilation(text).VerifyDiagnostics( 1687CreateCompilation(text).VerifyDiagnostics( 1705CreateCompilation(text).VerifyDiagnostics( 1723CreateCompilation(text).VerifyDiagnostics( 1744CreateCompilation(text).VerifyDiagnostics( 1762CreateCompilation(text).VerifyDiagnostics( 1780CreateCompilation(text).VerifyDiagnostics( 1801CreateCompilation(text).VerifyDiagnostics( 1819CreateCompilation(text).VerifyDiagnostics( 1843CreateCompilation(text).VerifyDiagnostics( 1863CreateCompilation(text).VerifyDiagnostics(
Parsing\RawStringLiteralCompilingTests.cs (32)
15CreateCompilation( 28CreateCompilation( 41CreateCompilation( 51CreateCompilation( 61CreateCompilation( 71CreateCompilation( 82CreateCompilation( 92CreateCompilation( 110CreateCompilation( 127CreateCompilation( 144CreateCompilation( 164CreateCompilation( 177CreateCompilation( 190CreateCompilation( 205CreateCompilation( 228CreateCompilation( 243CreateCompilation( 258CreateCompilation( 275CreateCompilation( 288CreateCompilation( 307CreateCompilation( 323CreateCompilation( 339CreateCompilation( 356CreateCompilation( 370CreateCompilation( 387CreateCompilation( 478CreateCompilation( 488CreateCompilation( 497CreateCompilation( 506CreateCompilation( 515CreateCompilation( 524CreateCompilation(
Parsing\RecordParsing.cs (16)
109CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 267CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 336var comp = CreateCompilation(text).VerifyDiagnostics( 1209CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2660CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2673CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2727CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2731CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2744CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2907CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2917CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2930CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3793CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3800CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3875CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\RefReadonlyTests.cs (10)
204CreateCompilation(@" 231CreateCompilation(@" 258CreateCompilation(@" 284CreateCompilation(@" 337CreateCompilation(@" 372CreateCompilation(@" 389CreateCompilation(@" 406CreateCompilation(@" 421CreateCompilation(@" 443CreateCompilation(@"
Parsing\RefStructs.cs (6)
111var comp = CreateCompilation(text); 127var comp = CreateCompilation(@" 139var comp = CreateCompilation(@" 160var comp = CreateCompilation(@" 187var comp = CreateCompilation(@" 208var comp = CreateCompilation(@"
Parsing\ScriptParsingTests.cs (4)
1044CreateCompilation(source).VerifyDiagnostics( 1073CreateCompilation(source).VerifyDiagnostics( 1707CreateCompilation(test).VerifyDiagnostics( 1980CreateCompilation(test).VerifyDiagnostics(
Parsing\SeparatedSyntaxListParsingTests.cs (1)
673CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(
Parsing\SingleLineDeclarationParsingTests.cs (1)
193CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\StackAllocInitializerParsingTests.cs (4)
25CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 72CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 119CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 153CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics(
Parsing\StatementAttributeParsingTests.cs (83)
79CreateCompilation(test).GetDiagnostics().Verify( 144CreateCompilation(test).GetDiagnostics().Verify( 228CreateCompilation(test).GetDiagnostics().Verify( 325CreateCompilation(test).GetDiagnostics().Verify( 410CreateCompilation(test).GetDiagnostics().Verify( 495CreateCompilation(test).GetDiagnostics().Verify( 561CreateCompilation(test).GetDiagnostics().Verify( 627CreateCompilation(test).GetDiagnostics().Verify( 701CreateCompilation(test).GetDiagnostics().Verify( 775CreateCompilation(test).GetDiagnostics().Verify( 850CreateCompilation(test).GetDiagnostics().Verify( 931CreateCompilation(test).GetDiagnostics().Verify( 1009CreateCompilation(test).GetDiagnostics().Verify( 1083CreateCompilation(test).GetDiagnostics().Verify( 1185CreateCompilation(test).GetDiagnostics().Verify( 1319CreateCompilation(test).GetDiagnostics().Verify( 1395CreateCompilation(test).GetDiagnostics().Verify( 1472CreateCompilation(test).GetDiagnostics().Verify( 1559CreateCompilation(test).GetDiagnostics().Verify( 1681CreateCompilation(test).GetDiagnostics().Verify( 1754CreateCompilation(test).GetDiagnostics().Verify( 1824CreateCompilation(test).GetDiagnostics().Verify( 1894CreateCompilation(test).GetDiagnostics().Verify( 1964CreateCompilation(test).GetDiagnostics().Verify( 2061CreateCompilation(test).GetDiagnostics().Verify( 2152CreateCompilation(test).GetDiagnostics().Verify( 2228CreateCompilation(test).GetDiagnostics().Verify( 2301CreateCompilation(test).GetDiagnostics().Verify( 2394CreateCompilation(test).GetDiagnostics().Verify( 2507CreateCompilation(test).GetDiagnostics().Verify( 2619CreateCompilation(test).GetDiagnostics().Verify( 2716CreateCompilation(test).GetDiagnostics().Verify( 2795CreateCompilation(test).GetDiagnostics().Verify( 2898CreateCompilation(test).GetDiagnostics().Verify( 2983CreateCompilation(test).GetDiagnostics().Verify( 3086CreateCompilation(test).GetDiagnostics().Verify( 3171CreateCompilation(test).GetDiagnostics().Verify( 3247CreateCompilation(test).GetDiagnostics().Verify( 3324CreateCompilation(test).GetDiagnostics().Verify( 3407CreateCompilation(test).GetDiagnostics().Verify( 3492CreateCompilation(test).GetDiagnostics().Verify( 3574CreateCompilation(test).GetDiagnostics().Verify( 3664CreateCompilation(test).GetDiagnostics().Verify( 3745CreateCompilation(test).GetDiagnostics().Verify( 3819CreateCompilation(test).GetDiagnostics().Verify( 3912CreateCompilation(test).GetDiagnostics().Verify( 3995CreateCompilation(test).GetDiagnostics().Verify( 4083CreateCompilation(test).GetDiagnostics().Verify( 4168CreateCompilation(test).GetDiagnostics().Verify( 4244CreateCompilation(test).GetDiagnostics().Verify( 4324CreateCompilation(test).GetDiagnostics().Verify( 4412CreateCompilation(test).GetDiagnostics().Verify( 4501CreateCompilation(test).GetDiagnostics().Verify( 4601CreateCompilation(test).GetDiagnostics().Verify( 4676CreateCompilation(test).GetDiagnostics().Verify( 4748CreateCompilation(test).GetDiagnostics().Verify( 4846CreateCompilation(test).GetDiagnostics().Verify( 4945CreateCompilation(test).GetDiagnostics().Verify( 5025CreateCompilation(test).GetDiagnostics().Verify( 5094CreateCompilation(test).GetDiagnostics().Verify( 5182CreateCompilation(test).GetDiagnostics().Verify( 5263CreateCompilation(test).GetDiagnostics().Verify( 5349CreateCompilation(test).GetDiagnostics().Verify( 5423CreateCompilation(test).GetDiagnostics().Verify( 5507CreateCompilation(test).GetDiagnostics().Verify( 5596CreateCompilation(test).GetDiagnostics().Verify( 5717CreateCompilation(test).GetDiagnostics().Verify( 5814CreateCompilation(test).GetDiagnostics().Verify( 5916CreateCompilation(test).GetDiagnostics().Verify( 6188CreateCompilation(test).GetDiagnostics().Verify( 6274CreateCompilation(test).GetDiagnostics().Verify( 6358CreateCompilation(test).GetDiagnostics().Verify( 6437CreateCompilation(test).GetDiagnostics().Verify( 6521CreateCompilation(test).GetDiagnostics().Verify( 6611CreateCompilation(test).GetDiagnostics().Verify( 6747CreateCompilation(test).GetDiagnostics().Verify( 6856CreateCompilation(tree).GetDiagnostics().Verify( 6939CreateCompilation(test).VerifyDiagnostics( 7025CreateCompilation(test).VerifyDiagnostics( 7119CreateCompilation(test).GetDiagnostics().Verify( 7226CreateCompilation(test).GetDiagnostics().Verify( 7328CreateCompilation(test).GetDiagnostics().Verify( 7437CreateCompilation(test).GetDiagnostics().Verify(
Parsing\SuppressNullableWarningExpressionParsingTests.cs (2)
793CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 806CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\SwitchExpressionParsingTests.cs (2)
2569CreateCompilation(code).VerifyDiagnostics( 2650CreateCompilation(code).VerifyDiagnostics(
Parsing\TopLevelStatementsParsingTests.cs (2)
971CreateCompilation(test).VerifyDiagnostics( 3193CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\UsingDirectiveParsingTests.cs (66)
350CreateCompilation(text).VerifyDiagnostics( 605CreateCompilation(text).VerifyDiagnostics( 659CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 709CreateCompilation(text).VerifyDiagnostics( 771CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 831CreateCompilation(text).VerifyDiagnostics( 861CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 901CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 938CreateCompilation(text).VerifyDiagnostics( 975CreateCompilation(text).VerifyDiagnostics( 1019CreateCompilation(text).VerifyDiagnostics( 1064CreateCompilation(text).VerifyDiagnostics( 1108CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1156CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1231CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1304CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1379CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1466CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1545CreateCompilation(text).VerifyDiagnostics( 1605CreateCompilation(text).VerifyDiagnostics( 1708CreateCompilation(text).VerifyDiagnostics( 1807CreateCompilation(text).VerifyDiagnostics( 1848CreateCompilation(text).VerifyDiagnostics( 1898CreateCompilation(text).VerifyDiagnostics( 1945CreateCompilation(text).VerifyDiagnostics( 2023CreateCompilation(text).VerifyDiagnostics( 2096CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2173CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 2248CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2329CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2405CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2473CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2548CreateCompilation(text).VerifyDiagnostics( 2586CreateCompilation(text).VerifyDiagnostics(); 2683CreateCompilation(text).VerifyDiagnostics(); 2828CreateCompilation(text).VerifyDiagnostics(); 2952CreateCompilation(text).VerifyDiagnostics( 3056CreateCompilation(text).VerifyDiagnostics(); 3147CreateCompilation(text).VerifyDiagnostics( 3211CreateCompilation(text).VerifyDiagnostics( 3275CreateCompilation(text).VerifyDiagnostics( 3348CreateCompilation(text).VerifyDiagnostics( 3636CreateCompilation(text).VerifyDiagnostics( 3786CreateCompilation(text).VerifyDiagnostics( 3948var comp = CreateCompilation(text); 3993var comp = CreateCompilation(text); 4036CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4086CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4133CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4180CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4224CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4285CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4343CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4401CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4457CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4500CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4540CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4580CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4617CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4701CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4782CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4863CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4942CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5020CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5097CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5177CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Parsing\ValueTupleTests.cs (1)
719CreateCompilation(test).VerifyDiagnostics(
Syntax\FieldAndValueKeywordTests.cs (44)
40var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 84var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 132var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 170var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 253var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 281var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 379var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 433var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 494var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 511var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 543var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 567var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 584var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 601var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 636var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 700var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 738var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 810var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 846var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 879var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 926var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1110var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1140var comp = CreateCompilation(source); 1156var comp = CreateCompilation(source); 1175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1209var comp = CreateCompilation(sourceA);
Syntax\SyntaxFactoryTests.cs (4)
632CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 649CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 662CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 673CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Syntax\SyntaxTreeTests.cs (6)
364CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 433CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 506CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 577CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 658CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 746CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (40)
CompilingTestBase.cs (1)
25var compilation = CreateCompilation(program);
CSharpTestBase.cs (34)
663CreateCompilation(RefSafetyRulesAttributeDefinition).EmitToImageReference(); 1003var compilation = CreateCompilation(source, references, options, parseOptions, targetFramework, assemblyName: GetUniqueName()); 1146string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib40, assemblyName, sourceFileName); 1155bool skipUsesIsNullable = false) => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib461, assemblyName, sourceFileName, skipUsesIsNullable); 1164bool skipUsesIsNullable = false) => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib461, assemblyName, sourceFileName, skipUsesIsNullable); 1172string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib46, assemblyName, sourceFileName); 1190string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.WinRT, assemblyName, sourceFileName); 1198string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib461AndCSharp, assemblyName, sourceFileName); 1206string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib40AndSystemCore, assemblyName, sourceFileName); 1214string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib40AndSystemCore, assemblyName, sourceFileName); 1222string sourceFileName = "") => CreateCompilation(source, references, options, parseOptions, TargetFramework.StandardAndCSharp, assemblyName, sourceFileName); 1234return CreateCompilation(source, references, options, parseOptions, TargetFramework.Mscorlib40, assemblyName, sourceFileName); 1261return CreateCompilation(source, allReferences, options, parseOptions, TargetFramework.Empty, assemblyName, sourceFileName); 1508var c = CreateCompilation(cSharpSource, options: compilationOptions, targetFramework: targetFramework); 1514var compilation = CreateCompilation(cSharpSource, new[] { reference }, compilationOptions, targetFramework: targetFramework); 1536var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(allowUnsafe)); 2062var compilation = CreateCompilation(testSrc, targetFramework: targetFramework, options: compilationOptions ?? TestOptions.ReleaseDll, parseOptions: parseOptions); 2171var compilation = CreateCompilation( 2190var compilation = CreateCompilation( 2228var compilation = CreateCompilation( 2259var reference = CreateCompilation( 2265var comp = CreateCompilation( 2308var reference = CreateCompilation(TestSources.Index).VerifyDiagnostics(); 2310return CreateCompilation( 2319var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range }).VerifyDiagnostics(); 2321return CreateCompilation( 2330var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2332return CreateCompilation( 2343return CreateCompilation(text, targetFramework: targetFramework, options: options, parseOptions: parseOptions); 2347var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2349return CreateCompilation( 2361return CreateCompilation(text, targetFramework: targetFramework, options: options, parseOptions: parseOptions); 2365var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2367return CreateCompilation(
DiagnosticTestUtilities.cs (1)
47var comp = CSharpTestBase.CreateCompilation(srcs, parseOptions: TestOptions.RegularPreview);
SemanticModelTestBase.cs (4)
96var compilation = CreateCompilation(source); 116var compilation = CreateCompilation(testSrc, parseOptions: parseOptions); 137var compilation = CreateCompilation(testSrc); 148var compilation = CreateCompilation(testSrc);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (47)
CSharpFunctionResolverTests.cs (43)
29var compilation = CreateCompilation(source); 62var bytesA = CreateCompilation(sourceA).EmitToArray(); 63var bytesB = CreateCompilation(sourceB).EmitToArray(); 235var bytes = CreateCompilation(source).EmitToArray(); 318var moduleA = new Module(CreateCompilation(sourceA).EmitToArray(), name: "A.dll"); 320var moduleC = new Module(CreateCompilation(sourceC).EmitToArray(), name: "C.dll"); 410var compilationA = CreateCompilation(sourceA, assemblyName: nameA); 420var compilationB = CreateCompilation(sourceB, assemblyName: nameB, options: TestOptions.DebugExe, references: new[] { refA }); 458var compilation = CreateCompilation(source); 485var compilation = CreateCompilation(source); 512var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 537var compilation = CreateCompilation(source); 560var compilation = CreateCompilation(source); 595var compilation = CreateCompilation(source); 624var compilation = CreateCompilation(source); 661var compilation = CreateCompilation(source); 698var compilation = CreateCompilation(source); 745var compilation = CreateCompilation(source); 782var compilation = CreateCompilation(source); 827var compilation = CreateCompilation(source); 863var compilation = CreateCompilation(source); 907var compilation = CreateCompilation(source); 953var compilation = CreateCompilation(source); 1010var compilation = CreateCompilation(source); 1066var compilation = CreateCompilation(source); 1099var compilation = CreateCompilation(source); 1134var compilation = CreateCompilation(source); 1166var compilation = CreateCompilation(source); 1201var compilationA = CreateCompilation(sourceA); 1209var compilationB = CreateCompilation(sourceB, references: new[] { refA }); 1239var compilation = CreateCompilation(source); 1260var compilation = CreateCompilation(source); 1291var compilation = CreateCompilation(source); 1319var compilation = CreateCompilation(source); 1343var compilation = CreateCompilation(source); 1370var compilation = CreateCompilation(source); 1393var compilation = CreateCompilation(source); 1418var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 1438var compilation = CreateCompilation(source); 1487var compilation = CreateCompilation(source); 1514var compilation = CreateCompilation(source); 1545var compilationB = CreateCompilation(sourceB, references: new[] { refA }); 1572var compilation = CreateCompilation(source);
VisualBasicFunctionResolverTests.cs (4)
32var bytes = CreateCompilation(source).EmitToArray(); 120var compilation = CreateCompilation(source); 157var compilation = CreateCompilation(source); 188var compilation = CreateCompilation(source);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
279Compilation compilation = CSharpTestBase.CreateCompilation(trees.ToArray(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: assemblyName);
Microsoft.CodeAnalysis.Rebuild.UnitTests (9)
CompilationOptionsReaderTests.cs (2)
44var compilation = CreateCompilation( 58var compilation = CreateCompilation(
CSharpDeterministicKeyBuilderTests.cs (4)
76var compilation = CSharpTestBase.CreateCompilation( 156var compilation = CSharpTestBase.CreateCompilation(source); 195var compilation = CSharpTestBase.CreateCompilation(syntaxTree); 218var compilation = CSharpTestBase.CreateCompilation(
CSharpRebuildTests.cs (1)
22var original = CreateCompilation(
OptionRoundTripTests.cs (2)
39var original = CreateCompilation( 78var original = CreateCompilation(
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
95var libSource = CreateCompilation(""" 142var libSource = CreateCompilation(""" 187var libSource = CreateCompilation("""