[VISUALIZER] Replace rendering of class with no name to anonymous

This commit is contained in:
Ivan Kylchik
2021-02-19 16:31:56 +03:00
committed by TeamCityServer
parent ca424a94ef
commit 813e48ffb4
4 changed files with 6 additions and 4 deletions
@@ -130,8 +130,8 @@ class FirVisualizer(private val firFile: FirFile) : BaseRenderer() {
stack.pop()
}
is KtClassOrObject -> {
if (element.isLocal) stack.addName((element.name ?: "<no name provided>"))
stack.push((element.name ?: "<no name provided>"))
if (element.isLocal) stack.addName((element.name ?: "<anonymous>"))
stack.push((element.name ?: "<anonymous>"))
element.acceptChildren(this)
stack.pop()
}