22 references to ClosureEnvironment
Microsoft.CodeAnalysis.CSharp (22)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (8)
149var capturedEnvs = PooledHashSet<ClosureEnvironment>.GetInstance(); 156var env = curScope.DeclaredEnvironment; 166var oldEnv = curScope?.DeclaredEnvironment; 175var env = curScope.DeclaredEnvironment; 217var env = ScopeTree.DeclaredEnvironment; 341var env = new ClosureEnvironment(variablesInEnvironment, isStruct); 367var environmentsToScopes = PooledDictionary<ClosureEnvironment, Scope>.GetInstance(); 527internal DebugId GetClosureId(ClosureEnvironment environment, SyntaxNode syntax, ArrayBuilder<EncClosureInfo> closureDebugInfo, out RuntimeRudeEdit? rudeEdit)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (6)
76public ClosureEnvironment? DeclaredEnvironment = null; 136public readonly ArrayBuilder<ClosureEnvironment> CapturedEnvironments 137= ArrayBuilder<ClosureEnvironment>.GetInstance(); 139public ClosureEnvironment? ContainingEnvironmentOpt; 182public ClosureEnvironment Parent; 205var current = Parent;
Lowering\ClosureConversion\ClosureConversion.cs (8)
88private readonly Dictionary<BoundNode, Analysis.ClosureEnvironment> _frames = new Dictionary<BoundNode, Analysis.ClosureEnvironment>(); 363SynthesizedClosureEnvironment MakeFrame(Analysis.Scope scope, Analysis.ClosureEnvironment env) 659private BoundNode IntroduceFrame(BoundNode node, Analysis.ClosureEnvironment env, Func<ArrayBuilder<BoundExpression>, ArrayBuilder<LocalSymbol>, BoundNode> F) 1153if (_frames.TryGetValue(node, out var frame)) 1217if (_frames.TryGetValue(node, out var frame)) 1291if (_frames.TryGetValue(node, out var frame)) 1308if (_frames.TryGetValue(node, out var frame))