2 instantiations of SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\ClosureConversion.cs (2)
394var synthesizedEnv = new SynthesizedClosureEnvironment( 543_lazyStaticLambdaFrame = new SynthesizedClosureEnvironment(
36 references to SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (36)
Compiler\TypeCompilationState.cs (1)
72public SynthesizedClosureEnvironment? StaticLambdaFrame;
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
532var parentClosure = environment.Parent?.SynthesizedEnvironment;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
185internal SynthesizedClosureEnvironment SynthesizedEnvironment;
Lowering\ClosureConversion\ClosureConversion.cs (20)
39/// <see cref="SynthesizedClosureEnvironment"/> for each scope with captured variables. The generated frames are kept 82private SynthesizedClosureEnvironment _lazyStaticLambdaFrame; 350/// Adds <see cref="SynthesizedClosureEnvironment"/> synthesized types to the compilation state 361var frame = MakeFrame(scope, env); 378SynthesizedClosureEnvironment MakeFrame(Analysis.Scope scope, Analysis.ClosureEnvironment env) 394var synthesizedEnv = new SynthesizedClosureEnvironment( 430SynthesizedClosureEnvironment containerAsFrame; 494static ImmutableArray<SynthesizedClosureEnvironment> getStructEnvironments(Analysis.NestedFunction function) 496var environments = ArrayBuilder<SynthesizedClosureEnvironment>.GetInstance(); 519private SynthesizedClosureEnvironment GetStaticFrame(BindingDiagnosticBag diagnostics, SyntaxNode syntax) 558var frame = _lazyStaticLambdaFrame; 676var frame = env.SynthesizedEnvironment; 914Debug.Assert(frameType is SynthesizedClosureEnvironment); 918var typeParameters = ((SynthesizedClosureEnvironment)frameType).ConstructedFromTypeParameters; 1035var containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1437SynthesizedClosureEnvironment containerAsFrame; 1529out SynthesizedClosureEnvironment containerAsFrame, 1540containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1649SynthesizedClosureEnvironment containerAsFrame;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (7)
26protected LambdaCapturedVariable(SynthesizedClosureEnvironment frame, TypeWithAnnotations type, string fieldName, bool isThisParameter) 41public SynthesizedClosureEnvironment Frame 42=> (SynthesizedClosureEnvironment)ContainingType; 46public static LambdaCapturedVariable Create(SynthesizedClosureEnvironment frame, Symbol captured, ref int uniqueId) 122var lambdaFrame = local.Type.OriginalDefinition as SynthesizedClosureEnvironment; 178public LambdaCapturedVariableForRegularParameter(SynthesizedClosureEnvironment frame, TypeWithAnnotations type, string fieldName, ParameterSymbol parameter)
Lowering\ClosureConversion\SynthesizedClosureEnvironmentConstructor.cs (1)
14internal SynthesizedClosureEnvironmentConstructor(SynthesizedClosureEnvironment frame)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
27ImmutableArray<SynthesizedClosureEnvironment> structEnvironments, 54var lambdaFrame = ContainingType as SynthesizedClosureEnvironment; 82foreach (var env in structEnvironments)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
406Debug.Assert(ContainingType is SynthesizedClosureEnvironment);