[AA] KtCallableSymbol: introduce receiverType extension
^KT-54417
This commit is contained in:
committed by
Space Team
parent
1ebfbc0ee9
commit
d0cc88ffe0
+3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user