257 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (209)
CodeGen\CodeGenAsyncIteratorTests.cs (20)
109
var lib =
CreateCompilationWithTasksExtensions
(AsyncStreamsTypes);
111
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
126
var lib =
CreateCompilationWithTasksExtensions
(new[] { AsyncStreamsTypes });
128
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
135
=>
CreateCompilationWithTasksExtensions
(new[] { (CSharpTestSource)CSharpTestBase.Parse(source, filename: "source", parseOptions), CSharpTestBase.Parse(AsyncStreamsTypes, filename: "AsyncStreamsTypes", parseOptions) },
139
=>
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: options, parseOptions: parseOptions);
574
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe);
603
var comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular7_3);
606
comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular8);
1204
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1629
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3);
1632
comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8);
2107
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2185
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2234
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2279
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2322
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
3448
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9);
6302
var comp =
CreateCompilationWithTasksExtensions
(new[] { source });
7824
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 (113)
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 });
176
var comp_checked =
CreateCompilationWithTasksExtensions
(new[] { source.Replace("REPLACE", "checked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe);
180
var comp_unchecked =
CreateCompilationWithTasksExtensions
(new[] { source.Replace("REPLACE", "unchecked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe);
203
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
656
var comp =
CreateCompilationWithTasksExtensions
(source);
703
var comp =
CreateCompilationWithTasksExtensions
(source);
892
var comp =
CreateCompilationWithTasksExtensions
(source);
927
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
979
var comp =
CreateCompilationWithTasksExtensions
(source);
1038
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1082
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1139
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1179
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1222
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1269
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1312
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1330
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
1507
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1529
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1561
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1594
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
1620
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1656
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1699
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1730
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll);
1766
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1803
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1840
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1877
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1932
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
1984
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2011
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
2066
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2117
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2182
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2220
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2260
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2311
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2352
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2382
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
2441
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2499
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2689
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2733
var lib =
CreateCompilationWithTasksExtensions
(enumerator + s_IAsyncEnumerable);
2736
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib.EmitToImageReference() });
2772
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2802
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2856
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2929
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3199
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3253
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3309
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3364
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3382
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3412
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3455
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3515
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3546
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3604
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3677
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3733
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3787
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3834
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3887
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3966
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4001
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4032
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4058
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4113
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4194
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4415
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4447
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
4492
var comp =
CreateCompilationWithTasksExtensions
(source);
4538
var comp =
CreateCompilationWithTasksExtensions
(source);
4584
var comp =
CreateCompilationWithTasksExtensions
(source);
4627
var comp =
CreateCompilationWithTasksExtensions
(source);
4654
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
4689
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4785
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4830
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4873
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4921
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4965
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4998
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
5041
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
5099
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5143
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5189
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5234
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5289
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe);
5334
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
5361
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
5388
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
5412
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6232
var comp =
CreateCompilationWithTasksExtensions
(
6267
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6302
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6504
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7501
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7535
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7568
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7598
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8146
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
8222
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
8300
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
8373
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
8432
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
CodeGen\CodeGenAwaitUsingTests.cs (60)
36
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3);
63
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
90
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
120
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
142
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
184
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
211
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll);
241
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
268
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
291
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
325
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
356
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
399
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
440
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
476
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
503
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
526
var comp =
CreateCompilationWithTasksExtensions
(source);
626
var comp =
CreateCompilationWithTasksExtensions
(source);
655
var comp =
CreateCompilationWithTasksExtensions
(source);
691
var comp =
CreateCompilationWithTasksExtensions
(source);
730
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
731
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
765
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
787
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
812
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
845
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
867
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
892
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
922
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
949
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
975
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1144
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1163
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1193
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1219
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1398
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1425
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1452
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1461
var comp =
CreateCompilationWithTasksExtensions
(@"
1524
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1563
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1608
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1707
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1738
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1766
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1799
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1829
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1865
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1895
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1925
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1950
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1977
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2007
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2042
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2251
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2280
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2311
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2328
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2380
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
2401
var comp =
CreateCompilationWithTasksExtensions
(source);
CodeGen\CodeGenUsingDeclarationTests.cs (9)
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 compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1402
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
3309
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: ComSafeDebugDll);
5817
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);
845
var compilation0 =
CreateCompilationWithTasksExtensions
(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll);
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);
5200
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5332
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5418
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
5589
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9);
6373
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
IOperation\IOperationTests_IUsingStatement.cs (3)
4121
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
5862
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
6083
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\BindingAsyncTests.cs (1)
385
CreateCompilationWithTasksExtensions
(source).VerifyDiagnostics(
Semantics\NullableReferenceTypesTests.cs (24)
72640
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics(
72692
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable());
87552
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, MaybeNullAttributeDefinition });
88512
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88539
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88568
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88607
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88640
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88670
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88700
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88727
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88757
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88787
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88815
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88848
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88876
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88910
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
88940
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
130322
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
130381
var comp =
CreateCompilationWithTasksExtensions
(source);
142978
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
143011
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
143056
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
143107
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
Semantics\ReadOnlyStructsTests.cs (1)
1905
var comp =
CreateCompilationWithTasksExtensions
(new[] { csharp, AsyncStreamsTypes });
Semantics\TopLevelStatementsTests.cs (5)
955
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1147
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1174
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1196
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1239
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
Semantics\UsingDeclarationTests.cs (3)
824
var compilation =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.DebugExe).VerifyDiagnostics();
875
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected);
877
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\UsingStatementTests.cs (1)
1130
var compilation =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\NullablePublicAPITests.cs (1)
2170
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable());