323 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (261)
CodeGen\CodeGenAsyncEHTests.cs (2)
2543
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics();
2544
CompileAndVerify(
CreateCompilationWithTasksExtensions
(sources, options: TestOptions.ReleaseExe), expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenAsyncIteratorTests.cs (20)
115
var lib =
CreateCompilationWithTasksExtensions
(AsyncStreamsTypes);
117
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
132
var lib =
CreateCompilationWithTasksExtensions
(new[] { AsyncStreamsTypes });
134
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib_ref });
141
=>
CreateCompilationWithTasksExtensions
(new[] { (CSharpTestSource)CSharpTestBase.Parse(source, filename: "source", parseOptions), CSharpTestBase.Parse(AsyncStreamsTypes, filename: "AsyncStreamsTypes", parseOptions) },
145
=>
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: options, parseOptions: parseOptions);
580
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe);
609
var comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular7_3);
612
comp =
CreateCompilationWithTasksExtensions
(new[] { source }, parseOptions: TestOptions.Regular8);
1489
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1917
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3);
1920
comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8);
2395
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2473
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2522
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2567
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
2610
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
3736
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9);
6590
var comp =
CreateCompilationWithTasksExtensions
(new[] { source });
8112
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 });
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);
1700
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12);
1713
comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13);
1716
comp =
CreateCompilationWithTasksExtensions
(source);
1767
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12);
1775
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13);
1778
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
1818
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12);
1831
comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13);
1834
comp =
CreateCompilationWithTasksExtensions
(source);
1857
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll);
1893
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1930
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
1967
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2004
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
2059
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2138
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
2153
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2154
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
2233
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2280
var comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2378
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
2382
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
2385
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2449
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
2453
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
2456
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2561
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
2607
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
2614
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
2617
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2671
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
2678
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
2681
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
2715
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
2727
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2728
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
2857
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
2912
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
2963
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3028
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3066
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3106
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3157
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3198
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3228
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
3287
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3345
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3541
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
3585
var lib =
CreateCompilationWithTasksExtensions
(enumerator + s_IAsyncEnumerable);
3588
var comp =
CreateCompilationWithTasksExtensions
(source, references: new[] { lib.EmitToImageReference() });
3624
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3654
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
3708
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
3781
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
4051
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4105
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4161
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4216
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4234
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4264
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4307
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4367
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4398
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4456
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4529
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4585
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4639
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4686
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4739
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4818
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4853
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4899
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
4941
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4961
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
4987
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable);
5042
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5123
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5349
var comp =
CreateCompilationWithTasksExtensions
(source + s_IAsyncEnumerable, options: TestOptions.DebugExe);
5381
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
5426
var comp =
CreateCompilationWithTasksExtensions
(source);
5472
var comp =
CreateCompilationWithTasksExtensions
(source);
5518
var comp =
CreateCompilationWithTasksExtensions
(source);
5561
var comp =
CreateCompilationWithTasksExtensions
(source);
5588
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
5623
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5719
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5764
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5807
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5855
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5899
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
5932
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
5975
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable });
6033
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
6077
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
6123
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
6168
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
6223
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe);
6268
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
6295
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9)
6322
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6346
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7166
var comp =
CreateCompilationWithTasksExtensions
(
7201
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7237
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7439
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8440
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8474
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8507
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8537
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
9088
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
9164
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
9242
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
9315
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
9374
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
CodeGen\CodeGenAwaitUsingTests.cs (83)
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);
240
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll);
270
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
297
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
321
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
367
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
401
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
432
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
475
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
516
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
552
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
579
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
602
var comp =
CreateCompilationWithTasksExtensions
(source);
702
var comp =
CreateCompilationWithTasksExtensions
(source);
731
var comp =
CreateCompilationWithTasksExtensions
(source);
767
var comp =
CreateCompilationWithTasksExtensions
(source);
803
var comp =
CreateCompilationWithTasksExtensions
(source);
841
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
842
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
878
var libComp =
CreateCompilationWithTasksExtensions
(lib_cs + IAsyncDisposableDefinition);
879
var comp =
CreateCompilationWithTasksExtensions
(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe);
909
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
931
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
956
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
989
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1011
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1036
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1066
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1093
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1119
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1293
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1468
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1638
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1657
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
1687
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
1713
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
1882
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2060
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2087
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2114
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2123
var comp =
CreateCompilationWithTasksExtensions
(@"
2186
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2225
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2270
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2369
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2400
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2428
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2461
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2491
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2524
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2554
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2584
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2609
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2636
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2666
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
2697
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2906
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2935
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2966
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
2983
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition });
3035
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
3056
var comp =
CreateCompilationWithTasksExtensions
(source);
3365
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3372
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3375
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
3400
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3412
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3413
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
3438
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3450
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3451
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
3474
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3486
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3487
CreateCompilationWithTasksExtensions
(source).VerifyEmitDiagnostics(expectedDiagnostics);
3525
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3532
var comp =
CreateCompilationWithTasksExtensions
(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe);
3535
comp =
CreateCompilationWithTasksExtensions
(source, options: TestOptions.ReleaseExe);
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 (2)
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 (8)
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\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)
147
var comp =
CreateCompilationWithTasksExtensions
(source);
Semantics\NullableReferenceTypesTests.cs (24)
76299
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics(
76351
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable());
91205
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, MaybeNullAttributeDefinition });
92203
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92230
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92259
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92298
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92331
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);
92391
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92418
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92448
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92478
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92506
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92539
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92567
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92601
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92631
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
134056
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
134115
var comp =
CreateCompilationWithTasksExtensions
(source);
147346
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147379
var comp =
CreateCompilationWithTasksExtensions
(new[] { IAsyncDisposableDefinition, source });
147424
var comp =
CreateCompilationWithTasksExtensions
(new[] { s_IAsyncEnumerable, source });
147475
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);
1159
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1186
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1208
var comp =
CreateCompilationWithTasksExtensions
(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
1251
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());