IR: IrCallableReference now implements IrDeclarationReference

This commit is contained in:
Dmitry Petrov
2019-03-21 15:26:00 +03:00
parent 6ca61cf347
commit 12e9943f8f
@@ -22,18 +22,18 @@ import org.jetbrains.kotlin.descriptors.PropertyDescriptor
import org.jetbrains.kotlin.descriptors.VariableDescriptorWithAccessors import org.jetbrains.kotlin.descriptors.VariableDescriptorWithAccessors
import org.jetbrains.kotlin.ir.symbols.* import org.jetbrains.kotlin.ir.symbols.*
interface IrCallableReference : IrMemberAccessExpression { interface IrCallableReference : IrMemberAccessExpression, IrDeclarationReference {
override val descriptor: CallableDescriptor override val descriptor: CallableDescriptor
} }
interface IrFunctionReference : IrCallableReference { interface IrFunctionReference : IrCallableReference {
override val descriptor: FunctionDescriptor override val descriptor: FunctionDescriptor
val symbol: IrFunctionSymbol override val symbol: IrFunctionSymbol
} }
interface IrPropertyReference : IrCallableReference { interface IrPropertyReference : IrCallableReference {
override val descriptor: PropertyDescriptor override val descriptor: PropertyDescriptor
val symbol: IrPropertySymbol override val symbol: IrPropertySymbol
val field: IrFieldSymbol? val field: IrFieldSymbol?
val getter: IrSimpleFunctionSymbol? val getter: IrSimpleFunctionSymbol?
val setter: IrSimpleFunctionSymbol? val setter: IrSimpleFunctionSymbol?
@@ -41,7 +41,7 @@ interface IrPropertyReference : IrCallableReference {
interface IrLocalDelegatedPropertyReference : IrCallableReference { interface IrLocalDelegatedPropertyReference : IrCallableReference {
override val descriptor: VariableDescriptorWithAccessors override val descriptor: VariableDescriptorWithAccessors
val symbol: IrLocalDelegatedPropertySymbol override val symbol: IrLocalDelegatedPropertySymbol
val delegate: IrVariableSymbol val delegate: IrVariableSymbol
val getter: IrSimpleFunctionSymbol val getter: IrSimpleFunctionSymbol
val setter: IrSimpleFunctionSymbol? val setter: IrSimpleFunctionSymbol?