3 overrides of Replacement
Microsoft.CodeAnalysis.CSharp (3)
Lowering\StateMachineRewriter\CapturedSymbol.cs (3)
39
public override BoundExpression
Replacement
(SyntaxNode node, Func<NamedTypeSymbol, BoundExpression> makeFrame)
57
public override BoundExpression
Replacement
(SyntaxNode node, Func<NamedTypeSymbol, BoundExpression> makeFrame)
77
public override BoundExpression
Replacement
(SyntaxNode node, Func<NamedTypeSymbol, BoundExpression> makeFrame)
13 references to Replacement
Microsoft.CodeAnalysis.CSharp (13)
Lowering\ClosureConversion\ClosureConversion.cs (2)
617
return proxyField.
Replacement
(syntax, frameType => FramePointer(syntax, frameType));
772
var left = proxy.
Replacement
(syntax, frameType1 => new BoundLocal(syntax, framePointer, null, framePointer.Type));
Lowering\MethodToClassRewriter.cs (1)
371
replacement = proxy.
Replacement
(syntax, frameType => FramePointer(syntax, frameType));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
144
BoundExpression thisProxyReplacement = thisProxy.
Replacement
(F.Syntax, frameType => F.This());
910
var fetchThis = proxy.
Replacement
(F.Syntax, frameType => F.This());
946
return proxy.
Replacement
(F.Syntax, frameType => F.This());
962
return proxy.
Replacement
(F.Syntax, frameType => F.This());
Lowering\StateMachineRewriter\StateMachineRewriter.cs (6)
313
bodyBuilder.Add(F.Assignment(proxy.
Replacement
(F.Syntax, frameType1 => F.Local(stateMachineVariable)), F.This()));
322
bodyBuilder.Add(F.Assignment(proxy.
Replacement
(F.Syntax, frameType1 => F.Local(stateMachineVariable)),
460
proxy.
Replacement
(F.Syntax, stateMachineType => F.Local(resultVariable)),
461
copySrc[method.ThisParameter].
Replacement
(F.Syntax, stateMachineType => F.This())));
473
BoundExpression resultParameter = proxy.
Replacement
(F.Syntax, stateMachineType => F.Local(resultVariable));
475
BoundExpression parameterProxy = copySrc[parameter].
Replacement
(F.Syntax, stateMachineType => F.This());