提交 aeed586f 编写于 作者: S Svetlana Isakova

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

上级 5b49869c
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册