775 references to Regular8
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
657var testParameters = new TestParameters(options: options, parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
QuickInfo\SemanticQuickInfoSourceTests.cs (14)
7922await TestWithOptionsAsync(TestOptions.Regular8, 7941await TestWithOptionsAsync(TestOptions.Regular8, 7961await TestWithOptionsAsync(TestOptions.Regular8, 7982await TestWithOptionsAsync(TestOptions.Regular8, 8004await TestWithOptionsAsync(TestOptions.Regular8, 8025await TestWithOptionsAsync(TestOptions.Regular8, 8047await TestWithOptionsAsync(TestOptions.Regular8, 8073await TestWithOptionsAsync(TestOptions.Regular8, 8099await TestWithOptionsAsync(TestOptions.Regular8, 8121await TestWithOptionsAsync(TestOptions.Regular8, 8165await TestWithOptionsAsync(TestOptions.Regular8, 8207await TestWithOptionsAsync(TestOptions.Regular8, 8229await TestWithOptionsAsync(TestOptions.Regular8, 8365await TestWithOptionsAsync(TestOptions.Regular8,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
618comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular8); 1926comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8);
CodeGen\CodeGenAwaitForeachTests.cs (8)
45comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 75comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 382var comp = CreateCompilationWithMscorlib46(source, parseOptions: useCsharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 8162var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8); 9089parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9165parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9243parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9375parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3);
CodeGen\CodeGenAwaitUsingTests.cs (1)
341comp = CreateCompilationWithTasksExtensions([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
CodeGen\CodeGenForEachTests.cs (1)
4446var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8);
CodeGen\CodeGenTupleTest.cs (3)
16169var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16269var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 25464var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\NumericIntPtrTests.cs (6)
1231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1275var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1646comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1757comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 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);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (121)
Attributes\AttributeTests_NativeInteger.cs (7)
165var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular8); 256var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 342var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 419var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 502var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 590var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 706var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8);
Attributes\AttributeTests_Nullable.cs (81)
30var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular8); 355var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 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); 608parseOptions: TestOptions.Regular8); 656parseOptions: TestOptions.Regular8); 709parseOptions: TestOptions.Regular8); 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); 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() }); 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() }); 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() }); 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); 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); 2145var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2192parseOptions: TestOptions.Regular8, 2219parseOptions: TestOptions.Regular8, 2239var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { ref0 }); 2272parseOptions: TestOptions.Regular8, 2296parseOptions: TestOptions.Regular8, 2492var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2505parseOptions: TestOptions.Regular8, 2530parseOptions: TestOptions.Regular8, 2556parseOptions: TestOptions.Regular8, 3471var parseOptions = TestOptions.Regular8; 3516var parseOptions = TestOptions.Regular8; 3632var parseOptions = TestOptions.Regular8; 4415parseOptions: TestOptions.Regular8.WithNoRefSafetyRulesAttribute()); 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() }); 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);
Attributes\AttributeTests_NullableContext.cs (1)
337var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
Attributes\AttributeTests_NullablePublicOnly.cs (17)
32var parseOptions = TestOptions.Regular8; 57var parseOptions = TestOptions.Regular8; 84var parseOptions = TestOptions.Regular8; 100var parseOptions = TestOptions.Regular8; 140var parseOptions = TestOptions.Regular8; 160var parseOptions = TestOptions.Regular8; 180var parseOptions = TestOptions.Regular8; 200var parseOptions = TestOptions.Regular8; 217var parseOptions = TestOptions.Regular8; 254parseOptions: TestOptions.Regular8.WithNullablePublicOnly()); 271var parseOptions = TestOptions.Regular8; 291var parseOptions = TestOptions.Regular8; 310var parseOptions = TestOptions.Regular8; 330var parseOptions = TestOptions.Regular8; 354var parseOptions = TestOptions.Regular8; 377var parseOptions = TestOptions.Regular8; 566var parseOptions = TestOptions.Regular8;
Semantics\PatternMatchingTests.cs (1)
4347CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\PatternMatchingTests2.cs (3)
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);
Semantics\PatternMatchingTests3.cs (1)
1243CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\PatternSwitchTests.cs (1)
1688var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8);
Semantics\RecordTests.cs (9)
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); 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); 2811comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 2818comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll.WithWarningLevel(6));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
657var testParameters = new TestParameters(options: options, parseOptions: TestOptions.Regular8);
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (1)
146await TestAllMissingOnExpressionAsync("o == 1 || o == 2", parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (1)
482parseOptions: TestOptions.Regular8
IOperation\IOperationTests_IIsPatternExpression.cs (1)
1317var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }, parseOptions: TestOptions.Regular8);
IOperation\IOperationTests_IThrowOperation.cs (1)
2171var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (432)
Semantics\AnonymousFunctionTests.cs (1)
72CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\ConditionalOperatorTests.cs (7)
71TestConditional("true ? T : U", null, parseOptions: TestOptions.Regular8, 74TestConditional("true ? T : U", null, parseOptions: TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), 77TestConditional("false ? T : 1", null, parseOptions: TestOptions.Regular8, 79TestConditional("false ? T : 1", null, parseOptions: TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), 194TestConditional("1 ? null : null", null, parseOptions: TestOptions.Regular8, 1246TestConditionalCore(conditionalExpression, expectedType, TestOptions.Regular8, expectedDiagnostics); 1247TestConditionalCore(conditionalExpression, expectedType, TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedDiagnostics);
Semantics\FunctionPointerTests.cs (1)
40var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular8);
Semantics\ImplicitObjectCreationTests.cs (1)
93var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8);
Semantics\IndexAndRangeTests.cs (2)
1000compilation = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1483CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\InheritanceBindingTests.cs (2)
8750CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 8813CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\InitOnlyMemberTests.cs (11)
40var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 77var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 148var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 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"); 346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8,
Semantics\LambdaDiscardParametersTests.cs (2)
44}", parseOptions: TestOptions.Regular8); 277var comp2 = CreateCompilation(src, parseOptions: TestOptions.Regular8);
Semantics\LambdaTests.cs (3)
3096comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3254comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7008var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\LocalFunctionTests.cs (7)
886var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 2186comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 3038comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3065comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3737comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5257comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5321comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\NativeIntegerTests.cs (51)
70var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2925var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2972var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 3159var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3199comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3202comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3299var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3379comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3382comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3459comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3563var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 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); 3670var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseExe); 3702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3772var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3815var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3833var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3879var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3933var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3965var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4001var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4023var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4051var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4106var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4170var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 4202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4282var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4758var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4890comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5063comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5247comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8); 5447comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5506comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5553comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5609comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5687comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5737comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5871comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6004comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6036comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 7227comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 7230comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8);
Semantics\NullableReferenceTypesTests.cs (278)
2815var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 4020CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4148var c2 = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4674CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 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); 7724var c = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 7796var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7811var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7856c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 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); 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); 8616comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8622comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8628comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8718parseOptions: TestOptions.Regular8); 9654parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 9805parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 9924parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10033parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10162parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10279parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10316parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference() }); 10442parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference() }); 11245var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 11816var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 12450var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 13376var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13449var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13554var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13587var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13851parseOptions: TestOptions.Regular8); 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); 23568" }, references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular8); 23695var c = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular8); 29759", MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 41645var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 41881var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 47056var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular8); 48800var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 59009parseOptions: TestOptions.Regular8); 59319parseOptions: TestOptions.Regular8); 59351parseOptions: TestOptions.Regular8); 59391parseOptions: TestOptions.Regular8); 59418parseOptions: TestOptions.Regular8); 65462parseOptions: TestOptions.Regular8); 65518parseOptions: TestOptions.Regular8); 66875var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 71187" }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 71244parseOptions: TestOptions.Regular8); 71314parseOptions: TestOptions.Regular8); 71355parseOptions: TestOptions.Regular8); 71392parseOptions: TestOptions.Regular8); 71429parseOptions: TestOptions.Regular8); 71462parseOptions: TestOptions.Regular8); 71494parseOptions: TestOptions.Regular8); 77103parseOptions: TestOptions.Regular8, 77108parseOptions: TestOptions.Regular8, 77144parseOptions: TestOptions.Regular8, 77149parseOptions: TestOptions.Regular8, 77314parseOptions: TestOptions.Regular8, 77345parseOptions: TestOptions.Regular8, 77372parseOptions: TestOptions.Regular8, 77378parseOptions: TestOptions.Regular8, 77479parseOptions: TestOptions.Regular8, 77495parseOptions: TestOptions.Regular8, 77507parseOptions: TestOptions.Regular8, 77513parseOptions: TestOptions.Regular8, 77540parseOptions: TestOptions.Regular8, 77546parseOptions: TestOptions.Regular8, 77647parseOptions: TestOptions.Regular8, 77666parseOptions: TestOptions.Regular8, 77679parseOptions: TestOptions.Regular8, 77685parseOptions: TestOptions.Regular8, 77788parseOptions: TestOptions.Regular8, 77807parseOptions: TestOptions.Regular8, 77820parseOptions: TestOptions.Regular8, 77826parseOptions: TestOptions.Regular8, 77934parseOptions: TestOptions.Regular8, 77965parseOptions: TestOptions.Regular8, 77981parseOptions: TestOptions.Regular8, 77997parseOptions: TestOptions.Regular8, 78027parseOptions: TestOptions.Regular8); 78051parseOptions: TestOptions.Regular8); 78087parseOptions: TestOptions.Regular8); 78123parseOptions: TestOptions.Regular8); 78181parseOptions: TestOptions.Regular8, 78883parseOptions: TestOptions.Regular8, 78910parseOptions: TestOptions.Regular8); 78946parseOptions: TestOptions.Regular8); 79076parseOptions: TestOptions.Regular8); 79140parseOptions: TestOptions.Regular8); 79222parseOptions: TestOptions.Regular8); 79246parseOptions: TestOptions.Regular8); 79273parseOptions: TestOptions.Regular8); 79300parseOptions: TestOptions.Regular8); 79326parseOptions: TestOptions.Regular8); 79535parseOptions: TestOptions.Regular8); 79833parseOptions: TestOptions.Regular8); 79864parseOptions: TestOptions.Regular8); 79898parseOptions: TestOptions.Regular8); 79932parseOptions: TestOptions.Regular8); 79963parseOptions: TestOptions.Regular8); 79993parseOptions: TestOptions.Regular8, 80026parseOptions: TestOptions.Regular8); 80146parseOptions: TestOptions.Regular8); 80190parseOptions: TestOptions.Regular8, 80281parseOptions: TestOptions.Regular8, 80326parseOptions: TestOptions.Regular8); 80620parseOptions: TestOptions.Regular8); 80626parseOptions: TestOptions.Regular8); 80715var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 80719comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 80838parseOptions: TestOptions.Regular8); 80861parseOptions: TestOptions.Regular8); 80964parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 80998parseOptions: TestOptions.Regular8); 81101parseOptions: TestOptions.Regular8); 81153parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking")); 81164parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking", "0")); 81175parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking", "1")); 81209parseOptions: TestOptions.Regular8); 81218parseOptions: TestOptions.Regular8); 81245parseOptions: TestOptions.Regular8); 81396parseOptions: TestOptions.Regular8); 81415parseOptions: TestOptions.Regular8, 81951var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 82325parseOptions: TestOptions.Regular8); 82343parseOptions: TestOptions.Regular8); 82563parseOptions: TestOptions.Regular8); 82616parseOptions: TestOptions.Regular8); 82637parseOptions: TestOptions.Regular8); 82652parseOptions: TestOptions.Regular8); 83260var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84161var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 90862var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 92737parseOptions: TestOptions.Regular8); 92763parseOptions: TestOptions.Regular8); 92798parseOptions: TestOptions.Regular8); 93478parseOptions: TestOptions.Regular8); 93511parseOptions: TestOptions.Regular8); 94012parseOptions: TestOptions.Regular8); 94083parseOptions: TestOptions.Regular8); 94328parseOptions: TestOptions.Regular8); 94352parseOptions: TestOptions.Regular8); 94376parseOptions: TestOptions.Regular8); 94400parseOptions: TestOptions.Regular8); 94423parseOptions: TestOptions.Regular8); 94444parseOptions: TestOptions.Regular8); 94550parseOptions: TestOptions.Regular8); 94569parseOptions: TestOptions.Regular8); 94590parseOptions: TestOptions.Regular8); 94622parseOptions: TestOptions.Regular8); 97355var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97590var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97856comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, 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); 98047var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 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); 98368parseOptions: TestOptions.Regular8).VerifyDiagnostics( 98649var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99337var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99462var comp6 = CreateCompilation(new[] { source1 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 99619var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99702var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99992var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100363var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100460var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100610var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 104973parseOptions: TestOptions.Regular8); 105762var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105810var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 106109var comp2 = CreateCompilation(new[] { source2 }, references: new[] { reference }, parseOptions: TestOptions.Regular8); 107722var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 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); 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); 110986var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 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); 111594var comp0 = CreateCompilation(new[] { source0 }, parseOptions: TestOptions.Regular8); 111745var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111799var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 112082var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 112630var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 112650comp0 = CreateCompilation(new[] { source0 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 114861var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 115074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 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( 117517CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117657CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).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( 117932CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117955CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118187CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118231CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 119803CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 120421var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 121384CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).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( 122406CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122428CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122449CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122615CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122780CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123174CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123196CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123242CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123264CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 131919var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 132527var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 135977var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 139819CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 147621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147712var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147834var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148013var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148121var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148356var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148440var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148608var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 149889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149911var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 149950comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 149989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 151280comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular8); 155225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155286var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 155359comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 155571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 156384", parseOptions: TestOptions.Regular8);
Semantics\NullableReferenceTypesVsPatterns.cs (1)
1019var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8);
Semantics\NullableTests.cs (2)
68comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 92var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\NullCoalesceAssignmentTests.cs (4)
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);
Semantics\RecordStructTests.cs (7)
11237var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11315var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11344var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11373var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\RefEscapingTests.cs (2)
2631""", options: TestOptions.Regular8); 2664""", options: TestOptions.Regular8);
Semantics\SemanticErrorTests.cs (1)
6542CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\StackAllocInitializerTests.cs (5)
618CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 658CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 707CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 1727CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1942CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (3)
545CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 653CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\SwitchTests.cs (2)
2724CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 2754CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\TargetTypedConditionalOperatorTests.cs (4)
412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe) 432CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll.WithAllowUnsafe(true)) 451CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll) 707var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\TargetTypedDefaultTests.cs (1)
595var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
Semantics\TopLevelStatementsTests.cs (1)
611var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8);
Semantics\UninitializedNonNullableFieldTests.cs (26)
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); 812var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 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); 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); 2078var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8);
Semantics\UnsafeTests.cs (2)
11176CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11202CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\UsingDeclarationTests.cs (3)
851CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 880CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 956CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\UsingStatementTests.cs (2)
1169CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1198CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (28)
Compilation\SemanticModelAPITests.cs (2)
87var comp1 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 89var comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular8,
SymbolDisplay\SymbolDisplayTests.cs (5)
5921var comp = (Compilation)CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 5993var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6062var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6181var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6220var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8);
Symbols\CovariantReturnTests.cs (1)
427parseOptions: parseOptions ?? TestOptions.Regular8,
Symbols\DefaultInterfaceImplementationTests.cs (6)
1624parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 1680parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 66992parseOptions: TestOptions.Regular8, 67033parseOptions: TestOptions.Regular8, 67097parseOptions: TestOptions.Regular8, 67994foreach (var parseOptions in new[] { TestOptions.Regular8, TestOptions.Regular9, TestOptions.Regular })
Symbols\ExtendedPartialMethodsTests.cs (9)
29var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 128var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 380var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 642var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 911var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1040var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1440var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1939var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8);
Symbols\ExtensionMethodTests.cs (1)
2842var compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions: TestOptions.Regular8);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (1)
39var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Symbols\Source\NullablePublicAPITests.cs (3)
1373var newCoalesce = (AssignmentExpressionSyntax)SyntaxFactory.ParseExpression(@"s3 ??= s1", options: TestOptions.Regular8); 1737var featureFlagOff = TestOptions.Regular8.WithFeature("run-nullable-analysis", "never"); 2623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8.WithFeature("run-nullable-analysis", flagState));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (151)
Parsing\AnonymousFunctionParsingTests.cs (55)
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( 893CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 904UsingStatement(test, options: TestOptions.Regular8); 958CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 972UsingStatement(test, options: TestOptions.Regular8); 1024CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1035UsingStatement(test, options: TestOptions.Regular8); 1094CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1105UsingStatement(test, options: TestOptions.Regular8); 1166CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1177UsingStatement(test, options: TestOptions.Regular8); 1233UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1280UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1330CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1344UsingStatement(test, options: TestOptions.Regular8, 1407CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1421UsingStatement(test, options: TestOptions.Regular8, 1478UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1532UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1600CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1623UsingStatement(test, options: TestOptions.Regular8, 1704CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1727UsingStatement(test, options: TestOptions.Regular8, 1799CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1810UsingStatement(test, options: TestOptions.Regular8); 1889CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1916UsingStatement(test, options: TestOptions.Regular8, 2007CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2045UsingStatement(test, options: TestOptions.Regular8, 2112CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2129UsingStatement(test, options: TestOptions.Regular8); 2201CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2215UsingStatement(test, options: TestOptions.Regular8); 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\AsyncStreamsParsingTests.cs (3)
45", options: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 286", options: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 479", options: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3);
Parsing\DeclarationParsingTests.cs (4)
8787CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8807useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 8916CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8952useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9);
Parsing\ExpressionParsingTests.cs (4)
243UsingExpression(text, TestOptions.Regular8); 318UsingExpression(text, TestOptions.Regular8); 617TestPostfixUnary(SyntaxKind.ExclamationToken, TestOptions.Regular8); 700TestAssignment(SyntaxKind.QuestionQuestionEqualsToken, options: TestOptions.Regular8);
Parsing\FileModifierParsingTests.cs (5)
2521options: TestOptions.Regular8, 2613options: TestOptions.Regular8, 2712options: TestOptions.Regular8, 2806options: TestOptions.Regular8, 2905options: TestOptions.Regular8, expectedBindingDiagnostics: new[]
Parsing\FunctionPointerTests.cs (2)
510CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 533UsingStatement(text, options: TestOptions.Regular8);
Parsing\ImplicitObjectCreationParsingTests.cs (6)
408CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 416UsingExpression(test, options: TestOptions.Regular8); 457CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 465UsingExpression(test, options: TestOptions.Regular8); 538CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 552UsingExpression(test, options: TestOptions.Regular8);
Parsing\LocalFunctionParsingTests.cs (12)
706CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 723UsingTree(code, TestOptions.Regular8); 795CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 809UsingTree(code, TestOptions.Regular8); 1727CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1739UsingDeclaration(text, options: TestOptions.Regular8); 1824CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1854UsingDeclaration(text, options: TestOptions.Regular8); 1973CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2027UsingDeclaration(text, options: TestOptions.Regular8, 2496CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2550UsingDeclaration(text, options: TestOptions.Regular8,
Parsing\NullableParsingTests.cs (4)
742CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 753UsingStatement(test, options: TestOptions.Regular8); 810CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 833UsingStatement(test, options: TestOptions.Regular8,
Parsing\ParserErrorMessageTests.cs (1)
2714CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\PatternParsingTests.cs (2)
1856CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1867UsingStatement(test, TestOptions.Regular8);
Parsing\RecordParsing.cs (16)
108UsingTree(text, options: TestOptions.Regular8); 109CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 264var tree = ParseTree(text, options: TestOptions.Regular8); 267CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 330var tree = ParseTree(text, options: TestOptions.Regular8); 1209CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1217var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular8); 2735UsingTree(text, options: TestOptions.Regular8, 2744CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2930CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2954UsingTree(text, options: TestOptions.Regular8, 3298UsingTree(text, options: TestOptions.Regular8); 3800CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3808UsingTree(text, options: TestOptions.Regular8, 3873UsingTree(text, options: TestOptions.Regular8); 3875CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Parsing\StatementParsingTests.cs (24)
178TestPostfixUnaryOperator(SyntaxKind.ExclamationToken, TestOptions.Regular8); 2393var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2421UsingStatement(@"using T a = b;", options: TestOptions.Regular8); 2488var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2518UsingStatement("using public readonly var a = b;", TestOptions.Regular8, 2558UsingStatement(@"using var a = b;", options: TestOptions.Regular8); 2588UsingStatement(@"await using T a = b;", TestOptions.Regular8); 2620var statement = this.ParseStatement(text, 0, TestOptions.Regular8); 2651UsingStatement(@"await using var a = b;", TestOptions.Regular8); 2765UsingStatement(@"await var a = b;", TestOptions.Regular8, 2836var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2873UsingStatement(@"using T a = b, c = d;", options: TestOptions.Regular8); 2939var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2956UsingStatement(@"using var x = f ? a : b;", options: TestOptions.Regular8); 3000var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3022var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3039UsingStatement(@"using f ? x = a;", options: TestOptions.Regular8); 3094var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3111UsingStatement("using f? x, y;", options: TestOptions.Regular8); 3142UsingStatement("using ref int x = ref y;", TestOptions.Regular8); 3180UsingStatement("using ref readonly int x = ref y;", TestOptions.Regular8); 3219UsingStatement("using ref var x = ref y;", TestOptions.Regular8); 3257UsingStatement("using ref var x = y;", TestOptions.Regular8); 3291UsingStatement("using readonly var x, y = ref z;", TestOptions.Regular8,
Parsing\SuppressNullableWarningExpressionParsingTests.cs (8)
79TestOptions.Regular8); 99TestOptions.Regular8); 123TestOptions.Regular8); 151TestOptions.Regular8); 188TestOptions.Regular8, 228TestOptions.Regular8); 806CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 820UsingNode(text, options: TestOptions.Regular8);
Parsing\TopLevelStatementsParsingTests.cs (2)
3193CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3217UsingTree(test, TestOptions.Regular8,
Syntax\SyntaxFactoryTests.cs (3)
626var parsedWith8 = SyntaxFactory.ParseTypeName(type, options: TestOptions.Regular8); 632CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 662CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
TestOptions.cs (2)
66public static readonly CSharpParseOptions RegularWithRecursivePatterns = Regular8; 67public static readonly CSharpParseOptions RegularWithoutPatternCombinators = Regular8;