1 instantiation of LambdaCapturedVariable
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
48
return new
LambdaCapturedVariable
(frame, TypeWithAnnotations.Create(type), fieldName, IsThis(captured));
8 references to LambdaCapturedVariable
Microsoft.CodeAnalysis.CSharp (8)
Lowering\ClosureConversion\ClosureConversion.cs (4)
392
var
hoistedField =
LambdaCapturedVariable
.Create(synthesizedEnv, captured, ref _synthesizedFieldNameIdDispenser);
691
var
capturedFrame =
LambdaCapturedVariable
.Create(frame, _innermostFramePointer, ref _synthesizedFieldNameIdDispenser);
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
42
public static
LambdaCapturedVariable
Create(SynthesizedClosureEnvironment frame, Symbol captured, ref int uniqueId)
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
75
internal void AddHoistedField(
LambdaCapturedVariable
captured) => _membersBuilder.Add(captured);
Lowering\StateMachineRewriter\CapturedSymbol.cs (2)
31
public readonly
LambdaCapturedVariable
HoistedField;
33
public CapturedToFrameSymbolReplacement(
LambdaCapturedVariable
hoistedField, bool isReusable)