Added a comment for separate treatment of properties in IrDeserializer interface.

This commit is contained in:
Alexander Gorshenev
2019-01-14 17:18:29 +03:00
committed by alexander-gorshenev
parent 32c2e841f2
commit 884e6e15e9
@@ -34,6 +34,12 @@ import org.jetbrains.kotlin.ir.visitors.acceptVoid
interface IrDeserializer {
fun findDeserializedDeclaration(symbol: IrSymbol): IrDeclaration?
// We need a separate method for properties, because properties
// are treated differently in the SymbolTable.
// See SymbolTable.propertyTable and SymbolTable.referenceProperty.
// There was an attempt to solve this asymmetry in the symbol table
// using property symbols, but it was not successful.
// For now we have to live with a special treatment of properties.
fun findDeserializedDeclaration(propertyDescriptor: PropertyDescriptor): IrProperty?
fun declareForwardDeclarations()
}
@@ -498,4 +504,4 @@ inline fun <T, D: DeclarationDescriptor> SymbolTable.withScope(owner: D, block:
val result = block(owner)
leaveScope(owner)
return result
}
}