[AA] KtCallableSymbol: introduce receiverType extension

^KT-54417
This commit is contained in:
Dmitrii Gridin
2022-10-21 10:02:05 +02:00
committed by Space Team
parent 1ebfbc0ee9
commit d0cc88ffe0
4 changed files with 12 additions and 7 deletions
@@ -23,6 +23,9 @@ public sealed class KtCallableSymbol : KtSymbolWithKind, KtPossibleMemberSymbol,
abstract override fun createPointer(): KtSymbolPointer<KtCallableSymbol>
}
public val KtCallableSymbol.receiverType: KtType?
get() = receiverParameter?.type
/**
* Symbol for a receiver parameter of a function or property. For example, consider code `fun String.foo() {...}`, the declaration of
* `String` receiver parameter is such a symbol.