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