FIR: Fix interface delegation ABI
- Unifies the name of the `$$delegate_<n>` field between K1 and K2. - Make the `$$delegate_<n>` field private
This commit is contained in:
committed by
Space Team
parent
91749737f8
commit
a7ba081d22
@@ -101,4 +101,14 @@ object SpecialNames {
|
||||
fun isSafeIdentifier(name: Name): Boolean {
|
||||
return name.asString().isNotEmpty() && !name.isSpecial
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun delegateFieldName(index: Int): Name {
|
||||
return Name.identifier("\$\$delegate_$index")
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun propertyDelegateName(propertyName: Name): Name {
|
||||
return Name.identifier("${propertyName.asString()}\$delegate")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user