25 references to proxies
Microsoft.CodeAnalysis.CSharp (25)
Lowering\ClosureConversion\ClosureConversion.cs (9)
41
/// variable in the corresponding scope. These are maintained in <see cref="MethodToClassRewriter.
proxies
"/>.
390
Debug.Assert(!
proxies
.ContainsKey(captured));
393
proxies
.Add(captured, new CapturedToFrameSymbolReplacement(hoistedField, isReusable: false));
620
if (
proxies
.TryGetValue(framePointer, out proxyField))
688
proxies
.TryGetValue(_innermostFramePointer, out oldInnermostFrameProxy);
705
proxies
[_innermostFramePointer] = new CapturedToFrameSymbolReplacement(capturedFrame, isReusable: false);
733
proxies
[_innermostFramePointer] = oldInnermostFrameProxy;
737
proxies
.Remove(_innermostFramePointer);
747
if (
proxies
.TryGetValue(symbol, out proxy))
Lowering\MethodToClassRewriter.cs (4)
374
if (
proxies
.TryGetValue(parameterOrLocal, out CapturedSymbolReplacement? proxy))
429
if (
proxies
.TryGetValue(variable, out CapturedSymbolReplacement? proxy))
497
Debug.Assert(!
proxies
.ContainsKey(leftLocal.LocalSymbol));
503
if (NeedsProxy(leftLocal.LocalSymbol) && !
proxies
.ContainsKey(leftLocal.LocalSymbol))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (12)
135
this.
proxies
.Add(proxy.Key, proxy.Value);
146
proxies
.TryGetValue(thisParameter, out thisProxy) &&
284
Debug.Assert(!NeedsProxy(local) ||
proxies
.ContainsKey(local));
322
if (!
proxies
.TryGetValue(local, out proxy))
325
proxies
.Add(local, proxy);
351
if (!
proxies
.TryGetValue(local, out proxy))
553
proxies
.Add(local, new CapturedToExpressionSymbolReplacement(replacement, hoistedFields.ToImmutableAndFree(), isReusable: true));
768
hoistedLocalsWithDebugScopes.Add(((CapturedToStateMachineFieldReplacement)
proxies
[local]).HoistedField);
840
if (
proxies
.ContainsKey(leftLocal))
946
CapturedSymbolReplacement proxy =
proxies
[this.OriginalMethod.ThisParameter];
965
if ((object)thisParameter == null || !
proxies
.TryGetValue(thisParameter, out proxy))
997
CapturedSymbolReplacement proxy =
proxies
[this.OriginalMethod.ThisParameter];