Method renamed
This commit is contained in:
@@ -466,8 +466,8 @@ public class JetTypeMapper {
|
|||||||
|
|
||||||
|
|
||||||
private Method mapSignature(FunctionDescriptor f, List<Type> valueParameterTypes, OwnerKind kind) {
|
private Method mapSignature(FunctionDescriptor f, List<Type> valueParameterTypes, OwnerKind kind) {
|
||||||
final ReceiverDescriptor receiverTypeRef = f.getReceiver();
|
final ReceiverDescriptor receiverTypeRef = f.getReceiverParameter();
|
||||||
final JetType receiverType = receiverTypeRef == ReceiverDescriptor.NO_RECEIVER ? null : receiverTypeRef.getType();
|
final JetType receiverType = !receiverTypeRef.exists() ? null : receiverTypeRef.getType();
|
||||||
final List<ValueParameterDescriptor> parameters = f.getValueParameters();
|
final List<ValueParameterDescriptor> parameters = f.getValueParameters();
|
||||||
List<Type> parameterTypes = new ArrayList<Type>();
|
List<Type> parameterTypes = new ArrayList<Type>();
|
||||||
if (receiverType != null) {
|
if (receiverType != null) {
|
||||||
@@ -520,7 +520,7 @@ public class JetTypeMapper {
|
|||||||
if (functionParent instanceof NamespaceDescriptor) {
|
if (functionParent instanceof NamespaceDescriptor) {
|
||||||
owner = NamespaceCodegen.getJVMClassName(DescriptorRenderer.getFQName(functionParent));
|
owner = NamespaceCodegen.getJVMClassName(DescriptorRenderer.getFQName(functionParent));
|
||||||
invokeOpcode = Opcodes.INVOKESTATIC;
|
invokeOpcode = Opcodes.INVOKESTATIC;
|
||||||
needsReceiver = functionDescriptor.getReceiver() != ReceiverDescriptor.NO_RECEIVER;
|
needsReceiver = functionDescriptor.getReceiverParameter().exists();
|
||||||
}
|
}
|
||||||
else if (functionParent instanceof ClassDescriptor) {
|
else if (functionParent instanceof ClassDescriptor) {
|
||||||
ClassDescriptor containingClass = (ClassDescriptor) functionParent;
|
ClassDescriptor containingClass = (ClassDescriptor) functionParent;
|
||||||
|
|||||||
@@ -2956,7 +2956,7 @@ public class JetTypeInferrer {
|
|||||||
}
|
}
|
||||||
else if (declarationDescriptor instanceof FunctionDescriptor) {
|
else if (declarationDescriptor instanceof FunctionDescriptor) {
|
||||||
FunctionDescriptor functionDescriptor = (FunctionDescriptor) declarationDescriptor;
|
FunctionDescriptor functionDescriptor = (FunctionDescriptor) declarationDescriptor;
|
||||||
thisReceiver = functionDescriptor.getReceiver();
|
thisReceiver = functionDescriptor.getReceiverParameter();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
@@ -2971,7 +2971,7 @@ public class JetTypeInferrer {
|
|||||||
if (element instanceof JetFunctionLiteralExpression) {
|
if (element instanceof JetFunctionLiteralExpression) {
|
||||||
DeclarationDescriptor declarationDescriptor = context.trace.getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, element);
|
DeclarationDescriptor declarationDescriptor = context.trace.getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, element);
|
||||||
if (declarationDescriptor instanceof FunctionDescriptor) {
|
if (declarationDescriptor instanceof FunctionDescriptor) {
|
||||||
thisReceiver = ((FunctionDescriptor) declarationDescriptor).getReceiver();
|
thisReceiver = ((FunctionDescriptor) declarationDescriptor).getReceiverParameter();
|
||||||
if (thisReceiver.exists()) {
|
if (thisReceiver.exists()) {
|
||||||
context.trace.record(LABEL_TARGET, targetLabel, element);
|
context.trace.record(LABEL_TARGET, targetLabel, element);
|
||||||
context.trace.record(REFERENCE_TARGET, expression.getThisReference(), declarationDescriptor);
|
context.trace.record(REFERENCE_TARGET, expression.getThisReference(), declarationDescriptor);
|
||||||
|
|||||||
Reference in New Issue
Block a user