323 references to CreateCompilationWithTasksExtensions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (261)
CodeGen\CodeGenAsyncEHTests.cs (2)
2543CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics(); 2544CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options: TestOptions.ReleaseExe), expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenAsyncIteratorTests.cs (20)
115var lib = CreateCompilationWithTasksExtensions(AsyncStreamsTypes); 117var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib_ref }); 132var lib = CreateCompilationWithTasksExtensions(new[] { AsyncStreamsTypes }); 134var 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); 586var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe); 615var comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular7_3); 618comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular8); 1495var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1923var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3); 1926comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8); 2401var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2479var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2528var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2573var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2616var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 3742var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 6596var comp = CreateCompilationWithTasksExtensions(new[] { source }); 8118var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAsyncMainTests.cs (2)
1982var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2004var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (1)
2063var compilation = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenAwaitForeachTests.cs (143)
42var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 45comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 72var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 75comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 90var lib = CreateCompilationWithTasksExtensions(new[] { lib_cs, s_IAsyncEnumerable }); 102var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib.EmitToImageReference() }); 125var comp_checked = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 176var comp_checked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "checked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 180var comp_unchecked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "unchecked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 203var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 656var comp = CreateCompilationWithTasksExtensions(source); 703var comp = CreateCompilationWithTasksExtensions(source); 892var comp = CreateCompilationWithTasksExtensions(source); 927var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 979var comp = CreateCompilationWithTasksExtensions(source); 1038var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1082var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1139var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1179var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1222var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1269var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1312var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1330var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 1507var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1529var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1561var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1594var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1620var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1656var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1700var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1713comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13); 1716comp = CreateCompilationWithTasksExtensions(source); 1767var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1775comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 1778comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1818var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1831comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13); 1834comp = CreateCompilationWithTasksExtensions(source); 1857var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll); 1893var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1930var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1967var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 2004var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 2059var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2138CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2153CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2154CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics(expectedDiagnostics); 2233var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2280var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2378CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2382var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2385comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2449CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2453var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2456comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 2607CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2614var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2617comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2671CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2678var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2681comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2715CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2727CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2728CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics(expectedDiagnostics); 2857var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 2912var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2963var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3028var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3066var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3106var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3157var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3198var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3228var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 3287var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3345var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3541var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3585var lib = CreateCompilationWithTasksExtensions(enumerator + s_IAsyncEnumerable); 3588var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib.EmitToImageReference() }); 3624var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 3654var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 3708var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3781var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 4051var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4105var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4161var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4216var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4234var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4264var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4307var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4367var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4398var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4456var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4529var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4585var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4639var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4686var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4739var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4818var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4853var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4899var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4941var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4961var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4987var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 5042var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5123var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5349var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5381var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5426var comp = CreateCompilationWithTasksExtensions(source); 5472var comp = CreateCompilationWithTasksExtensions(source); 5518var comp = CreateCompilationWithTasksExtensions(source); 5561var comp = CreateCompilationWithTasksExtensions(source); 5588var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5623var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5719var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5764var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5807var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5855var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5899var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5932var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5975var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 6033var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6077var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6123var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6168var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6223var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe); 6268CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6295CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6322var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6346var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7166var comp = CreateCompilationWithTasksExtensions( 7201var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7237var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7439var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8440var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8474var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8507var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8537var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 9088var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9164var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9242var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9315var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 9374var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe,
CodeGen\CodeGenAwaitUsingTests.cs (83)
36var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 62var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 92var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 119var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 149var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 171var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 213var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 240var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll); 270var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 297var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 321var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 367var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 401var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 432var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 475var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 516var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 552var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 579var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 602var comp = CreateCompilationWithTasksExtensions(source); 702var comp = CreateCompilationWithTasksExtensions(source); 731var comp = CreateCompilationWithTasksExtensions(source); 767var comp = CreateCompilationWithTasksExtensions(source); 803var comp = CreateCompilationWithTasksExtensions(source); 841var libComp = CreateCompilationWithTasksExtensions(lib_cs + IAsyncDisposableDefinition); 842var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 878var libComp = CreateCompilationWithTasksExtensions(lib_cs + IAsyncDisposableDefinition); 879var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 909var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 931var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 956var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 989var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1011var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1036var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1066var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1093var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1119var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1293var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1468var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1638var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1657var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1687var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1713var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1882var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2060var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2087var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2114var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2123var comp = CreateCompilationWithTasksExtensions(@" 2186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2225var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2270var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2369var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2400var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2428var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2461var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2491var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2524var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2554var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2584var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2609var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2636var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2666var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2697var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2906var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2935var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2966var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2983var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 3035var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 3056var comp = CreateCompilationWithTasksExtensions(source); 3365CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3372var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3375comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 3400CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3412CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3413CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics(expectedDiagnostics); 3438CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3450CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3451CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics(expectedDiagnostics); 3474CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3486CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3487CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics(expectedDiagnostics); 3525CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3532var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3535comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenUsingDeclarationTests.cs (10)
681var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1162var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1189var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1234var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1281var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1317var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1344var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1375var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1402var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1429var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\LocalSlotMappingTests.cs (2)
752var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll); 843var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
RefUnsafeInIteratorAndAsyncTests.cs (6)
653CreateCompilationWithTasksExtensions(source).VerifyEmitDiagnostics( 741var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 795var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1132var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1206var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1305var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe);
Semantics\ParamsCollectionTests.cs (2)
15480var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 15588var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (12)
IOperation\IOperationTests_IForEachLoopStatement.cs (9)
1725var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1780var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1827var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1894var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5196var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5328var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5414var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5585var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 6365var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe);
IOperation\IOperationTests_IUsingStatement.cs (3)
4398var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }); 6136var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }); 6357var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (39)
Semantics\BindingAsyncTests.cs (1)
385CreateCompilationWithTasksExtensions(source).VerifyDiagnostics(
Semantics\IteratorTests.cs (1)
147var comp = CreateCompilationWithTasksExtensions(source);
Semantics\NullableReferenceTypesTests.cs (24)
76293CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()).VerifyDiagnostics( 76345var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()); 91199var comp = CreateCompilationWithTasksExtensions(new[] { source, MaybeNullAttributeDefinition }); 92197var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92224var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92253var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92292var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92325var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92355var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92385var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92412var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92442var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92472var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92500var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92533var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92595var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92625var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 134050var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source }); 134109var comp = CreateCompilationWithTasksExtensions(source); 147340var comp = CreateCompilationWithTasksExtensions(new[] { IAsyncDisposableDefinition, source }); 147373var comp = CreateCompilationWithTasksExtensions(new[] { IAsyncDisposableDefinition, source }); 147418var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source }); 147469var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source });
Semantics\ReadOnlyStructsTests.cs (1)
1905var comp = CreateCompilationWithTasksExtensions(new[] { csharp, AsyncStreamsTypes });
Semantics\TopLevelStatementsTests.cs (5)
955var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1159var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1208var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1251var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
Semantics\UnsafeTests.cs (1)
702var comp = CreateCompilationWithTasksExtensions(code, options: TestOptions.UnsafeReleaseExe);
Semantics\UsingDeclarationTests.cs (3)
824var compilation = CreateCompilationWithTasksExtensions(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 878CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 880CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
Semantics\UsingStatementTests.cs (3)
1079var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 1107var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1138var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\NullablePublicAPITests.cs (1)
2169var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable());