337 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (265)
CodeGen\CodeGenAsyncEHTests.cs (2)
4779
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics();
4780
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)
2063
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);
4400
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4546
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4669
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4709
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4760
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4801
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4831
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
4890
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5023
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5219
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5338
var lib =
CreateCompilationWithTasksExtensions
(enumerator + s_IAsyncEnumerable);
5341
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib.EmitToImageReference() });
5377
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
5407
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
5461
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5613
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5966
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6099
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6266
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6442
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6549
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6579
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6622
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6754
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
6886
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
6944
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7099
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7245
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7378
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7521
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
7574
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7745
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7874
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7920
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
7962
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
7982
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
8008
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
8063
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8207
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8468
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
8535
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
8580
var comp =
CreateCompilationWithTasksExtensions
(source);
8626
var comp =
CreateCompilationWithTasksExtensions
(source);
8672
var comp =
CreateCompilationWithTasksExtensions
(source);
8715
var comp =
CreateCompilationWithTasksExtensions
(source);
8742
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
8777
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
8902
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9005
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9048
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9126
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9200
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9291
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
9334
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
9392
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9503
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9607
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9711
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9826
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe);
9945
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
9972
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
9999
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
10089
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11394
var comp =
CreateCompilationWithTasksExtensions
(
11487
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11580
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
11917
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13283
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13369
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13455
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13537
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
14344
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14481
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14620
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
14757
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
14816
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)
25934
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)
76335
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics(
76387
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable());
91241
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, MaybeNullAttributeDefinition });
92239
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92266
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92295
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92334
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92367
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92397
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92427
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92454
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92484
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92514
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92542
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92575
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92603
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92637
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92667
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
134092
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
134151
var comp =
CreateCompilationWithTasksExtensions
(source);
147408
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147441
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147486
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
147537
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());