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