146 references to s_IAsyncEnumerable
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (101)
CodeGen\CodeGenAwaitForeachTests.cs (101)
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
});
177
var comp_checked = CreateCompilationWithTasksExtensions(new[] { checkedSource,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
182
var comp_unchecked = CreateCompilationWithTasksExtensions(new[] { uncheckedSource,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
380
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
1170
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
1281
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
1405
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
1555
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
1675
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
1789
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
1908
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
2020
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
2106
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
2286
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2308
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2340
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2373
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
2427
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2463
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2505
}" +
s_IAsyncEnumerable
;
2723
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.UnsafeDebugDll);
2759
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2796
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2833
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2870
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
2925
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
3162
""" +
s_IAsyncEnumerable
;
3437
""" +
s_IAsyncEnumerable
;
3765
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
3841
""" +
s_IAsyncEnumerable
;
4214
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
4269
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
4394
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
4540
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
4663
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
4703
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
4754
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
4795
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
4825
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
4884
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
5017
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
5213
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
5332
var lib = CreateCompilationWithTasksExtensions(enumerator +
s_IAsyncEnumerable
);
5371
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
5401
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
5455
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
5607
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
5960
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6094
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6261
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6437
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6536
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
6566
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
6609
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6741
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
6873
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
6931
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7086
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7232
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7365
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7508
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
7561
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7732
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7861
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7907
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
7949
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
7969
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
7995
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
);
8050
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
8194
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
8455
var comp = CreateCompilationWithTasksExtensions(source +
s_IAsyncEnumerable
, options: TestOptions.DebugExe);
8522
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
8729
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
8764
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
8889
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
8992
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9035
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9113
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9187
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9278
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
9321
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
});
9379
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9490
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9594
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9698
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
9813
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.ReleaseExe);
11896
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13262
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13348
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13434
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
13516
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
14323
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe,
14460
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe,
14599
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe,
14736
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
14795
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ParamsCollectionTests.cs (2)
15464
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
15572
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (22)
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);
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);
5632
VerifyOperationTreeForTest<ForEachStatementSyntax>(source +
s_IAsyncEnumerable
+ s_ValueTask, expectedOperationTree);
5756
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ s_ValueTask, expectedFlowGraph, expectedDiagnostics);
IOperation\IOperationTests_IUsingStatement.cs (11)
126
VerifyOperationTreeAndDiagnosticsForTest<UsingStatementSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedOperationTree, expectedDiagnostics);
244
VerifyOperationTreeAndDiagnosticsForTest<UsingStatementSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedOperationTree, expectedDiagnostics);
340
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
441
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
546
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4485
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4579
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4665
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
4754
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
7734
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
7832
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source +
s_IAsyncEnumerable
+ IOperationTests_IForEachLoopStatement.s_ValueTask, expectedGraph, expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (18)
92320
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92347
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92376
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92415
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92448
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92478
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92508
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92535
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92565
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92595
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92623
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92656
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92684
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92718
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92748
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
134170
var comp = CreateCompilationWithTasksExtensions(new[] {
s_IAsyncEnumerable
, source });
147598
var comp = CreateCompilationWithTasksExtensions(new[] {
s_IAsyncEnumerable
, source });
147649
var comp = CreateCompilationWithTasksExtensions(new[] {
s_IAsyncEnumerable
, source });
Semantics\TopLevelStatementsTests.cs (1)
1295
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ForEachStatementInfoTests.cs (1)
104
var comp = CreateCompilationWithTasksExtensions(new[] { text,
s_IAsyncEnumerable
});
Symbols\Source\NullablePublicAPITests.cs (1)
2169
var comp = CreateCompilationWithTasksExtensions(new[] { source,
s_IAsyncEnumerable
}, options: WithNullableEnable());