1 write to EnumeratorInfoOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4107this.EnumeratorInfoOpt = enumeratorInfoOpt;
22 references to EnumeratorInfoOpt
Microsoft.CodeAnalysis.CSharp (22)
Binder\RefSafetyAnalysis.cs (3)
1263if (node.EnumeratorInfoOpt is { InlineArraySpanType: not WellKnownType.Unknown and var spanType, InlineArrayUsedAsValue: false }) 1271resultType: node.EnumeratorInfoOpt.GetEnumeratorInfo.Method.ContainingType, 1296if (node.EnumeratorInfoOpt is { MoveNextAwaitableInfo: { } awaitableInfo })
Compilation\MemberSemanticModel.cs (1)
983ForEachEnumeratorInfo enumeratorInfoOpt = boundForEach.EnumeratorInfoOpt;
FlowAnalysis\ExitPointsWalker.cs (1)
143case BoundKind.ForEachStatement when ((BoundForEachStatement)pending.Branch).EnumeratorInfoOpt is { MoveNextAwaitableInfo: not null }:
FlowAnalysis\NullableWalker.cs (3)
12348Visit(node.EnumeratorInfoOpt?.MoveNextAwaitableInfo); 12360node.EnumeratorInfoOpt); 12569var sourceState = node.EnumeratorInfoOpt == null ? default : ResultType;
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
231if (node.EnumeratorInfoOpt != null) 233VisitForEachEnumeratorInfo(node.EnumeratorInfoOpt);
Generated\BoundNodes.xml.Generated.cs (4)
4133if (enumeratorInfoOpt != this.EnumeratorInfoOpt || elementPlaceholder != this.ElementPlaceholder || elementConversion != this.ElementConversion || iterationVariableType != this.IterationVariableType || iterationVariables != this.IterationVariables || iterationErrorExpressionOpt != this.IterationErrorExpressionOpt || expression != this.Expression || deconstructionOpt != this.DeconstructionOpt || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel)) 11785return node.Update(node.EnumeratorInfoOpt, elementPlaceholder, elementConversion, iterationVariableType, iterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, body, breakLabel, continueLabel); 13933return node.Update(node.EnumeratorInfoOpt, elementPlaceholder, elementConversion, iterationVariableType, iterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, body, node.BreakLabel, node.ContinueLabel); 16395new TreeDumperNode("enumeratorInfoOpt", node.EnumeratorInfoOpt, null),
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (5)
57else if (node.EnumeratorInfoOpt is { InlineArraySpanType: not WellKnownType.Unknown }) 61else if (node.EnumeratorInfoOpt?.MoveNextAwaitableInfo is null && CanRewriteForEachAsFor(node.Syntax, nodeExpressionType, out var indexerGet, out var lengthGetter)) 121ForEachEnumeratorInfo? enumeratorInfo = node.EnumeratorInfoOpt; 574Debug.Assert(node.EnumeratorInfoOpt is not null); 582node.EnumeratorInfoOpt,
Operations\CSharpOperationFactory.cs (3)
1955ForEachEnumeratorInfo? enumeratorInfoOpt = boundForEachStatement.EnumeratorInfoOpt; 2043IOperation collection = Create(boundForEachStatement.EnumeratorInfoOpt?.InlineArraySpanType is null or WellKnownType.Unknown || 2057bool isAsynchronous = boundForEachStatement.EnumeratorInfoOpt is { MoveNextAwaitableInfo: not null };