6 instantiations of CapturedToStateMachineFieldReplacement
Microsoft.CodeAnalysis.CSharp (6)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
319proxy = new CapturedToStateMachineFieldReplacement(GetOrAllocateReusableHoistedField(TypeMap.SubstituteType(local.Type).Type, out reused, local), isReusable: true);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
228proxiesBuilder.Add(local, new CapturedToStateMachineFieldReplacement(field, isReusable: false)); 238proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 245initialParameters.Add(parameter, new CapturedToStateMachineFieldReplacement(initialThis, isReusable: false)); 253proxiesBuilder.Add(parameter, new CapturedToStateMachineFieldReplacement(proxyField, isReusable: false)); 258initialParameters.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)
333hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxy).HoistedField); 351var simpleProxy = proxy as CapturedToStateMachineFieldReplacement; 750hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)proxies[local]).HoistedField);