2 instantiations of SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\ClosureConversion.cs (2)
379
var synthesizedEnv = new
SynthesizedClosureEnvironment
(
528
_lazyStaticLambdaFrame = new
SynthesizedClosureEnvironment
(
35 references to SynthesizedClosureEnvironment
Microsoft.CodeAnalysis.CSharp (35)
Compiler\TypeCompilationState.cs (1)
72
public
SynthesizedClosureEnvironment
? StaticLambdaFrame;
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
531
var
parentClosure = environment.Parent?.SynthesizedEnvironment;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
185
internal
SynthesizedClosureEnvironment
SynthesizedEnvironment;
Lowering\ClosureConversion\ClosureConversion.cs (20)
39
/// <see cref="
SynthesizedClosureEnvironment
"/> for each scope with captured variables. The generated frames are kept
82
private
SynthesizedClosureEnvironment
_lazyStaticLambdaFrame;
335
/// Adds <see cref="
SynthesizedClosureEnvironment
"/> synthesized types to the compilation state
346
var
frame = MakeFrame(scope, env);
363
SynthesizedClosureEnvironment
MakeFrame(Analysis.Scope scope, Analysis.ClosureEnvironment env)
379
var
synthesizedEnv = new SynthesizedClosureEnvironment(
415
SynthesizedClosureEnvironment
containerAsFrame;
479
static ImmutableArray<
SynthesizedClosureEnvironment
> getStructEnvironments(Analysis.NestedFunction function)
481
var environments = ArrayBuilder<
SynthesizedClosureEnvironment
>.GetInstance();
504
private
SynthesizedClosureEnvironment
GetStaticFrame(BindingDiagnosticBag diagnostics, SyntaxNode syntax)
543
var
frame = _lazyStaticLambdaFrame;
661
var
frame = env.SynthesizedEnvironment;
899
Debug.Assert(frameType is
SynthesizedClosureEnvironment
);
903
var typeParameters = ((
SynthesizedClosureEnvironment
)frameType).ConstructedFromTypeParameters;
1020
var
containerAsFrame = translatedLambdaContainer as
SynthesizedClosureEnvironment
;
1423
SynthesizedClosureEnvironment
containerAsFrame;
1515
out
SynthesizedClosureEnvironment
containerAsFrame,
1526
containerAsFrame = translatedLambdaContainer as
SynthesizedClosureEnvironment
;
1635
SynthesizedClosureEnvironment
containerAsFrame;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (6)
24
private LambdaCapturedVariable(
SynthesizedClosureEnvironment
frame, TypeWithAnnotations type, string fieldName, bool isThisParameter)
39
public
SynthesizedClosureEnvironment
Frame
40
=> (
SynthesizedClosureEnvironment
)ContainingType;
42
public static LambdaCapturedVariable Create(
SynthesizedClosureEnvironment
frame, Symbol captured, ref int uniqueId)
103
var
lambdaFrame = local.Type.OriginalDefinition as
SynthesizedClosureEnvironment
;
Lowering\ClosureConversion\SynthesizedClosureEnvironmentConstructor.cs (1)
14
internal SynthesizedClosureEnvironmentConstructor(
SynthesizedClosureEnvironment
frame)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
27
ImmutableArray<
SynthesizedClosureEnvironment
> structEnvironments,
54
var
lambdaFrame = ContainingType as
SynthesizedClosureEnvironment
;
84
foreach (
var
env in structEnvironments)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
402
Debug.Assert(ContainingType is
SynthesizedClosureEnvironment
);