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