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)
74IReadOnlyDictionary<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, 138CapturedSymbolReplacement? thisProxy; 315CapturedSymbolReplacement proxy; 345CapturedSymbolReplacement proxy; 928CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; 946CapturedSymbolReplacement proxy; 979CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter];
Lowering\StateMachineRewriter\StateMachineRewriter.cs (11)
31protected 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, 141var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>(); 302protected BoundStatement GenerateParameterStorage(LocalSymbol stateMachineVariable, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies) 311CapturedSymbolReplacement proxy; 325CapturedSymbolReplacement proxy; 465CapturedSymbolReplacement proxy; 483CapturedSymbolReplacement proxy;