1 write to EnumeratorInfoOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4048
this.
EnumeratorInfoOpt
= enumeratorInfoOpt;
18 references to EnumeratorInfoOpt
Microsoft.CodeAnalysis.CSharp (18)
Binder\RefSafetyAnalysis.cs (2)
1072
if (node.
EnumeratorInfoOpt
is { InlineArraySpanType: not WellKnownType.Unknown and var spanType, InlineArrayUsedAsValue: false })
1080
resultType: node.
EnumeratorInfoOpt
.GetEnumeratorInfo.Method.ContainingType,
Compilation\MemberSemanticModel.cs (1)
950
ForEachEnumeratorInfo enumeratorInfoOpt = boundForEach.
EnumeratorInfoOpt
;
FlowAnalysis\NullableWalker.cs (3)
6743
if (node is BoundForEachStatement {
EnumeratorInfoOpt
: { GetEnumeratorInfo: { Method: { TypeArgumentsWithAnnotations: { IsEmpty: false } } } } })
10913
node.
EnumeratorInfoOpt
,
11128
var sourceState = node.
EnumeratorInfoOpt
== null ? default : ResultType;
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
220
if (node.
EnumeratorInfoOpt
!= null)
222
VisitForEachEnumeratorInfo(node.
EnumeratorInfoOpt
);
Generated\BoundNodes.xml.Generated.cs (4)
4076
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 || awaitOpt != this.AwaitOpt || body != this.Body || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(breakLabel, this.BreakLabel) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(continueLabel, this.ContinueLabel))
11434
return node.Update(node.
EnumeratorInfoOpt
, elementPlaceholder, elementConversion, iterationVariableType, node.IterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, awaitOpt, body, node.BreakLabel, node.ContinueLabel);
13477
return node.Update(node.
EnumeratorInfoOpt
, elementPlaceholder, elementConversion, iterationVariableType, iterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, awaitOpt, body, node.BreakLabel, node.ContinueLabel);
15909
new TreeDumperNode("enumeratorInfoOpt", node.
EnumeratorInfoOpt
, null),
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
56
else if (node.
EnumeratorInfoOpt
is { InlineArraySpanType: not WellKnownType.Unknown })
115
ForEachEnumeratorInfo? enumeratorInfo = node.
EnumeratorInfoOpt
;
575
Debug.Assert(node.
EnumeratorInfoOpt
is not null);
583
node.
EnumeratorInfoOpt
,
Operations\CSharpOperationFactory.cs (2)
1889
ForEachEnumeratorInfo? enumeratorInfoOpt = boundForEachStatement.
EnumeratorInfoOpt
;
1977
IOperation collection = Create(boundForEachStatement.
EnumeratorInfoOpt
?.InlineArraySpanType is null or WellKnownType.Unknown ||