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