psi2ir: Provide substituted descriptor for property references

This commit is contained in:
Dmitry Petrov
2019-07-11 13:01:58 +03:00
parent 1968fd7fcb
commit 6ea33986fa
7 changed files with 195 additions and 3 deletions
@@ -143,6 +143,7 @@ class ReflectionReferencesGenerator(statementGenerator: StatementGenerator) : St
return IrPropertyReferenceImpl(
startOffset, endOffset, type.toIrType(),
context.symbolTable.referenceProperty(originalProperty),
propertyDescriptor,
propertyDescriptor.typeParametersCount,
getFieldForPropertyReference(originalProperty),
originalGetter?.let { context.symbolTable.referenceSimpleFunction(it) },