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