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