@@ -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