IR. Remove descriptors from KCallableNamePropertyLowering

This commit is contained in:
Georgy Bronnikov
2018-10-22 17:16:55 +03:00
parent 33f937c923
commit bf4f552478
2 changed files with 32 additions and 21 deletions
@@ -94,6 +94,10 @@ class DeclarationStubGenerator(
irProperty.setter = descriptor.setter?.let { generateFunctionStub(it, createPropertyIfNeeded = false) }?.apply {
correspondingProperty = irProperty
}
// Do we ever generate stubs for file-level properties?
(descriptor.containingDeclaration as? ClassDescriptor)?.let {
irProperty.parent = generateClassStub(it)
}
}
private fun generateFieldStub(descriptor: PropertyDescriptor): IrField {