1 override of IsIterator
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (1)
45
internal sealed override bool
IsIterator
=> _lazyIteratorElementType is object;
23 references to IsIterator
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Statements.cs (1)
639
return method.ReturnsVoid || method.
IsIterator
|| method.IsAsyncEffectivelyReturningTask(this.Compilation);
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
320
isIteratorBody: accessor.
IsIterator
);
351
isIteratorBody = method.
IsIterator
;
423
Debug.Assert(!accessor.
IsIterator
);
Binder\ExecutableCodeBinder.cs (1)
105
if (!iterator.
IsIterator
)
Binder\InMethodBinder.cs (1)
93
return _methodSymbol.
IsIterator
;
CodeGen\CodeGenerator.cs (1)
313
if (_emitPdbSequencePoints && !_method.
IsIterator
&& !_method.IsAsync)
Compiler\MethodCompiler.cs (1)
1607
Debug.Assert(method.IsAsync || method.
IsIterator
);
FlowAnalysis\FlowAnalysisPass.cs (2)
46
if (method.ReturnsVoid || method.
IsIterator
|| method.IsAsyncEffectivelyReturningTask(compilation))
200
BoundStatement ret = (method.
IsIterator
&& !method.IsAsync)
FlowAnalysis\NullableWalker.cs (1)
3280
if (lambdaOrFunctionSymbol.
IsIterator
)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
213
if (_F.CurrentFunction.IsAsync && _F.CurrentFunction.
IsIterator
)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
114
if (method.
IsIterator
)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
288
Debug.Assert(!CurrentMethod.
IsIterator
); // an override handles async-iterators
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
62
if (isAsyncEnumerableOrEnumerator && !method.
IsIterator
)
74
var typeKind = (compilationState.Compilation.Options.EnableEditAndContinue || method.
IsIterator
) ? TypeKind.Class : TypeKind.Struct;
Lowering\AsyncRewriter\AsyncStateMachine.cs (1)
32
bool isIterator = asyncMethod.
IsIterator
;
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
38
=> !function.IsAsync && !function.
IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
43
isIterator: originalMethod.
IsIterator
)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
301
var isStateMachine = _factory.CurrentFunction.IsAsync || _factory.CurrentFunction.
IsIterator
;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
517
SynthesizedLocalKind.ForEachArray => this.OriginalMethod.IsAsync || this.OriginalMethod.
IsIterator
,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
521
Debug.Assert(!method.
IsIterator
|| !method.IsAsync); // an override handles async-iterators
Symbols\MethodSymbol.cs (1)
1219
bool IMethodSymbolInternal.IsIterator =>
IsIterator
;