2 writes to DeclaredEnvironment
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
273ScopeTree.DeclaredEnvironment = null; 343scope.DeclaredEnvironment = env;
9 references to DeclaredEnvironment
Microsoft.CodeAnalysis.CSharp (9)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (7)
156var env = curScope.DeclaredEnvironment; 166var oldEnv = curScope?.DeclaredEnvironment; 175var env = curScope.DeclaredEnvironment; 217var env = ScopeTree.DeclaredEnvironment; 342Debug.Assert(scope.DeclaredEnvironment is null); 371if (!(scope.DeclaredEnvironment is null)) 374environmentsToScopes[scope.DeclaredEnvironment] = scope;
Lowering\ClosureConversion\ClosureConversion.cs (2)
342if (scope.DeclaredEnvironment is { } env) 1536if (scope.DeclaredEnvironment == function.ContainingEnvironmentOpt)