Refactor: allow to distinguish whether JvmMemberSignature is for field or for method
Introduce a method to create org.jetbrains.kotlin.load.kotlin.MemberSignature directly from JvmMemberSignature. Create JvmFunctionSignature from JvmMemberSignature.
This commit is contained in:
@@ -132,10 +132,7 @@ private fun visitProperty(
|
||||
sb.appendln(" // $versionRequirement")
|
||||
}
|
||||
if (jvmFieldDesc != null) {
|
||||
// TODO: support that case in jvmFieldDesc.toString()
|
||||
sb.append(" // field: ${jvmFieldDesc!!.name}")
|
||||
sb.append(":").append(jvmFieldDesc!!.desc)
|
||||
sb.appendln()
|
||||
sb.appendln(" // field: $jvmFieldDesc")
|
||||
}
|
||||
if (jvmGetterDesc != null) {
|
||||
sb.appendln(" // getter: $jvmGetterDesc")
|
||||
|
||||
Reference in New Issue
Block a user