6 references to CapturedToStateMachineFieldReplacement
Microsoft.CodeAnalysis.CSharp (6)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
318
proxy = new
CapturedToStateMachineFieldReplacement
(GetOrAllocateReusableHoistedField(TypeMap.SubstituteType(local.Type).Type, out reused, local), isReusable: true);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
227
proxiesBuilder.Add(local, new
CapturedToStateMachineFieldReplacement
(field, isReusable: false));
237
proxiesBuilder.Add(parameter, new
CapturedToStateMachineFieldReplacement
(proxyField, isReusable: false));
244
initialParameters.Add(parameter, new
CapturedToStateMachineFieldReplacement
(initialThis, isReusable: false));
252
proxiesBuilder.Add(parameter, new
CapturedToStateMachineFieldReplacement
(proxyField, isReusable: false));
257
initialParameters.Add(parameter, new
CapturedToStateMachineFieldReplacement
(field, isReusable: false));