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