1 write to Locals
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3313this.Locals = locals;
33 references to Locals
Microsoft.CodeAnalysis.CSharp (33)
Binder\RefSafetyAnalysis.cs (1)
252using var _2 = new LocalScope(this, node.Locals);
BoundTree\BoundNode.cs (2)
568AddAll(node.Locals); 570RemoveAll(node.Locals);
BoundTree\BoundNode_Source.cs (2)
87if (statements.Length == 1 && block.Locals.IsEmpty) 94foreach (var local in block.Locals)
CodeGen\EmitStatement.cs (3)
741var hasLocals = !block.Locals.IsEmpty; 747foreach (var local in block.Locals) 775foreach (var local in block.Locals)
CodeGen\Optimizer.cs (1)
625DeclareLocals(node.Locals, stack: 0);
Compiler\MethodCompiler.cs (1)
1058body = body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.Instrumentation, body.Statements.Insert(insertAt, analyzedInitializers));
FlowAnalysis\ControlFlowPass.cs (1)
403foreach (var local in node.Locals)
FlowAnalysis\DefiniteAssignment.cs (3)
2136DeclareVariables(node.Locals); 2141foreach (var local in node.Locals) 2149ReportUnusedVariables(node.Locals);
FlowAnalysis\FlowAnalysisPass.cs (3)
162return body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.Instrumentation, body.Statements.Insert(index: 0, initializations)); 176return body.Update(body.Locals, ImmutableArray<LocalFunctionSymbol>.Empty, body.HasUnsafeModifier, body.Instrumentation, builder.ToImmutableAndFree()); 204return body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.Instrumentation, body.Statements.Add(ret));
FlowAnalysis\NullableWalker.cs (1)
3046DeclareLocals(node.Locals);
Generated\BoundNodes.xml.Generated.cs (4)
3329if (locals != this.Locals || localFunctions != this.LocalFunctions || hasUnsafeModifier != this.HasUnsafeModifier || instrumentation != this.Instrumentation || statements != this.Statements) 11288return node.Update(node.Locals, node.LocalFunctions, node.HasUnsafeModifier, instrumentation, statements); 13354ImmutableArray<LocalSymbol> locals = GetUpdatedArray(node, node.Locals); 15709new TreeDumperNode("locals", node.Locals, null),
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
419PushOrReuseScope(node, node.Locals);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1166RewriteLocals(node.Locals, newLocals);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
133Debug.Assert(block.Locals.IsEmpty);
Lowering\Instrumentation\DebugInfoInjector.cs (1)
126return block.Update(block.Locals, block.LocalFunctions, block.HasUnsafeModifier, block.Instrumentation, ImmutableArray.Create(InstrumentFieldOrPropertyInitializer(block.Statements.Single(), syntax)));
Lowering\Instrumentation\Instrumenter.cs (1)
71/// <param name="additionalLocals">Local symbols to be added to <see cref="BoundBlock.Locals"/> of the resulting block.</param>
Lowering\LocalRewriter\LocalRewriter.cs (1)
715var locals = block.Locals;
Lowering\LocalRewriter\LocalRewriter_Block.cs (1)
52var locals = node.Locals;
Lowering\MethodToClassRewriter.cs (1)
155var newLocals = RewriteLocals(node.Locals);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
369AddVariables(node.Locals);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
723return PossibleIteratorScope(node.Locals, () => VisitBlock(node, removeInstrumentation: true));
Operations\CSharpOperationFactory.cs (1)
1754ImmutableArray<ILocalSymbol> locals = boundBlock.Locals.GetPublicSymbols();