52 references to Statements
Microsoft.CodeAnalysis.VisualBasic (52)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1083For Each statement In node.Statements
Analysis\InitializerRewriter.vb (4)
51Dim blockStatements As ImmutableArray(Of BoundStatement) = block.Statements 184boundStatements.AddRange(block.Statements) 253If block.Statements.Any Then 254Dim firstBoundStatement As BoundStatement = block.Statements.First()
Binding\Binder_Lambda.vb (1)
513statements.AddRange(block.Statements)
Binding\Binder_Statements.vb (4)
352statements.Add(body.Statements(0)) 353body = body.Update(body.StatementListSyntax, body.Locals, body.Statements.RemoveAt(0)) 359body = body.Update(body.StatementListSyntax, body.Locals, body.Statements.Add(exitLabelStatement)) 369statements.AddRange(body.Statements)
CodeGen\EmitStatement.vb (1)
1232For Each statement In scope.Statements
Generated\BoundNodes.xml.Generated.vb (4)
4390If statementListSyntax <> Me.StatementListSyntax OrElse locals <> Me.Locals OrElse statements <> Me.Statements Then 11514Me.VisitList(node.Statements) 12541Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.Statements) 13819New TreeDumperNode("statements", Nothing, From x In node.Statements Select Visit(x, Nothing))
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (10)
212If block.Statements.Length = 1 OrElse 213(block.Statements.Length = 2 AndAlso 214block.Statements(1).Kind = BoundKind.ReturnStatement AndAlso 215DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 216(block.Statements.Length = 3 AndAlso 217block.Statements(1).Kind = BoundKind.LabelStatement AndAlso 218block.Statements(2).Kind = BoundKind.ReturnStatement) Then 220Dim stmt = block.Statements(0) 235If innerBlock.Locals.IsEmpty AndAlso innerBlock.Statements.Length = 1 Then 236stmt = innerBlock.Statements(0)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (11)
137Debug.Assert(block.Statements(0).Kind <> BoundKind.SequencePoint) 138Debug.Assert(block.Statements.Length = 1 OrElse 139(block.Statements.Length = 2 AndAlso 140block.Statements(1).Kind = BoundKind.ReturnStatement AndAlso 141DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 142(block.Statements.Length = 3 AndAlso 143block.Statements(1).Kind = BoundKind.LabelStatement AndAlso 144block.Statements(2).Kind = BoundKind.ReturnStatement)) 151Dim stmt = block.Statements(0) 168If innerBlock.Locals.IsEmpty AndAlso innerBlock.Statements.Length = 1 Then 169stmt = innerBlock.Statements(0)
Lowering\LocalRewriter\LocalRewriter.vb (8)
398Dim consequenceWithEnd(block.Statements.Length) As BoundStatement 399For i = 0 To block.Statements.Length - 1 400consequenceWithEnd(i) = block.Statements(i) 403consequenceWithEnd(block.Statements.Length) = additionOpt 419Dim consequenceWithEnd(block.Statements.Length) As BoundStatement 420For i = 0 To block.Statements.Length - 1 421consequenceWithEnd(i) = block.Statements(i) 424consequenceWithEnd(block.Statements.Length) = additionOpt
Lowering\LocalRewriter\LocalRewriter_Block.vb (2)
45node = node.Update(node.StatementListSyntax, builder.ToImmutableAndFree(), node.Statements) 52For Each s In node.Statements
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
50For Each s In block.Statements
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (1)
57body.Statements)
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
147Dim statements As ImmutableArray(Of BoundStatement) = currentBody.Statements
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
377Dim nodeStatements = node.Statements
Lowering\Rewriter.vb (1)
121Return New BoundBlock(body.Syntax, body.StatementListSyntax, body.Locals, body.Statements, hasErrors:=True)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
301Dim rewrittenStatements = rewrittenBlock.Statements