2 instantiations of SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\ClosureConversion.cs (2)
374var synthesizedEnv = new SynthesizedClosureEnvironment( 521_lazyStaticLambdaFrame = new SynthesizedClosureEnvironment(
31 references to SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (31)
Compiler\TypeCompilationState.cs (1)
72public SynthesizedClosureEnvironment? StaticLambdaFrame;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
185internal SynthesizedClosureEnvironment SynthesizedEnvironment;
Lowering\ClosureConversion\ClosureConversion.cs (20)
38/// <see cref="SynthesizedClosureEnvironment"/> for each scope with captured variables. The generated frames are kept 81private SynthesizedClosureEnvironment _lazyStaticLambdaFrame; 330/// Adds <see cref="SynthesizedClosureEnvironment"/> synthesized types to the compilation state 341var frame = MakeFrame(scope, env); 358SynthesizedClosureEnvironment MakeFrame(Analysis.Scope scope, Analysis.ClosureEnvironment env) 374var synthesizedEnv = new SynthesizedClosureEnvironment( 409SynthesizedClosureEnvironment containerAsFrame; 471static ImmutableArray<SynthesizedClosureEnvironment> getStructEnvironments(Analysis.NestedFunction function) 473var environments = ArrayBuilder<SynthesizedClosureEnvironment>.GetInstance(); 496private SynthesizedClosureEnvironment GetStaticFrame(BindingDiagnosticBag diagnostics, SyntaxNode syntax) 535var frame = _lazyStaticLambdaFrame; 650var frame = env.SynthesizedEnvironment; 884Debug.Assert(frameType is SynthesizedClosureEnvironment); 888var typeParameters = ((SynthesizedClosureEnvironment)frameType).ConstructedFromTypeParameters; 1005var containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1407SynthesizedClosureEnvironment containerAsFrame; 1487out SynthesizedClosureEnvironment containerAsFrame, 1498containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1607SynthesizedClosureEnvironment containerAsFrame;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (3)
38public static LambdaCapturedVariable Create(SynthesizedClosureEnvironment frame, Symbol captured, ref int uniqueId) 102var lambdaFrame = local.Type.OriginalDefinition as SynthesizedClosureEnvironment;
Lowering\ClosureConversion\SynthesizedClosureEnvironmentConstructor.cs (1)
14internal SynthesizedClosureEnvironmentConstructor(SynthesizedClosureEnvironment frame)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
27ImmutableArray<SynthesizedClosureEnvironment> structEnvironments, 54var lambdaFrame = ContainingType as SynthesizedClosureEnvironment; 84foreach (var env in structEnvironments)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
402Debug.Assert(ContainingType is SynthesizedClosureEnvironment);