2 instantiations of SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\ClosureConversion.cs (2)
379var synthesizedEnv = new SynthesizedClosureEnvironment( 528_lazyStaticLambdaFrame = new SynthesizedClosureEnvironment(
35 references to SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (35)
Compiler\TypeCompilationState.cs (1)
72public SynthesizedClosureEnvironment? StaticLambdaFrame;
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
531var 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; 335/// Adds <see cref="SynthesizedClosureEnvironment"/> synthesized types to the compilation state 346var frame = MakeFrame(scope, env); 363SynthesizedClosureEnvironment MakeFrame(Analysis.Scope scope, Analysis.ClosureEnvironment env) 379var synthesizedEnv = new SynthesizedClosureEnvironment( 415SynthesizedClosureEnvironment containerAsFrame; 479static ImmutableArray<SynthesizedClosureEnvironment> getStructEnvironments(Analysis.NestedFunction function) 481var environments = ArrayBuilder<SynthesizedClosureEnvironment>.GetInstance(); 504private SynthesizedClosureEnvironment GetStaticFrame(BindingDiagnosticBag diagnostics, SyntaxNode syntax) 543var frame = _lazyStaticLambdaFrame; 661var frame = env.SynthesizedEnvironment; 899Debug.Assert(frameType is SynthesizedClosureEnvironment); 903var typeParameters = ((SynthesizedClosureEnvironment)frameType).ConstructedFromTypeParameters; 1020var containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1423SynthesizedClosureEnvironment containerAsFrame; 1515out SynthesizedClosureEnvironment containerAsFrame, 1526containerAsFrame = translatedLambdaContainer as SynthesizedClosureEnvironment; 1635SynthesizedClosureEnvironment containerAsFrame;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (6)
24private LambdaCapturedVariable(SynthesizedClosureEnvironment frame, TypeWithAnnotations type, string fieldName, bool isThisParameter) 39public SynthesizedClosureEnvironment Frame 40=> (SynthesizedClosureEnvironment)ContainingType; 42public static LambdaCapturedVariable Create(SynthesizedClosureEnvironment frame, Symbol captured, ref int uniqueId) 103var 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);