Workaround non-unique symbol names of Objective-C category methods
This commit is contained in:
committed by
SvyatoslavScherbina
parent
06e561af34
commit
62bee84a26
+9
-1
@@ -158,7 +158,15 @@ internal val FunctionDescriptor.functionName: String
|
|||||||
get() {
|
get() {
|
||||||
with(this.original) { // basic support for generics
|
with(this.original) { // basic support for generics
|
||||||
this.getObjCMethodInfo()?.let {
|
this.getObjCMethodInfo()?.let {
|
||||||
return "objc:${it.selector}"
|
return buildString {
|
||||||
|
if (extensionReceiverParameter != null) {
|
||||||
|
append(TypeUtils.getClassDescriptor(extensionReceiverParameter!!.type)!!.name)
|
||||||
|
append(".")
|
||||||
|
}
|
||||||
|
|
||||||
|
append("objc:")
|
||||||
|
append(it.selector)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "$name$signature"
|
return "$name$signature"
|
||||||
|
|||||||
Reference in New Issue
Block a user