9 references to CapturedEnvironments
Microsoft.CodeAnalysis.CSharp (9)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (6)
134/// Must be called only after <see cref="NestedFunction.CapturedEnvironments"/> 147if (function.CapturedEnvironments.Count > 0) 150capturedEnvs.AddAll(function.CapturedEnvironments); 238return closure.CapturedEnvironments.Contains(env) && 276var index = nested.CapturedEnvironments.IndexOf(env); 279nested.CapturedEnvironments.RemoveAt(index);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
170CapturedEnvironments.Free();
Lowering\ClosureConversion\ClosureConversion.cs (2)
434else if ((nestedFunction.CapturedEnvironments.Count == 0 && 483foreach (var env in function.CapturedEnvironments)