338 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (265)
CodeGen\CodeGenAsyncEHTests.cs (2)
4735
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics();
4736
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe), expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenAsyncIteratorTests.cs (20)
117
var lib =
CreateCompilationWithTasksExtensions
(AsyncStreamsTypes);
119
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
134
var lib =
CreateCompilationWithTasksExtensions
(new[] { AsyncStreamsTypes });
136
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
143
=>
CreateCompilationWithTasksExtensions
(new[] { (CSharpTestSource)CSharpTestBase.Parse(source, filename: "source", parseOptions), CSharpTestBase.Parse(AsyncStreamsTypes, filename: "AsyncStreamsTypes", parseOptions) },
147
=>
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: options, parseOptions: parseOptions);
588
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe);
617
var comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular7_3);
620
comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular8);
1497
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1913
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3);
1916
comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8);
2350
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2428
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2477
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2522
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2565
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
3691
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9);
6740
var comp =
CreateCompilationWithTasksExtensions
(new[] { source });
8262
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAsyncMainTests.cs (2)
1976
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
1998
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (1)
2064
var compilation =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenAwaitForeachTests.cs (143)
42
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3);
45
comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8);
72
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3);
75
comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8);
90
var lib =
CreateCompilationWithTasksExtensions
(new[] { lib_cs, s_IAsyncEnumerable });
102
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib.EmitToImageReference() });
125
var comp_checked =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
177
var comp_checked =
CreateCompilationWithTasksExtensions
(new[] { checkedSource, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
182
var comp_unchecked =
CreateCompilationWithTasksExtensions
(new[] { uncheckedSource, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
380
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
833
var comp =
CreateCompilationWithTasksExtensions
(source);
880
var comp =
CreateCompilationWithTasksExtensions
(source);
1135
var comp =
CreateCompilationWithTasksExtensions
(source);
1170
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1222
var comp =
CreateCompilationWithTasksExtensions
(source);
1281
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1405
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1555
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1675
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1789
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1908
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2020
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2106
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
2286
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2308
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2340
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2373
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2427
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2463
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2507
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12);
2520
comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13);
2523
comp =
CreateCompilationWithTasksExtensions
(source);
2575
var comp =
CreateCompilationWithTasksExtensions
(sources, parseOptions: TestOptions.Regular12);
2583
comp =
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13);
2586
comp =
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe);
2684
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12);
2697
comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13);
2700
comp =
CreateCompilationWithTasksExtensions
(source);
2723
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll);
2759
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2796
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2833
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2870
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2925
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3068
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3083
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3084
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
3163
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
3272
var comp =
CreateCompilationWithTasksExtensions
([source, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
3446
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
3450
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3453
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
3584
CreateCompilationWithTasksExtensions
(sources, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
3588
var comp =
CreateCompilationWithTasksExtensions
(sources, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3591
comp =
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe);
3765
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3843
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3850
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3853
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
3961
CreateCompilationWithTasksExtensions
(sources, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3968
var comp =
CreateCompilationWithTasksExtensions
(sources, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3971
comp =
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe);
4072
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4084
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
4085
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
4214
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
4269
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4394
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4540
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4663
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4703
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4754
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4795
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4825
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
4884
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5017
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5213
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5332
var lib =
CreateCompilationWithTasksExtensions
(enumerator + s_IAsyncEnumerable);
5335
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib.EmitToImageReference() });
5371
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
5401
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
5455
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5607
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5960
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6093
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6260
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6436
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6535
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6565
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6608
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6740
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6872
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6930
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7085
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7231
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7364
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7507
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
7560
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7731
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7860
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7906
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7948
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
7968
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
7994
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
8049
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8193
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8454
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8521
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
8566
var comp =
CreateCompilationWithTasksExtensions
(source);
8612
var comp =
CreateCompilationWithTasksExtensions
(source);
8658
var comp =
CreateCompilationWithTasksExtensions
(source);
8701
var comp =
CreateCompilationWithTasksExtensions
(source);
8728
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
8763
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
8888
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
8991
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9034
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9112
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9186
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9277
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
9320
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
9378
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9489
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9593
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9697
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9812
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe);
9931
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
9958
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
9985
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
10075
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11380
var comp =
CreateCompilationWithTasksExtensions
(
11473
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11566
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11903
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13269
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13355
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13441
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13523
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
14330
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14467
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14606
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14743
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
14802
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
CodeGen\CodeGenAwaitUsingTests.cs (87)
36
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3);
62
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3);
92
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
119
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
149
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
171
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
210
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
290
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll);
320
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
347
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
371
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
378
comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular7);
391
comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
417
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
451
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
554
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
593
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
628
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
738
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
832
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
913
var comp =
CreateCompilationWithTasksExtensions
(source);
1013
var comp =
CreateCompilationWithTasksExtensions
(source);
1042
var comp =
CreateCompilationWithTasksExtensions
(source);
1078
var comp =
CreateCompilationWithTasksExtensions
(source);
1114
var comp =
CreateCompilationWithTasksExtensions
(source);
1152
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
1153
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
1189
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
1190
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
1220
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1305
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1330
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1363
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1385
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1410
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1440
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1477
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1512
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1746
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1981
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2212
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2250
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2280
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
2382
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2610
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2846
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2927
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3022
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3098
var comp =
CreateCompilationWithTasksExtensions
(@"
3161
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3301
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3439
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3638
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3670
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3748
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3782
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3865
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3951
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4034
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4118
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4197
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4224
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4254
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4285
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4548
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4635
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4718
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4784
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4836
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
4914
var comp =
CreateCompilationWithTasksExtensions
(source);
5271
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5278
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
5281
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
5306
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5318
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5319
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5344
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5356
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5357
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5380
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5392
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5393
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5431
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5438
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
5441
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
5472
var comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition]);
5530
var comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition]);
CodeGen\CodeGenUsingDeclarationTests.cs (10)
681
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1162
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1189
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1234
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1281
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1317
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics();
1344
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1375
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1402
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1429
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (4)
3272
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: ComSafeDebugDll);
5781
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: ComSafeDebugDll);
6425
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: ComSafeDebugDll);
6968
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: ComSafeDebugDll);
Emit\EditAndContinue\LocalSlotMappingTests.cs (2)
752
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll);
843
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
RefUnsafeInIteratorAndAsyncTests.cs (6)
653
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(
741
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
795
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
1132
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
1206
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
1305
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
Semantics\ExtensionTests.cs (1)
26101
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
Semantics\LockTests.cs (5)
3609
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes]).VerifyEmitDiagnostics(
3651
var comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
3655
comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe);
3692
var comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe);
3883
comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
Semantics\ParamsCollectionTests.cs (2)
15464
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
15572
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (12)
IOperation\IOperationTests_IForEachLoopStatement.cs (9)
1725
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
1780
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
1827
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
1894
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5196
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5328
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5414
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5585
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
6363
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
IOperation\IOperationTests_IUsingStatement.cs (3)
4398
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
6136
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
6357
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\BindingAsyncTests.cs (1)
385
CreateCompilationWithTasksExtensions
(source).VerifyDiagnostics(
Semantics\IteratorTests.cs (1)
248
var comp =
CreateCompilationWithTasksExtensions
(source);
Semantics\NullableReferenceTypesTests.cs (24)
76359
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics(
76411
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable());
91263
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, MaybeNullAttributeDefinition });
92261
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92288
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92317
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92356
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92389
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92419
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92449
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92476
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92506
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92536
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92564
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92597
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92625
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92659
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92689
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
134111
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
134170
var comp =
CreateCompilationWithTasksExtensions
(source);
147461
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147494
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147539
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
147590
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
Semantics\ReadOnlyStructsTests.cs (1)
1905
var comp =
CreateCompilationWithTasksExtensions
(new[] { csharp, AsyncStreamsTypes });
Semantics\TopLevelStatementsTests.cs (5)
956
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1204
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1231
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1253
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1296
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
Semantics\UnsafeTests.cs (1)
702
var comp =
CreateCompilationWithTasksExtensions
(code, options: TestOptions.UnsafeReleaseExe);
Semantics\UsingDeclarationTests.cs (3)
824
var compilation =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.DebugExe).VerifyDiagnostics();
878
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected);
880
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\UsingStatementTests.cs (3)
1079
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
1107
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1138
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ForEachStatementInfoTests.cs (1)
104
var comp =
CreateCompilationWithTasksExtensions
(new[] { text, s_IAsyncEnumerable });
Symbols\Source\NullablePublicAPITests.cs (1)
2169
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable());