IR: move containerSource from descriptor to IrFunction, IrProperty
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ class CallableReferenceLowering(private val context: CommonBackendContext) : Bod
|
||||
val superProperty = superFunctionInterface.declarations.filterIsInstance<IrProperty>().single()
|
||||
val supperGetter = superProperty.getter ?: error("Expected getter for KFunction.name property")
|
||||
|
||||
val nameProperty = clazz.addProperty {
|
||||
val nameProperty = clazz.addProperty() {
|
||||
visibility = superProperty.visibility
|
||||
name = superProperty.name
|
||||
origin = GENERATED_MEMBER_IN_CALLABLE_REFERENCE
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ class JsInnerClassesSupport(mapping: JsMapping, private val irFactory: IrFactory
|
||||
val irClass = oldConstructor.parent as IrClass
|
||||
val outerThisType = (irClass.parent as IrClass).defaultType
|
||||
|
||||
val newConstructor = irFactory.buildConstructor(oldConstructor.descriptor) {
|
||||
val newConstructor = irFactory.buildConstructor {
|
||||
updateFrom(oldConstructor)
|
||||
returnType = oldConstructor.returnType
|
||||
}.also {
|
||||
|
||||
Reference in New Issue
Block a user