[analysis api] add additional information to the KtCallableSignature
This commit is contained in:
+4
@@ -6,8 +6,10 @@
|
|||||||
package org.jetbrains.kotlin.analysis.api.signatures
|
package org.jetbrains.kotlin.analysis.api.signatures
|
||||||
|
|
||||||
import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeOwner
|
import org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeOwner
|
||||||
|
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.KtCallableSymbol
|
import org.jetbrains.kotlin.analysis.api.symbols.KtCallableSymbol
|
||||||
import org.jetbrains.kotlin.analysis.api.types.KtType
|
import org.jetbrains.kotlin.analysis.api.types.KtType
|
||||||
|
import org.jetbrains.kotlin.name.CallableId
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A signature for a callable symbol. Comparing to a `KtCallableSymbol`, a signature can carry use-site type information. For example
|
* A signature for a callable symbol. Comparing to a `KtCallableSymbol`, a signature can carry use-site type information. For example
|
||||||
@@ -36,6 +38,8 @@ public sealed class KtCallableSignature<out S : KtCallableSymbol> : KtLifetimeOw
|
|||||||
*/
|
*/
|
||||||
public abstract val receiverType: KtType?
|
public abstract val receiverType: KtType?
|
||||||
|
|
||||||
|
public open val callableIdIfNonLocal: CallableId? get() = withValidityAssertion { symbol.callableIdIfNonLocal }
|
||||||
|
|
||||||
abstract override fun equals(other: Any?): Boolean
|
abstract override fun equals(other: Any?): Boolean
|
||||||
abstract override fun hashCode(): Int
|
abstract override fun hashCode(): Int
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user