'thisObject' is known in 'variable as function' call case, while constructing second 'invoke' call

This commit is contained in:
Svetlana Isakova
2012-04-30 15:24:19 +04:00
parent 5b49869cac
commit aeed586fba
3 changed files with 21 additions and 0 deletions
@@ -36,6 +36,9 @@ public interface Call {
@NotNull
ReceiverDescriptor getExplicitReceiver();
@NotNull
ReceiverDescriptor getThisObject();
@Nullable
JetExpression getCalleeExpression();
@@ -98,6 +98,12 @@ public class CallMaker {
return explicitReceiver;
}
@NotNull
@Override
public ReceiverDescriptor getThisObject() {
return ReceiverDescriptor.NO_RECEIVER;
}
@Override
public JetExpression getCalleeExpression() {
return calleeExpression;
@@ -199,6 +205,12 @@ public class CallMaker {
return explicitReceiver;
}
@NotNull
@Override
public ReceiverDescriptor getThisObject() {
return ReceiverDescriptor.NO_RECEIVER;
}
@Nullable
public JetExpression getCalleeExpression() {
return callElement.getCalleeExpression();
@@ -48,6 +48,12 @@ public class DelegatingCall implements Call {
return delegate.getExplicitReceiver();
}
@NotNull
@Override
public ReceiverDescriptor getThisObject() {
return delegate.getThisObject();
}
@Override
@Nullable
public JetExpression getCalleeExpression() {