Skip to content

org.jetbrains.kotlin.analysis.api.visibility

Types

KaUseSiteVisibilityChecker

Allows checking if KaDeclarationSymbol is visible from the current use-site.

Properties

isPublicApi

Whether the symbol is effectively public, including internal declarations with the PublishedApi annotation.

Functions

createUseSiteVisibilityChecker

context(session: KaSession)
fun createUseSiteVisibilityChecker(
    useSiteFile: KaFileSymbol, 
    receiverExpression: KtExpression?, 
    position: PsiElement
): KaUseSiteVisibilityChecker

Creates a visibility checker for the given use-site position.

isVisibleInClass

context(session: KaSession)
fun KaCallableSymbol.isVisibleInClass(classSymbol: KaClassSymbol): Boolean

Checks whether the given KaCallableSymbol (possibly inherited from a superclass) is visible in the given classSymbol.