[AA] implement isExpect/isActual for KtClassLikeSymbol

KT-54846
This commit is contained in:
aleksandrina-streltsova
2023-07-17 15:55:20 +03:00
committed by teamcity
parent 20598cf7d7
commit ca25162574
20 changed files with 652 additions and 14 deletions
@@ -61,6 +61,13 @@ public class PrettyPrinter(public val indentSize: Int = 2) : Appendable {
indent -= 1
}
public inline fun withIndents(indentCount: Int, block: PrettyPrinter.() -> Unit) {
require(indentCount >= 0) { "Number of indents should be non-negative" }
indent += indentCount
block(this)
indent -= indentCount
}
public inline fun withIndentInBraces(block: PrettyPrinter.() -> Unit) {
withIndentWrapped(before = "{", after = "}", block)
}