5 instantiations of CompilerScope
System.Linq.Expressions (5)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
103
scope = new
CompilerScope
(node, false) { NeedsClosure = _scope.NeedsClosure };
System\Linq\Expressions\Compiler\VariableBinder.cs (4)
87
_scopes.Push(_tree.Scopes[node] = new
CompilerScope
(node, true));
103
_scopes.Push(_tree.Scopes[node] = new
CompilerScope
(lambda, false));
124
_scopes.Push(_tree.Scopes[node] = new
CompilerScope
(node, false));
138
_scopes.Push(_tree.Scopes[node] = new
CompilerScope
(node, false));
21 references to CompilerScope
System.Linq.Expressions (21)
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
10
internal readonly Dictionary<object,
CompilerScope
> Scopes = new Dictionary<object,
CompilerScope
>();
System\Linq\Expressions\Compiler\CompilerScope.cs (8)
38
private
CompilerScope
? _parent;
123
internal
CompilerScope
Enter(LambdaCompiler lc,
CompilerScope
? parent)
147
internal
CompilerScope
? Exit()
160
CompilerScope
? parent = _parent;
247
for (
CompilerScope
? s = this; s != null; s = s._parent)
286
private void SetParent(LambdaCompiler lc,
CompilerScope
? parent)
499
CompilerScope
? s = this;
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
52
private
CompilerScope
_scope;
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (1)
207
private void EmitLambdaBody(
CompilerScope
? parent, bool inlined, CompilationFlags flags)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
90
if (!_tree.Scopes.TryGetValue(node, out
CompilerScope
? scope))
System\Linq\Expressions\Compiler\VariableBinder.cs (8)
20
private readonly Stack<
CompilerScope
> _scopes = new Stack<
CompilerScope
>();
161
CompilerScope
currentScope = _scopes.Peek();
203
CompilerScope
? referenceScope = null;
204
foreach (
CompilerScope
scope in _scopes)
240
CompilerScope
? definition = null;
241
foreach (
CompilerScope
scope in _scopes)
272
foreach (
CompilerScope
scope in _scopes)