406 references to CreateCompilationWithMscorlibAndSpan
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (84)
CodeGen\CodeGenAsyncSpillTests.cs (5)
3708
var comp =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.DebugExe);
3715
comp =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.ReleaseExe);
3750
var comp =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.DebugExe);
3757
comp =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.ReleaseExe);
3789
var comp =
CreateCompilationWithMscorlibAndSpan
(source, options: options);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2697
CreateCompilationWithMscorlibAndSpan
(@"
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (45)
173
var comp =
CreateCompilationWithMscorlibAndSpan
(@$"
235
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
289
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
346
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
403
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
461
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
518
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
628
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
705
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
764
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, compilationOptions, parseOptions);
803
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseExe);
925
compilation =
CreateCompilationWithMscorlibAndSpan
(csharp);
945
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
1026
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, options: TestOptions.UnsafeReleaseDll);
1050
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, options: TestOptions.UnsafeReleaseDll);
1093
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, options: TestOptions.UnsafeReleaseDll);
1172
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, options: TestOptions.UnsafeReleaseDll);
1314
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
1367
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseExe);
1478
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
1515
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
1548
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseExe);
1616
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseExe);
2013
var compilation =
CreateCompilationWithMscorlibAndSpan
(@"
2406
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
2540
compilation =
CreateCompilationWithMscorlibAndSpan
(csharp);
2731
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
2800
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
2872
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
2919
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
2962
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
2986
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3036
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3079
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3129
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3169
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3238
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3286
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3317
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3351
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3368
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3410
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3433
var compilation =
CreateCompilationWithMscorlibAndSpan
(src);
3457
var comp =
CreateCompilationWithMscorlibAndSpan
($$"""
3527
var compilation =
CreateCompilationWithMscorlibAndSpan
(csharp, TestOptions.ReleaseDll);
CodeGen\CodeGenReadonlyStructTests.cs (7)
1076
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1098
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1130
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1188
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1221
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1274
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1304
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
CodeGen\CodeGenStackAllocInitializerTests.cs (1)
203
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
CodeGen\CodeGenTests.cs (16)
16289
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeReleaseExe);
16291
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeDebugExe);
16312
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseExe);
16334
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.DebugExe);
16388
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseExe);
16421
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.DebugExe);
16481
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseExe);
16500
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.DebugExe);
16537
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseExe);
16559
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.DebugExe);
16602
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseExe);
16657
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.DebugExe);
16746
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeReleaseExe);
16748
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeDebugExe);
16770
var comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeReleaseExe);
16772
comp =
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeDebugExe);
CodeGen\ForeachTest.cs (8)
314
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
367
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
431
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
532
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
581
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
726
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
780
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
852
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
CodeGen\PatternTests.cs (1)
4951
var compilation =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
RefStructInterfacesTests.cs (3)
3600
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics();
3635
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics(
3676
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }).VerifyDiagnostics();
Semantics\PatternMatchingTests.cs (10)
6725
CreateCompilationWithMscorlibAndSpan
(@"
6749
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithPatternCombinators,
6778
CreateCompilationWithMscorlibAndSpan
(@"
6805
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithPatternCombinators, text: @"
6832
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @"
6928
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithPatternCombinators, text: @"
7024
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @"
7106
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithPatternCombinators, text: @"
7208
CreateCompilationWithMscorlibAndSpan
(@"
7248
CreateCompilationWithMscorlibAndSpan
(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @"
Semantics\PatternMatchingTests3.cs (3)
501
var compilation =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.DebugDll);
522
var compilation =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.DebugDll);
540
var compilation =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.DebugDll);
Semantics\RecordTests.cs (1)
9705
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (295)
Semantics\ForEachTests.cs (5)
3646
var comp =
CreateCompilationWithMscorlibAndSpan
(source, options: TestOptions.ReleaseDebugExe).VerifyDiagnostics();
3750
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
3768
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
3786
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
3803
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
Semantics\NullableReferenceTypesTests.cs (4)
1285
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll);
1368
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2211
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
91330
var comp =
CreateCompilationWithMscorlibAndSpan
(source, options: WithNullableEnable());
Semantics\RecordStructTests.cs (3)
7941
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(
7979
var comp =
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
8013
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\RefEscapingTests.cs (105)
79
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
102
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
128
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
150
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
174
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
235
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
285
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
335
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
351
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
417
var comp =
CreateCompilationWithMscorlibAndSpan
(text);
469
var comp =
CreateCompilationWithMscorlibAndSpan
(text);
514
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics();
518
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
566
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
612
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
670
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
711
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
759
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
799
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
807
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
835
var comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
885
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
899
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
950
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
958
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
1005
var comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1124
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1188
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1241
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1292
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1418
var comp =
CreateCompilationWithMscorlibAndSpan
(new[] { source, UnscopedRefAttributeDefinition });
1450
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1587
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1650
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1726
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
1740
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
1794
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
1804
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
1863
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1927
var comp =
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
1992
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
2038
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
2087
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
2138
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
2153
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
2221
var comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10);
2231
comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11);
2304
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
2323
CreateCompilationWithMscorlibAndSpan
(text).VerifyDiagnostics(
2398
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
2470
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
2486
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
2569
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
2585
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
3511
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
3579
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
3654
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
3737
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4275
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4313
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
4364
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10);
4380
comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11);
4443
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics();
4445
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4487
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4564
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4657
var comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4726
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4780
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4838
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4896
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4908
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4955
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4985
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5009
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5033
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5083
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5133
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5185
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5212
var comp =
CreateCompilationWithMscorlibAndSpan
(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll);
5279
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5318
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
5368
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5412
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5442
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5470
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
5500
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
5633
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5688
var compilation =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
5773
var compilation =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
5888
var compilation =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
5944
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
5975
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
6014
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6052
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
6089
var comp =
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
6126
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6156
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
6199
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
6552
CreateCompilationWithMscorlibAndSpan
(@"
6716
CreateCompilationWithMscorlibAndSpan
(@"
6733
CreateCompilationWithMscorlibAndSpan
(@"
6751
CreateCompilationWithMscorlibAndSpan
(@"
6811
CreateCompilationWithMscorlibAndSpan
(@"
8295
var comp =
CreateCompilationWithMscorlibAndSpan
(source);
Semantics\RefLocalsAndReturnsTests.cs (5)
224
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
276
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
585
var comp =
CreateCompilationWithMscorlibAndSpan
(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4965
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion));
5018
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion));
Semantics\SpanStackSafetyTests.cs (64)
24
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
46
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
65
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
91
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
116
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
141
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
169
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
192
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
215
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
230
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
254
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
278
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
300
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
322
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
358
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
411
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
441
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
473
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
529
var comp =
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10);
548
comp =
CreateCompilationWithMscorlibAndSpan
(new[] { text, UnscopedRefAttributeDefinition });
588
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
658
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
728
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.ReleaseExe);
792
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.ReleaseExe);
853
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.ReleaseExe);
911
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.ReleaseExe);
990
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1006
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
1007
CreateCompilationWithMscorlibAndSpan
(text).VerifyEmitDiagnostics(expectedDiagnostics);
1054
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1061
var comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.ReleaseExe, TestOptions.Regular13);
1064
comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.ReleaseExe);
1132
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1147
CreateCompilationWithMscorlibAndSpan
(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
1148
CreateCompilationWithMscorlibAndSpan
(text).VerifyEmitDiagnostics(expectedDiagnostics);
1201
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.ReleaseExe, TestOptions.Regular12).VerifyDiagnostics(
1208
var comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.ReleaseExe, TestOptions.Regular13);
1211
comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.ReleaseExe);
1239
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1272
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1302
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1390
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1394
comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.DebugExe);
1439
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1744
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1755
comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.DebugExe);
1794
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1805
comp =
CreateCompilationWithMscorlibAndSpan
(text, TestOptions.DebugExe);
1863
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
1900
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text);
2141
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2202
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe);
2238
var comp =
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe);
2248
CompileAndVerify(
CreateCompilationWithMscorlibAndSpan
(@"
2294
CompileAndVerify(
CreateCompilationWithMscorlibAndSpan
(@"
2340
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2447
CreateCompilationWithMscorlibAndSpan
(@"
2533
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
2586
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
2621
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.DebugExe);
2646
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.DebugExe);
2671
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.DebugExe);
2701
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.DebugExe);
2724
CSharpCompilation comp =
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.DebugExe);
Semantics\StackAllocInitializerTests.cs (62)
23
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
110
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
175
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
237
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
290
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
343
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
416
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
492
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
531
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
570
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
597
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3)
618
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8)
646
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3)
658
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8)
695
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3)
707
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8)
724
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
746
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
767
var comp =
CreateCompilationWithMscorlibAndSpan
("""
786
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
805
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
824
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
843
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
870
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
897
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
919
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
942
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
965
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
993
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1095
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
1198
CreateCompilationWithMscorlibAndSpan
(@"
1309
CreateCompilationWithMscorlibAndSpan
(@"
1324
CreateCompilationWithMscorlibAndSpan
(@"
1340
CreateCompilationWithMscorlibAndSpan
(@"
1366
CreateCompilationWithMscorlibAndSpan
(@"
1386
CreateCompilationWithMscorlibAndSpan
(@"
1413
CreateCompilationWithMscorlibAndSpan
(@"
1436
CreateCompilationWithMscorlibAndSpan
(@"
1463
CreateCompilationWithMscorlibAndSpan
(@"
1535
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1564
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1593
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1648
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1685
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1716
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1727
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics(
1749
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1769
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.ReleaseDll).VerifyDiagnostics(
1793
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1804
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
1852
CreateCompilationWithMscorlibAndSpan
(@"
1894
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1905
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
1931
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1942
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
1959
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
1979
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
1995
CreateCompilationWithMscorlibAndSpan
(@"
2344
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2450
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2538
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
2628
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
Semantics\StackAllocSpanExpressionsTests.cs (35)
26
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
100
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
175
CreateCompilationWithMscorlibAndSpan
(@"
236
CreateCompilationWithMscorlibAndSpan
(@"
249
CreateCompilationWithMscorlibAndSpan
(@"
263
CreateCompilationWithMscorlibAndSpan
(@"
280
CreateCompilationWithMscorlibAndSpan
(@"
295
CreateCompilationWithMscorlibAndSpan
(@"
314
CreateCompilationWithMscorlibAndSpan
(@"
345
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
353
CreateCompilationWithMscorlibAndSpan
(source, TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
365
CreateCompilationWithMscorlibAndSpan
(@"
384
CreateCompilationWithMscorlibAndSpan
(@"
432
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
453
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
490
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
512
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
517
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
540
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
545
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics(
561
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
566
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics(
588
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
593
CreateCompilationWithMscorlibAndSpan
(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
620
CreateCompilationWithMscorlibAndSpan
(@"
648
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
653
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
671
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
676
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
691
CreateCompilationWithMscorlibAndSpan
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
699
CreateCompilationWithMscorlibAndSpan
(source).VerifyDiagnostics(
709
CreateCompilationWithMscorlibAndSpan
(@"
729
CreateCompilationWithMscorlibAndSpan
(@"
810
CreateCompilationWithMscorlibAndSpan
(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
836
CreateCompilationWithMscorlibAndSpan
(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\TopLevelStatementsTests.cs (2)
8707
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
8725
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
Semantics\UnsafeTests.cs (10)
9824
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
9828
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
11166
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11176
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11197
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11202
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11220
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
11250
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics(
11264
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics(
11277
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (1)
216
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
26
var comp =
CreateCompilationWithMscorlibAndSpan
(@"
Symbols\Source\PropertyTests.cs (1)
2896
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (1)
2915
CreateCompilationWithMscorlibAndSpan
(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\ParserErrorMessageTests.cs (1)
4759
CreateCompilationWithMscorlibAndSpan
(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
Parsing\RefStructs.cs (5)
220
CreateCompilationWithMscorlibAndSpan
(@"
236
CreateCompilationWithMscorlibAndSpan
(@"
253
CreateCompilationWithMscorlibAndSpan
(@"
268
CreateCompilationWithMscorlibAndSpan
(@"
282
CreateCompilationWithMscorlibAndSpan
(@"