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)
217inner.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)
57bool closure = inner._scope.NeedsClosure; 77_scope.EmitGet(_scope.NearestHoistedLocals!.SelfVariable); 150impl.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))) 103scope = new CompilerScope(node, false) { NeedsClosure = _scope.NeedsClosure }; 106_scope = scope.Enter(this, _scope); 107Debug.Assert(_scope.Node == node); 123if (_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)
27if (_scope.NearestHoistedLocals != null) 30EmitConstant(_scope.NearestHoistedLocals, typeof(object)); 31_scope.EmitGet(_scope.NearestHoistedLocals.SelfVariable);