6 instantiations of CapturedToStateMachineFieldReplacement
Microsoft.CodeAnalysis.CSharp (6)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
324proxy = new CapturedToStateMachineFieldReplacement(GetOrAllocateReusableHoistedField(TypeMap.SubstituteType(local.Type).Type, out reused, local), isReusable: true);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
231proxiesBuilder.Add(local, new CapturedToStateMachineFieldReplacement(field, isReusable: false)); 241proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 248initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(initialThis, isReusable: false)); 256proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 261initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(field, isReusable: false));
5 references to CapturedToStateMachineFieldReplacement
Microsoft.CodeAnalysis.CSharp (5)
Lowering\MethodToClassRewriter.cs (1)
433CapturedToStateMachineFieldReplacement stateMachineProxy => (FieldSymbol)stateMachineProxy.HoistedField,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
338hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxy).HoistedField); 356var simpleProxy = proxy as CapturedToStateMachineFieldReplacement; 768hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxies[local]).HoistedField);