FIR: introduce DSL to generate diagnostics list

this is needed to generate diagnostic list for IDE
This commit is contained in:
Ilya Kirillov
2021-01-26 12:10:51 +01:00
parent 5ff816127a
commit b92dce9be4
14 changed files with 790 additions and 126 deletions
@@ -38,6 +38,9 @@ class SmartPrinter(appendable: Appendable) {
fun popIndent() {
printer.popIndent()
}
fun getCurrentIndentInUnits() = printer.currentIndentLengthInUnits
fun getIndentUnit() = printer.indentUnitLength
}
inline fun SmartPrinter.withIndent(block: () -> Unit) {