321 references to CreateCompilationWithSpanAndMemoryExtensions
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
CodeGen\CodeGenLengthBasedSwitchTests.cs (2)
829
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
1034
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (302)
FirstClassSpanTests.cs (227)
59
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
78
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
82
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
110
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
115
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
118
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
156
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
168
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, options: TestOptions.ReleaseExe);
171
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.ReleaseExe);
192
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
197
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
200
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
221
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
257
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
279
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
305
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics();
314
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
315
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
339
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
361
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
366
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
369
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
392
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
449
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
454
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
457
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
480
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
485
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
488
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
510
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
515
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
518
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
540
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
545
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
548
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
571
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
576
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
579
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
599
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
609
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
610
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
629
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
682
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
692
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
693
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
712
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
722
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
723
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
742
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
769
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
803
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
833
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
859
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
889
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
894
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
915
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
941
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
970
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
975
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
996
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1023
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
1049
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
1054
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
1068
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1098
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1117
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1131
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1161
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1180
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1194
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1224
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1243
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1636
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
1924
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
2819
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
2852
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
2901
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2917
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2932
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2978
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2994
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3010
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3026
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3040
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3059
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3075
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3091
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3107
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3121
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3139
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3234
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3252
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3382
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3398
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3484
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3520
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3521
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3544
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3580
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3581
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3604
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3643
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3644
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3667
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3706
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3707
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3722
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3742
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3763
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3764
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3786
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3813
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3814
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3834
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3868
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3908
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3941
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3942
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3964
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), targetFramework: TargetFramework.Net90).VerifyDiagnostics(
3995
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4014
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4026
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
4027
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
4042
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4072
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(
4101
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(
4124
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
4146
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics();
4160
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4203
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4225
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4271
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4297
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.DebugDll);
4331
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4356
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4372
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4388
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4406
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4431
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4447
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4463
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4581
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4622
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
4679
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
4683
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4702
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4731
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4749
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4753
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4772
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4789
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4793
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4812
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4829
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4833
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4855
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4891
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4915
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4938
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4953
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
4954
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
4974
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4995
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
4996
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5028
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5052
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5053
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5078
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5123
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5124
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5145
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.UnsafeReleaseExe, TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5170
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
5256
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
5260
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
5280
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5365
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5373
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5411
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5434
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5460
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5475
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5476
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5496
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5511
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5512
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5530
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5548
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5580
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5611
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5655
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5667
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5668
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5686
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5691
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
5694
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
5722
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5748
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5773
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5792
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5819
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5836
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5857
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5887
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5911
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics();
5923
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5924
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5942
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
5966
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
6001
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6008
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6011
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6034
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6041
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6044
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6067
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6074
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
6077
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
6100
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6107
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
6110
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
6133
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6140
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6143
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6174
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6181
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6184
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6215
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
Semantics\CollectionExpressionTests.cs (1)
15509
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(
Semantics\PatternMatchingTests.cs (74)
7391
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
7440
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
7505
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
7584
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
7669
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe,
7816
compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe);
7986
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe,
8120
compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
8263
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
8343
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
8444
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
8606
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular10);
8612
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
8648
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular10);
8654
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
8692
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8711
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8728
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8748
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8765
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
8782
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8798
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8815
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
8837
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
8873
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
8955
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
8982
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
9033
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
9099
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
9180
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
9267
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe,
9414
compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe);
9585
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe,
9719
compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
9863
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
9944
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
10044
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview)
10209
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular10);
10215
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
10250
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular10);
10256
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
10293
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10312
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10329
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10349
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10366
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
10383
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10399
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10416
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview);
10438
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
10476
var compilation =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview)
10558
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
10575
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10606
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10626
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10648
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10676
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10703
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10734
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
10752
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10782
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
10800
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10824
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10854
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
10910
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
11181
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11);
11361
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
11385
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
11406
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
11463
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular11);
12299
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
12321
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
12339
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
12353
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularPreview)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\RefFieldTests.cs (17)
9166
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9189
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9221
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9265
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9311
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9366
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9415
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9521
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9569
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9621
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9660
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
10134
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
10318
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source,
10362
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source,
10505
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
20009
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
20068
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);