58 references to Statements
Microsoft.CodeAnalysis.VisualBasic (55)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1074
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)
1233
For Each statement In scope.
Statements
Compilation\MethodCompiler.vb (2)
1787
If body IsNot Nothing AndAlso body.
Statements
.Length > 0 Then
1789
Dim theFirstStatement As BoundStatement = body.
Statements
(0)
Generated\BoundNodes.xml.Generated.vb (4)
4371
If statementListSyntax <> Me.StatementListSyntax OrElse locals <> Me.Locals OrElse statements <> Me.
Statements
Then
11480
Me.VisitList(node.
Statements
)
12507
Dim statements As ImmutableArray(Of BoundStatement) = Me.VisitList(node.
Statements
)
13782
New TreeDumperNode("statements", Nothing, From x In node.
Statements
Select Visit(x, Nothing))
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (10)
209
If block.
Statements
.Length = 1 OrElse
210
(block.
Statements
.Length = 2 AndAlso
211
block.
Statements
(1).Kind = BoundKind.ReturnStatement AndAlso
212
DirectCast(block.
Statements
(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse
213
(block.
Statements
.Length = 3 AndAlso
214
block.
Statements
(1).Kind = BoundKind.LabelStatement AndAlso
215
block.
Statements
(2).Kind = BoundKind.ReturnStatement) Then
217
Dim stmt = block.
Statements
(0)
232
If innerBlock.Locals.IsEmpty AndAlso innerBlock.
Statements
.Length = 1 Then
233
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)
119
Return New BoundBlock(body.Syntax, body.StatementListSyntax, body.Locals, body.
Statements
, hasErrors:=True)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
300
Dim rewrittenStatements = rewrittenBlock.
Statements
Operations\VisualBasicOperationFactory.vb (1)
1295
Dim operations As ImmutableArray(Of IOperation) = CreateFromArray(Of BoundStatement, IOperation)(boundBlock.
Statements
)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
Rewriters\CapturedVariableRewriter.vb (1)
47
Dim rewrittenStatements = VisitList(node.
Statements
)
Rewriters\LocalDeclarationRewriter.vb (1)
26
builder.AddRange(block.
Statements
)
Symbols\EEMethodSymbol.vb (1)
587
newBody = newBody.Update(newBody.StatementListSyntax, localBuilder.ToImmutableAndFree(), newBody.
Statements
)