1 write to IterationVariables
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4043this.IterationVariables = iterationVariables;
39 references to IterationVariables
Microsoft.CodeAnalysis.CSharp (19)
Binder\RefSafetyAnalysis.cs (2)
1140foreach (var local in node.IterationVariables) 1163foreach (var local in node.IterationVariables)
BoundTree\BoundNode.cs (2)
664AddAll(node.IterationVariables); 666RemoveAll(node.IterationVariables);
FlowAnalysis\DefiniteAssignment.cs (1)
2778foreach (var iterationVariable in node.IterationVariables)
FlowAnalysis\NullableWalker.cs (2)
3572DeclareLocals(node.IterationVariables); 11784foreach (var iterationVariable in node.IterationVariables)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
135_variablesDeclared.AddAll(node.IterationVariables);
Generated\BoundNodes.xml.Generated.cs (4)
4067if (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)) 11485ImmutableArray<LocalSymbol> iterationVariables = this.VisitLocals(node.IterationVariables); 13583ImmutableArray<LocalSymbol> iterationVariables = GetUpdatedArray(node, node.IterationVariables); 16029new TreeDumperNode("iterationVariables", node.IterationVariables, null),
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
128node.IterationVariables, 573node.IterationVariables, 874node.IterationVariables, 1023node.IterationVariables,
Operations\CSharpOperationFactory.cs (3)
1965Debug.Assert(boundForEachStatement.IterationVariables.Length == 1); 1966var local = boundForEachStatement.IterationVariables[0]; 1985ImmutableArray<ILocalSymbol> locals = boundForEachStatement.IterationVariables.GetPublicSymbols();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\ForEachTests.cs (20)
1219Assert.Equal("System.Int32 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1257Assert.Equal("System.Char c", boundNode.IterationVariables.Single().ToTestDisplayString()); 1301Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1345Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1378Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1418Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1460Assert.Equal("System.Object x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1499Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1532Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1563Assert.Equal(SpecialType.System_Char, boundNode.IterationVariables.Single().Type.SpecialType); 1592Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1616Assert.Equal(SpecialType.System_Object, boundNode.IterationVariables.Single().Type.SpecialType); 1649Assert.Equal("C.var", boundNode.IterationVariables.Single().TypeWithAnnotations.ToTestDisplayString()); 1680Assert.Equal("System.Int32 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1713Assert.Equal("dynamic x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1754Assert.Equal("System.Object x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1838Assert.Equal("System.Object x", boundNode.IterationVariables.Single().ToTestDisplayString()); 1885Assert.Equal("System.Int64 x", boundNode.IterationVariables.Single().ToTestDisplayString()); 3129Assert.Equal(SpecialType.System_Char, boundNode.IterationVariables.Single().Type.SpecialType); 3247Assert.Equal("System.Int32 i", boundNode.IterationVariables.Single().ToTestDisplayString());