6 references to CapturedToStateMachineFieldReplacement
Microsoft.CodeAnalysis.CSharp (6)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
319
proxy = new
CapturedToStateMachineFieldReplacement
(GetOrAllocateReusableHoistedField(TypeMap.SubstituteType(local.Type).Type, out reused, local), isReusable: true);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
228
proxiesBuilder.Add(local, new
CapturedToStateMachineFieldReplacement
(field, isReusable: false));
238
proxiesBuilder.Add(parameter, new
CapturedToStateMachineFieldReplacement
(proxyField, isReusable: false));
245
initialParameters.Add(parameter, new
CapturedToStateMachineFieldReplacement
(initialThis, isReusable: false));
253
proxiesBuilder.Add(parameter, new
CapturedToStateMachineFieldReplacement
(proxyField, isReusable: false));
258
initialParameters.Add(parameter, new
CapturedToStateMachineFieldReplacement
(field, isReusable: false));