43 references to Statements
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (1)
2783blocks.Add(BindBlock(node, node.Statements, diagnostics).MakeCompilerGenerated())
Binding\LocalBinderBuilder.vb (1)
241CreateBinderFromStatementList(node.Statements, _containingBinder)
Generated\Syntax.xml.Main.Generated.vb (1)
2952Dim newStatements = VisitList(node.Statements)
Generated\Syntax.xml.Syntax.Generated.vb (6)
14541return Update(ifStatement, Me.Statements, Me.ElseIfBlocks, Me.ElseBlock, Me.EndIfStatement) 14568Return Me.WithStatements(Me.Statements.AddRange(items)) 14591return Update(Me.IfStatement, Me.Statements, elseIfBlocks, Me.ElseBlock, Me.EndIfStatement) 14617return Update(Me.IfStatement, Me.Statements, Me.ElseIfBlocks, elseBlock, Me.EndIfStatement) 14640return Update(Me.IfStatement, Me.Statements, Me.ElseIfBlocks, Me.ElseBlock, endIfStatement) 14706If ifStatement IsNot Me.IfStatement OrElse statements <> Me.Statements OrElse elseIfBlocks <> Me.ElseIfBlocks OrElse elseBlock IsNot Me.ElseBlock OrElse endIfStatement IsNot Me.EndIfStatement Then
Semantics\StatementSyntaxWalker.vb (1)
147VisitList(node.Statements)
Syntax\SyntaxFacts.vb (1)
463body = ifBlock.Statements
Syntax\SyntaxNormalizer.vb (4)
859AddLinebreaksAfterElementsIfNeeded(node.Statements, 1, 1) 861MarkLastStatementIfNeeded(node.Statements) 865If node.Statements.Any() Then 866previousNode = node.Statements.Last()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
57If ifBlock.Statements.Count <> 1 Then
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (3)
59If ifStatement.Statements.Count > 2 Then 63If Not ifStatement.Statements.All(Function(s) TypeOf s Is ExecutableStatementSyntax) Then 67trueStatements = ifStatement.Statements.Cast(Of ExecutableStatementSyntax)().ToImmutableArrayOrEmpty()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
155Return ifBlock.Statements
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\NodeBasedFormattingRule.vb (2)
404If ifBlock.Statements.Count > 0 Then 407[ifBlock].Statements.Last().GetLastToken(includeZeroWidth:=True))
Microsoft.CodeAnalysis.VisualBasic.Features (10)
EditAndContinue\SyntaxComparer.vb (1)
1035Return New With {part.IfStatement.Condition, part.Statements}
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
203WithStatements(VisitList(ReplaceStatementsIfNeeded(node.Statements)))
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.MultiLine.vb (1)
34Return ifNode.Statements
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (1)
171ifBlock.Statements)
SplitOrMergeIfStatements\VisualBasicMergeConsecutiveIfStatementsCodeRefactoringProvider.vb (2)
40If ifBlock.Statements.Count > 0 AndAlso span.IsAround(ifBlock, ifBlock.Statements.Last()) Then
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
57If ifBlock.Statements.Count <> 1 Then
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (3)
59If ifStatement.Statements.Count > 2 Then 63If Not ifStatement.Statements.All(Function(s) TypeOf s Is ExecutableStatementSyntax) Then 67trueStatements = ifStatement.Statements.Cast(Of ExecutableStatementSyntax)().ToImmutableArrayOrEmpty()
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (3)
29Return CType(conditionalSyntax, MultiLineIfBlockSyntax).Statements.Count() = 1 44Dim guardedStatement = GetGuardedStatement(If(guardedCallInElse, multiLineIfBlockSyntax.ElseBlock?.Statements, multiLineIfBlockSyntax.Statements)) 58.WithStatements(If(guardedCallInElse, multiLineIfBlockSyntax.Statements, multiLineIfBlockSyntax.ElseBlock.Statements)) _
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (1)
238If ifStatement.Statements.Count = 1 Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
202mifBlock.Statements)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
155Return ifBlock.Statements
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\NodeBasedFormattingRule.vb (2)
404If ifBlock.Statements.Count > 0 Then 407[ifBlock].Statements.Last().GetLastToken(includeZeroWidth:=True))
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
155Return ifBlock.Statements
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\NodeBasedFormattingRule.vb (2)
404If ifBlock.Statements.Count > 0 Then 407[ifBlock].Statements.Last().GetLastToken(includeZeroWidth:=True))