KTIJ-33579 [kotlin] Add extra documentation to ImportContext.isExplicitReceiver

GitOrigin-RevId: aa8acc7575310b81def45467d9f3f60c6ec2473d
This commit is contained in:
Roman Golyshev
2025-04-12 14:32:17 +00:00
committed by intellij-monorepo-bot
parent c5c7b01cd0
commit 4a0eba89cb
@@ -13,6 +13,16 @@ import org.jetbrains.kotlin.psi.KtExpression
internal interface ImportContext {
val position: KtElement
val positionType: ImportPositionType
/**
* Indicates whether the receiver of a call is explicitly applied in the position
* represented by this import context.
*
* Note: If [isExplicitReceiver] is `true`, it does not mean that there
* is an explicit PSI expression which can be considered a receiver.
* It just means that the type of explicit receiver cannot be ignored
* when applying auto-import candidates.
*/
val isExplicitReceiver: Boolean
context(KaSession)