mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[kotlin] Improve local declaration kdoc rendering
#KTIJ-31239 GitOrigin-RevId: 40c870a8e9e458fafbbf95f4543f7e7c79cacf31
This commit is contained in:
committed by
intellij-monorepo-bot
parent
53b2eabb26
commit
71c6a987ed
@@ -282,7 +282,7 @@ internal class KotlinIdeDeclarationRenderer(
|
||||
printer {
|
||||
" ".separated(
|
||||
{
|
||||
if (symbol is KaNamedClassSymbol && symbol.isLocal) {
|
||||
if (symbol !is KaTypeParameterSymbol && symbol is KaNamedSymbol && symbol.visibility == KaSymbolVisibility.LOCAL) {
|
||||
printer.append(highlight("local") { asKeyword })
|
||||
}
|
||||
},
|
||||
@@ -477,11 +477,6 @@ internal class KotlinIdeDeclarationRenderer(
|
||||
printer.append(highlight("value-parameter") { asKeyword })
|
||||
}
|
||||
},
|
||||
{
|
||||
if (callableSymbol.visibility == KaSymbolVisibility.LOCAL) {
|
||||
printer.append(highlight("local") { asKeyword })
|
||||
}
|
||||
},
|
||||
{
|
||||
val replacedKeyword = when {
|
||||
keyword != null -> keyword
|
||||
|
||||
@@ -8,5 +8,5 @@ fun variableContainerA() {
|
||||
var v8: AuxFaceA = object : AuxFaceA {}
|
||||
lateinit var v9: AuxClassB
|
||||
}
|
||||
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">local</span> <span style="color:#808000;">@</span><span style="color:#808000;"><a href="psi_element://AuxAnnA">AuxAnnA</a></span>
|
||||
//INFO: <span style="color:#000080;font-weight:bold;">val</span> <span style="color:#000000;">v3</span><span style="">: </span><span style="color:#000000;"><a href="psi_element://AuxClassA">AuxClassA</a></span></pre></div>
|
||||
//INFO: <div class='definition'><pre><span style="color:#808000;">@</span><span style="color:#808000;"><a href="psi_element://AuxAnnA">AuxAnnA</a></span>
|
||||
//INFO: <span style="color:#000080;font-weight:bold;">local</span> <span style="color:#000080;font-weight:bold;">val</span> <span style="color:#000000;">v3</span><span style="">: </span><span style="color:#000000;"><a href="psi_element://AuxClassA">AuxClassA</a></span></pre></div>
|
||||
|
||||
Reference in New Issue
Block a user