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