Fir2Ir: compute mangles for anonymous objects
Needs review to avoid assigning the same mangle to different objects,
This commit is contained in:
committed by
Alexander Udalov
parent
12d34589d8
commit
a6d4cd0fe4
+4
@@ -278,6 +278,10 @@ open class FirJvmMangleComputer(
|
|||||||
regularClass.mangleSimpleDeclaration(regularClass.name.asString())
|
regularClass.mangleSimpleDeclaration(regularClass.name.asString())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun visitAnonymousObject(anonymousObject: FirAnonymousObject, data: Boolean) {
|
||||||
|
anonymousObject.mangleSimpleDeclaration("<anonymous>")
|
||||||
|
}
|
||||||
|
|
||||||
override fun visitProperty(property: FirProperty, data: Boolean) {
|
override fun visitProperty(property: FirProperty, data: Boolean) {
|
||||||
isRealExpect = isRealExpect or property.isExpect
|
isRealExpect = isRealExpect or property.isExpect
|
||||||
typeParameterContainer.add(property)
|
typeParameterContainer.add(property)
|
||||||
|
|||||||
Reference in New Issue
Block a user