3 types derived from CapturedSymbolReplacement
Microsoft.CodeAnalysis.CSharp (3)
Lowering\StateMachineRewriter\CapturedSymbol.cs (3)
29internal sealed class CapturedToFrameSymbolReplacement : CapturedSymbolReplacement 47internal sealed class CapturedToStateMachineFieldReplacement : CapturedSymbolReplacement 65internal sealed class CapturedToExpressionSymbolReplacement : CapturedSymbolReplacement
31 references to CapturedSymbolReplacement
Microsoft.CodeAnalysis.CSharp (31)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
57IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies,
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
75IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies,
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
262protected override BoundStatement GenerateStateMachineCreation(LocalSymbol stateMachineVariable, NamedTypeSymbol frameType, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
214protected override BoundStatement GenerateStateMachineCreation(LocalSymbol stateMachineVariable, NamedTypeSymbol frameType, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies)
Lowering\ClosureConversion\ClosureConversion.cs (3)
619CapturedSymbolReplacement proxyField; 685CapturedSymbolReplacement oldInnermostFrameProxy = null; 746CapturedSymbolReplacement proxy;
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
63IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies,
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
312protected override BoundStatement GenerateStateMachineCreation(LocalSymbol stateMachineVariable, NamedTypeSymbol frameType, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies)
Lowering\MethodToClassRewriter.cs (4)
28protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>(); 374if (proxies.TryGetValue(parameterOrLocal, out CapturedSymbolReplacement? proxy)) 429if (proxies.TryGetValue(variable, out CapturedSymbolReplacement? proxy))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (7)
106IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies, 143CapturedSymbolReplacement? thisProxy; 320CapturedSymbolReplacement proxy; 350CapturedSymbolReplacement proxy; 946CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; 964CapturedSymbolReplacement proxy; 997CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter];
Lowering\StateMachineRewriter\StateMachineRewriter.cs (11)
30protected IReadOnlyDictionary<Symbol, CapturedSymbolReplacement>? nonReusableLocalProxies; 34protected Dictionary<Symbol, CapturedSymbolReplacement>? initialParameters; 86protected abstract BoundStatement GenerateStateMachineCreation(LocalSymbol stateMachineVariable, NamedTypeSymbol frameType, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies); 114initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 138out IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies, 142var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>(); 306protected BoundStatement GenerateParameterStorage(LocalSymbol stateMachineVariable, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies) 315CapturedSymbolReplacement proxy; 329CapturedSymbolReplacement proxy; 469CapturedSymbolReplacement proxy; 487CapturedSymbolReplacement proxy;