38 references to Locals
Microsoft.CodeAnalysis.VisualBasic (38)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1683
Dim localVariables = node.
Locals
Analysis\InitializerRewriter.vb (2)
171
Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.
Locals
, boundStatements.ToImmutableAndFree(), block.HasErrors)
185
Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.
Locals
, boundStatements.ToImmutableAndFree(), block.HasErrors)
Binding\Binder_Lambda.vb (2)
558
If Not block.
Locals
.IsEmpty Then
559
localBuilder.AddRange(block.
Locals
)
Binding\Binder_Statements.vb (3)
353
body = body.Update(body.StatementListSyntax, body.
Locals
, body.Statements.RemoveAt(0))
359
body = body.Update(body.StatementListSyntax, body.
Locals
, body.Statements.Add(exitLabelStatement))
368
locals = body.
Locals
CodeGen\EmitStatement.vb (2)
1222
Dim hasLocals As Boolean = Not scope.
Locals
.IsEmpty
1226
For Each local In scope.
Locals
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
279
DeclareLocals(node.
Locals
, 0)
Generated\BoundNodes.xml.Generated.vb (3)
4390
If statementListSyntax <> Me.StatementListSyntax OrElse locals <> Me.
Locals
OrElse statements <> Me.Statements Then
12542
Return node.Update(node.StatementListSyntax, node.
Locals
, statements)
13818
New TreeDumperNode("locals", node.
Locals
, Nothing),
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
235
If innerBlock.
Locals
.IsEmpty AndAlso innerBlock.Statements.Length = 1 Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
147
Debug.Assert(block.
Locals
.IsEmpty OrElse
148
(block.
Locals
.Length = 1 AndAlso block.
Locals
(0).IsFunctionValue))
168
If innerBlock.
Locals
.IsEmpty AndAlso innerBlock.Statements.Length = 1 Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
284
Dim previousBlock = PushBlock(node, node.
Locals
)
321
For Each local In node.Body.
Locals
Lowering\LocalRewriter\LocalRewriter.vb (2)
404
Return block.Update(block.StatementListSyntax, block.
Locals
, consequenceWithEnd.AsImmutableOrNull)
425
Return block.Update(block.StatementListSyntax, block.
Locals
, consequenceWithEnd.AsImmutableOrNull)
Lowering\LocalRewriter\LocalRewriter_Block.vb (10)
23
If Not node.
Locals
.IsEmpty Then
27
For i = 0 To node.
Locals
.Length - 1
28
If node.
Locals
(i).IsStatic Then
35
builder.AddRange(node.
Locals
, i)
37
For i = i + 1 To node.
Locals
.Length - 1
38
If Not node.
Locals
(i).IsStatic Then
39
builder.Add(node.
Locals
(i))
43
Debug.Assert(builder.Count < node.
Locals
.Length)
65
Return New BoundBlock(node.Syntax, node.StatementListSyntax, If(synthesizedLocal Is Nothing, node.
Locals
, node.
Locals
.Add(synthesizedLocal)), builder.ToImmutableAndFree())
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (2)
54
If(body.
Locals
.IsEmpty,
56
body.
Locals
.Add(_currentLineTemporary)),
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
351
For Each v In node.
Locals
Lowering\Rewriter.vb (1)
121
Return New BoundBlock(body.Syntax, body.StatementListSyntax, body.
Locals
, body.Statements, hasErrors:=True)
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
244
Return PossibleStateMachineScope(node.
Locals
, MyBase.VisitBlock(node))