33 references to ControlVariable
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1039assignment.Syntax == forStmt.ControlVariable &&
Microsoft.CodeAnalysis.VisualBasic (16)
Binding\Binder_Statements.vb (4)
3104controlVariableOpt = New BoundLocal(forStatement.ControlVariable, declaredOrInferredLocalOpt, type) 3314diagnostics.Add(DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable, useSiteInfo) 3315ReportDiagnostic(diagnostics, DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable, ERRID.ERR_ForLoopType1, targetType) 3320diagnostics.Add(DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable, useSiteInfo)
Binding\ForOrForEachBlockBinder.vb (1)
47controlVariableSyntax = DirectCast(_syntax.ForOrForEachStatement, ForStatementSyntax).ControlVariable
Generated\Syntax.xml.Main.Generated.vb (2)
3481Dim newControlVariable = DirectCast(Visit(node.ControlVariable), VisualBasicSyntaxNode) 3482If node.ControlVariable IsNot newControlVariable Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (9)
19137return Update(forKeyword, Me.ControlVariable, Me.EqualsToken, Me.FromValue, Me.ToKeyword, Me.ToValue, Me.StepClause) 19153Return Me.ControlVariable 19184return Update(Me.ForKeyword, Me.ControlVariable, equalsToken, Me.FromValue, Me.ToKeyword, Me.ToValue, Me.StepClause) 19202return Update(Me.ForKeyword, Me.ControlVariable, Me.EqualsToken, fromValue, Me.ToKeyword, Me.ToValue, Me.StepClause) 19220return Update(Me.ForKeyword, Me.ControlVariable, Me.EqualsToken, Me.FromValue, toKeyword, Me.ToValue, Me.StepClause) 19238return Update(Me.ForKeyword, Me.ControlVariable, Me.EqualsToken, Me.FromValue, Me.ToKeyword, toValue, Me.StepClause) 19259return Update(Me.ForKeyword, Me.ControlVariable, Me.EqualsToken, Me.FromValue, Me.ToKeyword, Me.ToValue, stepClause) 19280Return Me.ControlVariable 19327If forKeyword <> Me.ForKeyword OrElse controlVariable IsNot Me.ControlVariable OrElse equalsToken <> Me.EqualsToken OrElse fromValue IsNot Me.FromValue OrElse toKeyword <> Me.ToKeyword OrElse toValue IsNot Me.ToValue OrElse stepClause IsNot Me.StepClause Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
675If (expressionOpt IsNot Nothing AndAlso expressionOpt IsNot forStatement.ControlVariable) OrElse 678If TypeOf forStatement.ControlVariable Is VariableDeclaratorSyntax Then 679Dim declarator = DirectCast(forStatement.ControlVariable, VariableDeclaratorSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
95controlVariable = forStatement.ControlVariable
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (1)
44If targetToken.IsFromIdentifierNode(Of ForStatementSyntax)(Function(forStatement) forStatement.ControlVariable) Then
ConvertForToForEach\VisualBasicConvertForToForEachCodeRefactoringProvider.vb (1)
52Dim identifierName = TryCast(forStatement.ControlVariable, IdentifierNameSyntax)
EditAndContinue\SyntaxComparer.vb (2)
974distance = ComputeWeightedDistance(leftStatement.ControlVariable, 977rightStatement.ControlVariable,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\SemanticModelAPITests.vb (1)
71Dim ctrlvar = TryCast(forstat.ControlVariable, ExpressionSyntax)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
20100Assert.NotNull(objectUnderTest.controlVariable) 20105Dim withObj = objectUnderTest.WithForKeyword(objectUnderTest.ForKeyword).WithControlVariable(objectUnderTest.ControlVariable).WithEqualsToken(objectUnderTest.EqualsToken).WithFromValue(objectUnderTest.FromValue).WithToKeyword(objectUnderTest.ToKeyword).WithToValue(objectUnderTest.ToValue).WithStepClause(objectUnderTest.StepClause)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
104name.CheckParent(Of ForStatementSyntax)(Function(p) p.ControlVariable Is name) OrElse
Rename\LocalConflictVisitor.vb (1)
143controlVariable = DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
675If (expressionOpt IsNot Nothing AndAlso expressionOpt IsNot forStatement.ControlVariable) OrElse 678If TypeOf forStatement.ControlVariable Is VariableDeclaratorSyntax Then 679Dim declarator = DirectCast(forStatement.ControlVariable, VariableDeclaratorSyntax)