KaDeclarationSymbol
Represents a declaration, such as a class, function, or property.
Hierarchy
Inherits from KaSymbol, KaAnnotated.
Members
val annotations: KaAnnotationListA list of applied annotations.
val modality: KaSymbolModalityEffective declaration modality (e.g., final, sealed, or open).
val visibility: KaSymbolVisibilityEffective declaration visibility (e.g., public, protected, or private).
val isExpect: Booleantrueif the declaration is anexpectone.val isActual: Booleantrueif the declaration is anactualone.val KaDeclarationSymbol.typeParameters: List<KaTypeParameterSymbol>A list of type parameters for
KaTypeParameterOwnerSymbol, an empty list otherwise.Experimental API.
Utilities
fun KaDeclarationSymbol.render(renderer: KaDeclarationRenderer = KaDeclarationRendererForSource.WITH_QUALIFIED_NAMES): StringRender the given declaration to a
String. The particular rendering strategy is defined by therenderer.Experimental API.
Last modified: 01 August 2024