4 instantiations of ForStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
17623Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.ForStatementSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
3495Return New ForStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForKeyword, newControlVariable, newEqualsToken, newFromValue, newToKeyword, newToValue, newStepClause) 19510Return New ForStatementSyntax(SyntaxKind.ForStatement, Nothing, Nothing, DirectCast(forKeyword.Node, InternalSyntax.KeywordSyntax), controlVariable, DirectCast(equalsToken.Node, InternalSyntax.PunctuationSyntax), fromValue, DirectCast(toKeyword.Node, InternalSyntax.KeywordSyntax), toValue, stepClause)
Generated\Syntax.xml.Syntax.Generated.vb (1)
19111Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ForStatementSyntax(kind, errors, annotations, forKeyword, DirectCast(controlVariable.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.VisualBasicSyntaxNode), equalsToken, DirectCast(fromValue.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ExpressionSyntax), toKeyword, DirectCast(toValue.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ExpressionSyntax), if(stepClause IsNot Nothing, DirectCast(stepClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ForStepClauseSyntax), Nothing)), Nothing, 0)
71 references to ForStatementSyntax
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\ControlFlowGraphVerifier.cs (2)
1038assignment.Syntax.Parent is VisualBasic.Syntax.ForStatementSyntax forStmt && 1258if (((VisualBasic.Syntax.ForStatementSyntax)parent).ToValue == syntax)
Microsoft.CodeAnalysis.VisualBasic (30)
Binding\Binder_Statements.vb (4)
3080Dim forStatement = DirectCast(node.ForOrForEachStatement, ForStatementSyntax) 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 (2)
47controlVariableSyntax = DirectCast(_syntax.ForOrForEachStatement, ForStatementSyntax).ControlVariable 109Dim forStatementSyntax = DirectCast(_syntax.ForOrForEachStatement, ForStatementSyntax)
Generated\Syntax.xml.Main.Generated.vb (9)
362Public Overridable Function VisitForStatement(ByVal node As ForStatementSyntax) As TResult 1097Public Overridable Sub VisitForStatement(ByVal node As ForStatementSyntax) 3445Dim newForStatement = DirectCast(Visit(node.ForStatement), ForStatementSyntax) 3476Public Overrides Function VisitForStatement(ByVal node As ForStatementSyntax) As SyntaxNode 19057Public Shared Function ForBlock(forStatement As ForStatementSyntax, statements As SyntaxList(of StatementSyntax), nextStatement As NextStatementSyntax) As ForBlockSyntax 19078Public Shared Function ForBlock(forStatement As ForStatementSyntax) As ForBlockSyntax 19157Public Shared Function ForStatement(forKeyword As SyntaxToken, controlVariable As VisualBasicSyntaxNode, equalsToken As SyntaxToken, fromValue As ExpressionSyntax, toKeyword As SyntaxToken, toValue As ExpressionSyntax, stepClause As ForStepClauseSyntax) As ForStatementSyntax 19537Public Shared Function ForStatement(controlVariable As VisualBasicSyntaxNode, fromValue As ExpressionSyntax, toValue As ExpressionSyntax, stepClause As ForStepClauseSyntax) As ForStatementSyntax 19562Public Shared Function ForStatement(controlVariable As VisualBasicSyntaxNode, fromValue As ExpressionSyntax, toValue As ExpressionSyntax) As ForStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (13)
18664Friend _forStatement as ForStatementSyntax 18672Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), forStatement As ForStatementSyntax, statements As SyntaxNode, nextStatement As NextStatementSyntax) 18679Public ReadOnly Property ForStatement As ForStatementSyntax 18690Public Shadows Function WithForStatement(forStatement as ForStatementSyntax) As ForBlockSyntax 18820Public Function Update(forStatement As ForStatementSyntax, statements As SyntaxList(of StatementSyntax), nextStatement As NextStatementSyntax) As ForBlockSyntax 19136Public Shadows Function WithForKeyword(forKeyword as SyntaxToken) As ForStatementSyntax 19165Public Shadows Function WithControlVariable(controlVariable as VisualBasicSyntaxNode) As ForStatementSyntax 19183Public Shadows Function WithEqualsToken(equalsToken as SyntaxToken) As ForStatementSyntax 19201Public Shadows Function WithFromValue(fromValue as ExpressionSyntax) As ForStatementSyntax 19219Public Shadows Function WithToKeyword(toKeyword as SyntaxToken) As ForStatementSyntax 19237Public Shadows Function WithToValue(toValue as ExpressionSyntax) As ForStatementSyntax 19258Public Shadows Function WithStepClause(stepClause as ForStepClauseSyntax) As ForStatementSyntax 19326Public Function Update(forKeyword As SyntaxToken, controlVariable As VisualBasicSyntaxNode, equalsToken As SyntaxToken, fromValue As ExpressionSyntax, toKeyword As SyntaxToken, toValue As ExpressionSyntax, stepClause As ForStepClauseSyntax) As ForStatementSyntax
Symbols\Source\LocalSymbol.vb (1)
790Return GetDeclaringSyntaxReferenceHelper(Of ForStatementSyntax)(Me.Locations)
Syntax\SyntaxNormalizer.vb (1)
1354Public Overrides Function VisitForStatement(node As ForStatementSyntax) As SyntaxNode
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
ElasticTriviaFormattingRule.vb (1)
312IsBeginStatement(Of ForStatementSyntax, ForOrForEachBlockSyntax)(currentStatement) OrElse
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
SyntaxTreeExtensions.vb (2)
391targetToken.IsChildToken(Of ForStatementSyntax)(Function(forStatement) forStatement.EqualsToken) OrElse 392targetToken.IsChildToken(Of ForStatementSyntax)(Function(forStatement) forStatement.ToKeyword) OrElse
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
82Function(forStatement As ForStatementSyntax) InferTypeInForStatement(forStatement, expression), 155Function(forStatement As ForStatementSyntax) InferTypeInForStatement(forStatement, previousToken:=token), 672Private Function InferTypeInForStatement(forStatement As ForStatementSyntax,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
56Public Overrides Function VisitForStatement(node As ForStatementSyntax) As AbstractEndConstructResult
Microsoft.CodeAnalysis.VisualBasic.Features (13)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
94Dim forStatement = DirectCast(forBlock.ForOrForEachStatement, ForStatementSyntax)
CodeRefactorings\VisualBasicRefactoringHelpersService.vb (2)
86If TypeOf node Is ForStatementSyntax And TypeOf node.Parent Is ForBlockSyntax Then 87Dim forStatement = CType(node, ForStatementSyntax)
Completion\KeywordRecommenders\Declarations\AsKeywordRecommender.vb (1)
44If targetToken.IsFromIdentifierNode(Of ForStatementSyntax)(Function(forStatement) forStatement.ControlVariable) Then
Completion\KeywordRecommenders\Expressions\BinaryOperatorKeywordRecommender.vb (1)
143If context.SyntaxTree.IsFollowingCompleteExpression(Of ForStatementSyntax)(context.Position, context.TargetToken, Function(forStatement) forStatement.FromValue, cancellationToken) Then
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (1)
29Dim forStatement = DirectCast(targetToken.Parent, ForStatementSyntax)
Completion\KeywordRecommenders\Statements\StepKeywordRecommender.vb (1)
22If context.SyntaxTree.IsFollowingCompleteExpression(Of ForStatementSyntax)(
Completion\KeywordRecommenders\Statements\ToKeywordRecommender.vb (1)
34If context.SyntaxTree.IsFollowingCompleteExpression(Of ForStatementSyntax)(context.Position, context.TargetToken, Function(forStatement) forStatement.FromValue, cancellationToken) Then
ConvertForToForEach\VisualBasicConvertForToForEachCodeRefactoringProvider.vb (1)
51Dim forStatement As ForStatementSyntax = forBlock.ForStatement
EditAndContinue\SyntaxComparer.vb (2)
971Dim leftStatement = DirectCast(leftFor.ForOrForEachStatement, ForStatementSyntax) 972Dim rightStatement = DirectCast(rightFor.ForOrForEachStatement, ForStatementSyntax)
Highlighting\KeywordHighlighters\ForLoopBlockHighlighter.vb (2)
28If TypeOf forBlock.ForOrForEachStatement Is ForStatementSyntax Then 29With DirectCast(forBlock.ForOrForEachStatement, ForStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Compilation\SemanticModelAPITests.vb (1)
70Dim forstat = children.OfType(Of ForStatementSyntax).First()
DeclaringSyntaxNodeTests.vb (1)
642CheckDeclaringSyntaxIsNoDeclaration(Of ForStatementSyntax)(comp, tree, "loc8")
Extensions.vb (1)
35TypeOf node Is ForStatementSyntax OrElse
FlowAnalysis\RegionAnalysisTests.vb (1)
5239Dim stmtSyntaxNode = DirectCast(tree.GetCompilationUnitRoot().FindToken(tree.GetRoot.ToFullString().IndexOf("For i = 0 To 1", StringComparison.Ordinal)).Parent, ForStatementSyntax)
Semantics\ForLoopTest.vb (2)
660Private Function GetForStatement(compilation As VisualBasicCompilation, index As Integer) As ForStatementSyntax 663Dim forStatement = TryCast(node, ForStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\SourceSymbolTests.vb (1)
512Dim node = DirectCast(list(0), ForStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
13377Private Shared Function GenerateRedForStatement() As ForStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
LocalVariableDeclaratorsCollector.vb (1)
30Public Overrides Sub VisitForStatement(node As ForStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
104name.CheckParent(Of ForStatementSyntax)(Function(p) p.ControlVariable Is name) OrElse
Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
312IsBeginStatement(Of ForStatementSyntax, ForOrForEachBlockSyntax)(currentStatement) OrElse
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (2)
391targetToken.IsChildToken(Of ForStatementSyntax)(Function(forStatement) forStatement.EqualsToken) OrElse 392targetToken.IsChildToken(Of ForStatementSyntax)(Function(forStatement) forStatement.ToKeyword) OrElse
Rename\LocalConflictVisitor.vb (1)
143controlVariable = DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (1)
119Dim valueType = semanticModel.GetTypeInfo(DirectCast(parent, ForStatementSyntax).ToValue).Type
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
82Function(forStatement As ForStatementSyntax) InferTypeInForStatement(forStatement, expression), 155Function(forStatement As ForStatementSyntax) InferTypeInForStatement(forStatement, previousToken:=token), 672Private Function InferTypeInForStatement(forStatement As ForStatementSyntax,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.Visitor.vb (1)
262Public Overrides Sub VisitForStatement(node As ForStatementSyntax)