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)
56IReadOnlyDictionary<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)
611CapturedSymbolReplacement proxyField; 674CapturedSymbolReplacement oldInnermostFrameProxy = null; 735CapturedSymbolReplacement proxy;
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
62IReadOnlyDictionary<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>(); 369if (proxies.TryGetValue(parameterOrLocal, out CapturedSymbolReplacement? proxy)) 420if (proxies.TryGetValue(variable, out CapturedSymbolReplacement? proxy))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (7)
106IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies, 138CapturedSymbolReplacement? thisProxy; 314CapturedSymbolReplacement proxy; 344CapturedSymbolReplacement proxy; 909CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; 927CapturedSymbolReplacement proxy; 960CapturedSymbolReplacement 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>(); 301protected BoundStatement GenerateParameterStorage(LocalSymbol stateMachineVariable, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> proxies) 310CapturedSymbolReplacement proxy; 319CapturedSymbolReplacement proxy; 455CapturedSymbolReplacement proxy; 469CapturedSymbolReplacement proxy;