Skip to content

Commit 6294ad5

Browse files
committed
Downgrade MethodInvocationExpression.owner to an expression & rename it
1 parent 61eed01 commit 6294ad5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/MethodInvocationExpression.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal class MethodInvocationExpression : IExpression, IStatement
2323
{
2424
protected readonly IExpression[] args;
2525
protected readonly MethodInfo method;
26-
protected readonly Reference? owner;
26+
protected readonly IExpression? instance;
2727

2828
public MethodInvocationExpression(MethodInfo method, params IExpression[] args) :
2929
this(SelfReference.Self, method, args)
@@ -35,14 +35,14 @@ public MethodInvocationExpression(MethodEmitter method, params IExpression[] arg
3535
{
3636
}
3737

38-
public MethodInvocationExpression(Reference? owner, MethodEmitter method, params IExpression[] args) :
39-
this(owner, method.MethodBuilder, args)
38+
public MethodInvocationExpression(IExpression? instance, MethodEmitter method, params IExpression[] args)
39+
: this(instance, method.MethodBuilder, args)
4040
{
4141
}
4242

43-
public MethodInvocationExpression(Reference? owner, MethodInfo method, params IExpression[] args)
43+
public MethodInvocationExpression(IExpression? instance, MethodInfo method, params IExpression[] args)
4444
{
45-
this.owner = owner;
45+
this.instance = instance;
4646
this.method = method;
4747
this.args = args;
4848
}
@@ -51,7 +51,7 @@ public MethodInvocationExpression(Reference? owner, MethodInfo method, params IE
5151

5252
public void Emit(ILGenerator gen)
5353
{
54-
owner?.Emit(gen);
54+
instance?.Emit(gen);
5555

5656
foreach (var exp in args)
5757
{

0 commit comments

Comments
 (0)