33 references to ControlVariable
Microsoft.CodeAnalysis.VisualBasic (12)
Binding\Binder_Statements.vb (2)
2914DirectCast(node.ForOrForEachStatement, ForEachStatementSyntax).ControlVariable, 3407controlVariableOpt = New BoundLocal(forEachStatement.ControlVariable, declaredOrInferredLocalOpt, type)
Binding\ForOrForEachBlockBinder.vb (1)
49controlVariableSyntax = DirectCast(_syntax.ForOrForEachStatement, ForEachStatementSyntax).ControlVariable
Generated\Syntax.xml.Main.Generated.vb (2)
3523Dim newControlVariable = DirectCast(Visit(node.ControlVariable), VisualBasicSyntaxNode) 3524If node.ControlVariable IsNot newControlVariable Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (7)
19504return Update(forKeyword, Me.EachKeyword, Me.ControlVariable, Me.InKeyword, Me.Expression) 19522return Update(Me.ForKeyword, eachKeyword, Me.ControlVariable, Me.InKeyword, Me.Expression) 19538Return Me.ControlVariable 19569return Update(Me.ForKeyword, Me.EachKeyword, Me.ControlVariable, inKeyword, Me.Expression) 19587return Update(Me.ForKeyword, Me.EachKeyword, Me.ControlVariable, Me.InKeyword, expression) 19604Return Me.ControlVariable 19641If forKeyword <> Me.ForKeyword OrElse eachKeyword <> Me.EachKeyword OrElse controlVariable IsNot Me.ControlVariable OrElse inKeyword <> Me.InKeyword OrElse expression IsNot Me.Expression Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
84Dim returnedType = AsTypeInVariableDeclarator(parentForEach.ControlVariable, semanticModel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
445Dim forEachControlVariable = TryCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (3)
655If TypeOf forEachStatement.ControlVariable Is VariableDeclaratorSyntax Then 656Dim declarator = DirectCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax) 663ElseIf TypeOf forEachStatement.ControlVariable Is SimpleNameSyntax Then
Microsoft.CodeAnalysis.VisualBasic.Features (5)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
99controlVariable = forEachStatement.ControlVariable
Completion\KeywordRecommenders\Declarations\InKeywordRecommender.vb (1)
27Dim variableDeclarator = TryCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
155Dim controlVariable = forEachStatement.ControlVariable
EditAndContinue\SyntaxComparer.vb (2)
990distance = ComputeWeightedDistance(leftStatement.ControlVariable, 993rightStatement.ControlVariable,
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Rename\LocalConflictVisitor.vb (1)
141controlVariable = DirectCast(node.ForOrForEachStatement, ForEachStatementSyntax).ControlVariable
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (3)
655If TypeOf forEachStatement.ControlVariable Is VariableDeclaratorSyntax Then 656Dim declarator = DirectCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax) 663ElseIf TypeOf forEachStatement.ControlVariable Is SimpleNameSyntax Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
84Dim returnedType = AsTypeInVariableDeclarator(parentForEach.ControlVariable, semanticModel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
445Dim forEachControlVariable = TryCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax)
Roslyn.Diagnostics.VisualBasic.Analyzers (5)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (3)
655If TypeOf forEachStatement.ControlVariable Is VariableDeclaratorSyntax Then 656Dim declarator = DirectCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax) 663ElseIf TypeOf forEachStatement.ControlVariable Is SimpleNameSyntax Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
84Dim returnedType = AsTypeInVariableDeclarator(parentForEach.ControlVariable, semanticModel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
445Dim forEachControlVariable = TryCast(forEachStatement.ControlVariable, VariableDeclaratorSyntax)