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