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)
60
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
79
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
83
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
111
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
116
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
119
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
157
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
169
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, options: TestOptions.ReleaseExe);
172
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.ReleaseExe);
193
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
198
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
201
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
222
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
258
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
280
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
306
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics();
315
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
316
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
340
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
362
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
367
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
370
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
393
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
450
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
455
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
458
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
481
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
486
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
489
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
511
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
516
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
519
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
541
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
546
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
549
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
572
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
577
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
580
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
600
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
610
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
611
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
630
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
683
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
693
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
694
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
713
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
723
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
724
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
743
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
770
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
804
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
834
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
860
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
890
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
895
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
916
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
942
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
971
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
976
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
997
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1024
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
1050
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
1055
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
1069
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1099
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1118
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1132
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1162
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1181
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1195
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
1225
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1244
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1637
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
1925
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
2820
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
2853
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
2902
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2918
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2933
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2979
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2995
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3011
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3027
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3041
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3060
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3076
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3092
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3108
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3122
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3140
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3235
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3253
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3383
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3399
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3485
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3521
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3522
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3545
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3581
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3582
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3605
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3644
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3645
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3668
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3707
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3708
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3723
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3743
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3764
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3765
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3787
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3814
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3815
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
3835
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3869
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3909
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
3942
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3943
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3965
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), targetFramework: TargetFramework.Net90).VerifyDiagnostics(
3996
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4015
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4027
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
4028
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
4043
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4073
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(
4102
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(
4125
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
4147
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics();
4161
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4204
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4226
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4272
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4298
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.DebugDll);
4332
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4357
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4373
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4389
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4407
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4432
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4448
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4464
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4582
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4623
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
4680
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
4684
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
4703
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4732
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4750
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4754
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4773
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4790
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4794
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4813
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4830
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
4834
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
4856
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4892
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4916
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4939
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4954
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
4955
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
4975
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
4996
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
4997
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5029
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5053
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5054
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5079
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5124
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5125
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5146
CreateCompilationWithSpanAndMemoryExtensions
(source, TestOptions.UnsafeReleaseExe, TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5171
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13);
5257
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
5261
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
5281
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5366
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5374
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5412
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5435
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5461
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5476
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5477
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5497
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5512
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5513
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5531
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5549
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5581
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5612
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5656
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5668
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5669
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5687
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
5692
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
5695
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
5723
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5749
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5774
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5793
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
5820
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5837
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5858
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5888
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5912
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics();
5924
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5925
CreateCompilationWithSpanAndMemoryExtensions
(source).VerifyDiagnostics(expectedDiagnostics);
5943
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
5967
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90).VerifyDiagnostics(
6002
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6009
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6012
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6035
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6042
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6045
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6068
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6075
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
6078
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
6101
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6108
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90);
6111
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, targetFramework: TargetFramework.Net90);
6134
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6141
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6144
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6175
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(
6182
var comp =
CreateCompilationWithSpanAndMemoryExtensions
(source, parseOptions: TestOptions.RegularNext);
6185
comp =
CreateCompilationWithSpanAndMemoryExtensions
(source);
6216
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);