org.jetbrains.kotlin.analysis.api.signatures¶
Types¶
KaCallableSignature¶
sealed interface KaCallableSignature<out S : KaCallableSymbol> : KaLifetimeOwner
A use-site signature for a callable symbol. Compared to the symbol, the signature carries additional use-site type information.
KaFunctionSignature¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaFunctionSignature<out S : KaFunctionSymbol> : KaCallableSignature<S>
A callable signature of a function symbol.
KaVariableSignature¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaVariableSignature<out S : KaVariableSymbol> : KaCallableSignature<S>
A callable signature of a variable symbol.
Functions¶
asSignature¶
context(session: KaSession)
fun <S : KaCallableSymbol> S.asSignature(): KaCallableSignature<S>
Creates a new KaCallableSignature for the given symbol and leaves all types unsubstituted.
context(session: KaSession)
fun <S : KaFunctionSymbol> S.asSignature(): KaFunctionSignature<S>
Creates a new KaFunctionSignature for the given symbol and leaves all types unsubstituted.
context(session: KaSession)
fun <S : KaVariableSymbol> S.asSignature(): KaVariableSignature<S>
Creates a new KaVariableSignature for the given symbol and leaves all types unsubstituted.
substitute¶
context(session: KaSession)
fun <S : KaCallableSymbol> S.substitute(substitutor: KaSubstitutor): KaCallableSignature<S>
Applies a substitutor to the given symbol and returns a KaCallableSignature with substituted types.
context(session: KaSession)
fun <S : KaFunctionSymbol> S.substitute(substitutor: KaSubstitutor): KaFunctionSignature<S>
Applies a substitutor to the given symbol and returns a KaFunctionSignature with substituted types.
context(session: KaSession)
fun <S : KaVariableSymbol> S.substitute(substitutor: KaSubstitutor): KaVariableSignature<S>
Applies a substitutor to the given symbol and returns a KaVariableSignature with substituted types.