337 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (265)
CodeGen\CodeGenAsyncEHTests.cs (2)
4780
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics();
4781
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 });
1925
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3);
1928
comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8);
2403
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2481
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2530
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2575
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2618
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
3744
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9);
6807
var comp =
CreateCompilationWithTasksExtensions
(new[] { source });
8329
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAsyncMainTests.cs (2)
1982
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2004
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);
213
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
293
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll);
323
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
350
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
374
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
381
comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular7);
394
comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
420
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
454
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
557
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
600
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
642
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
752
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
846
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
927
var comp =
CreateCompilationWithTasksExtensions
(source);
1027
var comp =
CreateCompilationWithTasksExtensions
(source);
1056
var comp =
CreateCompilationWithTasksExtensions
(source);
1092
var comp =
CreateCompilationWithTasksExtensions
(source);
1128
var comp =
CreateCompilationWithTasksExtensions
(source);
1166
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
1167
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
1203
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
1204
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
1234
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1319
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1344
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1377
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1399
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1424
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1454
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1491
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1526
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1760
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1995
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2226
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2264
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2294
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
2396
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2624
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2860
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2941
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3036
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3112
var comp =
CreateCompilationWithTasksExtensions
(@"
3175
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3315
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3453
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3652
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3684
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3762
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3796
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3879
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
3965
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4048
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4132
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4211
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4238
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4268
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4299
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4562
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4649
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4732
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
4798
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
4850
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
4928
var comp =
CreateCompilationWithTasksExtensions
(source);
5285
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5292
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
5295
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
5320
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5332
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5333
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5358
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5370
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5371
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5394
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5406
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
5407
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
5445
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
5452
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
5455
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
5486
var comp =
CreateCompilationWithTasksExtensions
([source, IAsyncDisposableDefinition]);
5544
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)
25982
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
Semantics\LockTests.cs (5)
3613
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes]).VerifyEmitDiagnostics(
3655
var comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
3659
comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe);
3696
var comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe);
3887
comp =
CreateCompilationWithTasksExtensions
([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
Semantics\ParamsCollectionTests.cs (2)
15480
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
15588
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);
6365
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)
76362
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics(
76414
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable());
91268
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, MaybeNullAttributeDefinition });
92266
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92293
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92322
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92361
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92394
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92424
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92454
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92481
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92511
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92541
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92569
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92602
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92630
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92664
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92694
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
134116
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
134175
var comp =
CreateCompilationWithTasksExtensions
(source);
147466
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147499
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147544
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
147595
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);
1160
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1187
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1209
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1252
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 (1)
Symbols\Source\NullablePublicAPITests.cs (1)
2169
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable());