[JS FE] Encode descriptor signature with context receivers
This commit is contained in:
committed by
TeamCityServer
parent
4aa05d85a4
commit
98e84a926a
@@ -37,6 +37,14 @@ fun encodeSignature(descriptor: CallableDescriptor): String {
|
|||||||
?: error("${typeParameter.original} is not found when encode the signature of $descriptor.")
|
?: error("${typeParameter.original} is not found when encode the signature of $descriptor.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val contextReceiverParameters = descriptor.contextReceiverParameters
|
||||||
|
if (contextReceiverParameters.isNotEmpty()) {
|
||||||
|
for (contextReceiverParameter in contextReceiverParameters) {
|
||||||
|
sig.encodeForSignature(contextReceiverParameter.type, typeParameterNamer).append(',')
|
||||||
|
}
|
||||||
|
sig.append('\\')
|
||||||
|
}
|
||||||
|
|
||||||
val receiverParameter = descriptor.extensionReceiverParameter
|
val receiverParameter = descriptor.extensionReceiverParameter
|
||||||
if (receiverParameter != null) {
|
if (receiverParameter != null) {
|
||||||
sig.encodeForSignature(receiverParameter.type, typeParameterNamer).append('/')
|
sig.encodeForSignature(receiverParameter.type, typeParameterNamer).append('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user