[k1] add information about context receiver labels to ContextClassReceiver/ContextReceiver
This commit is contained in:
+6
-1
@@ -358,6 +358,11 @@ class MemberDeserializer(private val c: DeserializationContext) {
|
||||
callableDescriptor: CallableDescriptor
|
||||
): ReceiverParameterDescriptor? {
|
||||
val contextReceiverType = deserializationContext.typeDeserializer.type(this)
|
||||
return DescriptorFactory.createContextReceiverParameterForCallable(callableDescriptor, contextReceiverType, Annotations.EMPTY)
|
||||
return DescriptorFactory.createContextReceiverParameterForCallable(
|
||||
callableDescriptor,
|
||||
contextReceiverType,
|
||||
/* customLabelName = */ null/*todo store custom label name in metadata?*/,
|
||||
Annotations.EMPTY
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+6
-1
@@ -150,7 +150,12 @@ class DeserializedClassDescriptor(
|
||||
val contextReceiverType = c.typeDeserializer.type(it)
|
||||
ReceiverParameterDescriptorImpl(
|
||||
thisAsReceiverParameter,
|
||||
ContextClassReceiver(this, contextReceiverType, null),
|
||||
ContextClassReceiver(
|
||||
this,
|
||||
contextReceiverType,
|
||||
/* customLabelName = */ null/*todo store custom label name in metadata?*/,
|
||||
null
|
||||
),
|
||||
Annotations.EMPTY
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user