5 instantiations of CompilerScope
System.Linq.Expressions (5)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
103scope = 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)
10internal readonly Dictionary<object, CompilerScope> Scopes = new Dictionary<object, CompilerScope>();
System\Linq\Expressions\Compiler\CompilerScope.cs (8)
38private CompilerScope? _parent; 123internal CompilerScope Enter(LambdaCompiler lc, CompilerScope? parent) 147internal CompilerScope? Exit() 160CompilerScope? parent = _parent; 247for (CompilerScope? s = this; s != null; s = s._parent) 286private void SetParent(LambdaCompiler lc, CompilerScope? parent) 499CompilerScope? s = this;
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
52private CompilerScope _scope;
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (1)
207private void EmitLambdaBody(CompilerScope? parent, bool inlined, CompilationFlags flags)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
90if (!_tree.Scopes.TryGetValue(node, out CompilerScope? scope))
System\Linq\Expressions\Compiler\VariableBinder.cs (8)
20private readonly Stack<CompilerScope> _scopes = new Stack<CompilerScope>(); 161CompilerScope currentScope = _scopes.Peek(); 203CompilerScope? referenceScope = null; 204foreach (CompilerScope scope in _scopes) 240CompilerScope? definition = null; 241foreach (CompilerScope scope in _scopes) 272foreach (CompilerScope scope in _scopes)