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