render¶
context(session: KaSession)
fun KaDeclarationSymbol.render(): String
Renders the given KaDeclarationSymbol to a string using the default rendering strategy (KaDeclarationRendererForSource.WITH_QUALIFIED_NAMES).
context(session: KaSession)
fun KaDeclarationSymbol.render(renderer: KaDeclarationRenderer): String
Renders the given KaDeclarationSymbol to a string. The particular rendering strategy is defined by the renderer.
Renders the given KaType into a string using the default rendering strategy (KaTypeRendererForSource.WITH_QUALIFIED_NAMES).
position controls the way the given type is approximated using KaTypeRenderer.typeApproximator.
Specifically, when KaRendererTypeApproximator.TO_DENOTABLE is used, no approximation is performed for Variance.INVARIANT, a denotable subtype is rendered for Variance.IN_VARIANCE, and a denotable supertype is rendered for Variance.OUT_VARIANCE.
context(session: KaSession)
fun KaType.render(renderer: KaTypeRenderer, position: Variance): String
Renders the given KaType into a string. The particular rendering strategy is defined by the renderer.
position controls the way the given type is approximated using KaTypeRenderer.typeApproximator.
Specifically, when KaRendererTypeApproximator.TO_DENOTABLE is used, no approximation is performed for Variance.INVARIANT, a denotable subtype is rendered for Variance.IN_VARIANCE, and a denotable supertype is rendered for Variance.OUT_VARIANCE.