From ef9a90163555793351f1bff2430a121e1d9d556d Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 23 Nov 2020 20:38:32 +0300 Subject: [PATCH] [IR] KotlinLikeDumper: unify representation for error nodes --- .../src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt index afe83958e2e..14a28212170 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt @@ -389,7 +389,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption is IrDynamicType -> p.printWithNoIndent("dynamic") is IrErrorType -> - p.printWithNoIndent("ErrorType /* ERROR */") + p.printWithNoIndent("ErrorType") else -> p.printWithNoIndent("??? /* ERROR: unknown type: ${this.javaClass.simpleName} */") } @@ -1339,18 +1339,18 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption override fun visitErrorDeclaration(declaration: IrErrorDeclaration, data: IrDeclaration?) { // TODO declaration.printlnAnnotations() - p.println("/* ERROR DECLARATION */") + p.println("/* ErrorDeclaration */") } override fun visitErrorExpression(expression: IrErrorExpression, data: IrDeclaration?) { // TODO description - p.printWithNoIndent("error(\"\") /* ERROR EXPRESSION */") + p.printWithNoIndent("error(\"\") /* ErrorExpression */") } override fun visitErrorCallExpression(expression: IrErrorCallExpression, data: IrDeclaration?) { // TODO description // TODO better rendering - p.printWithNoIndent("error(\"\") /* ERROR CALL */") + p.printWithNoIndent("error(\"\") /* ErrorCallExpression */") expression.explicitReceiver?.let { it.accept(this, data) p.printWithNoIndent("; ")