4 writes to _scope
System.Linq.Expressions (4)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (2)
92
_scope
= tree.Scopes[lambda];
152
_scope
= _tree.Scopes[invocation];
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
106
_scope
= scope.Enter(this, _scope);
125
_scope
= _scope.Exit()!;
36 references to _scope
System.Linq.Expressions (36)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (2)
89
_scope
.EmitGet(node);
93
_scope
.EmitAddressOf(node);
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (11)
217
inner.EmitLambdaBody(
_scope
, true, flags);
729
_scope
.EmitGet(variable);
736
_scope
.EmitSet(variable);
766
_scope
.EmitGet(node);
782
_scope
.EmitVariableAccess(this, node.Variables);
1135
_scope
.AddLocal(this, v);
1143
_scope
.EmitSet(v);
1147
_scope
.AddLocal(this, v);
1156
_scope
.EmitSet(v);
1219
_scope
.AddLocal(this, v);
1258
_scope
.EmitSet(v);
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (7)
57
bool closure = inner.
_scope
.NeedsClosure;
77
_scope
.EmitGet(
_scope
.NearestHoistedLocals!.SelfVariable);
150
impl.EmitLambdaBody(
_scope
, false, CompilationFlags.EmitAsNoTail);
209
_scope
.Enter(this, parent);
220
_scope
.EmitSet(_lambda.GetParameter(i));
243
_scope
.Exit();
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (12)
88
(
_scope
.MergedScopes == null || !
_scope
.MergedScopes.Contains(node)))
103
scope = new CompilerScope(node, false) { NeedsClosure =
_scope
.NeedsClosure };
106
_scope = scope.Enter(this,
_scope
);
107
Debug.Assert(
_scope
.Node == node);
123
if (
_scope
.Node == node)
125
_scope =
_scope
.Exit()!;
204
_scope
.AddLocal(this, switchValue);
205
_scope
.AddLocal(this, testValue);
208
_scope
.EmitSet(switchValue);
221
_scope
.EmitSet(testValue);
800
_scope
.EmitSet(cb.Variable);
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (4)
27
if (
_scope
.NearestHoistedLocals != null)
30
EmitConstant(
_scope
.NearestHoistedLocals, typeof(object));
31
_scope
.EmitGet(
_scope
.NearestHoistedLocals.SelfVariable);