136 references to s_IAsyncEnumerable
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (97)
CodeGen\CodeGenAwaitForeachTests.cs (97)
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
});
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
});
927
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
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);
2642
}", sequencePoints: "C+<Main>d__0.MoveNext", source: source +
s_IAsyncEnumerable
);
2689
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
2733
var lib = CreateCompilationWithTasksExtensions(enumerator +
s_IAsyncEnumerable
);
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
});
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);
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,
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (19)
IOperation\IOperationTests_IAwaitExpression.cs (1)
284
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
, expectedFlowGraph, expectedDiagnostics);
IOperation\IOperationTests_IForEachLoopStatement.cs (10)
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);
5636
VerifyOperationTreeForTest<ForEachStatementSyntax>(source +
s_IAsyncEnumerable
+ s_ValueTask, expectedOperationTree);
5760
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ s_ValueTask, expectedFlowGraph, expectedDiagnostics);
IOperation\IOperationTests_IUsingStatement.cs (8)
126
VerifyOperationTreeAndDiagnosticsForTest<UsingStatementSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedOperationTree, expectedDiagnostics);
222
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4208
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4302
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4388
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4480
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
7467
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
7565
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (18)
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 });
143056
var comp = CreateCompilationWithTasksExtensions(new[] {
s_IAsyncEnumerable
, source });
143107
var comp = CreateCompilationWithTasksExtensions(new[] {
s_IAsyncEnumerable
, source });
Semantics\TopLevelStatementsTests.cs (1)
1239
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\NullablePublicAPITests.cs (1)
2170
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable());