[Test] Implement handler which dumps overrides tree of specified classes

This commit is contained in:
Dmitriy Novozhilov
2021-02-26 17:26:04 +03:00
committed by TeamCityServer
parent 4299794de2
commit 523d37b0f5
7 changed files with 184 additions and 20 deletions
@@ -7,8 +7,12 @@ package org.jetbrains.kotlin.util
import java.lang.Appendable
class SmartPrinter(appendable: Appendable) {
private val printer = org.jetbrains.kotlin.utils.Printer(appendable)
class SmartPrinter(appendable: Appendable, indent: String = DEFAULT_INDENT) {
companion object {
private const val DEFAULT_INDENT = " "
}
private val printer = org.jetbrains.kotlin.utils.Printer(appendable, indent)
private var notFirstPrint: Boolean = false