1 write to _isEnumerable
Microsoft.CodeAnalysis.CSharp (1)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
47
_isEnumerable
= method.IsAsyncReturningIAsyncEnumerable(method.DeclaringCompilation);
6 references to _isEnumerable
Microsoft.CodeAnalysis.CSharp (6)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (6)
48
Debug.Assert(
_isEnumerable
!= method.IsAsyncReturningIAsyncEnumerator(method.DeclaringCompilation));
55
if (
_isEnumerable
)
94
if (
_isEnumerable
)
119
=>
_isEnumerable
;
142
if (
_isEnumerable
&& this.method.Parameters.Any(static p => p.IsSourceParameterWithEnumeratorCancellationAttribute()))
203
var initialState =
_isEnumerable
? StateMachineState.FinishedState : StateMachineState.InitialAsyncIteratorState;