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