From 36591ba5f73365ff30eef2a914c41a3a6dd8f3ac Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 17 Nov 2020 02:59:37 +0300 Subject: [PATCH] [IR] KotlinLikeDumper: replace all usages of commentBlockH with commentBlock --- .../src/org/jetbrains/kotlin/ir/util/KotlinLikeDumper.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/KotlinLikeDumper.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/KotlinLikeDumper.kt index cfce8015a99..12f0d3fe34a 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/KotlinLikeDumper.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/KotlinLikeDumper.kt @@ -436,7 +436,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption p.printIndent() // TODO no tests, looks like there are no irText tests for isStatic flag - p(declaration.isStatic, commentBlockH("static")) + p(declaration.isStatic, commentBlock("static")) p.printWithNoIndent("init ") declaration.body.accept(this, declaration) @@ -491,7 +491,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption declaration.printValueParametersWithNoIndent() declaration.printWhereClauseIfNeededWithNoIndent() p.printWithNoIndent(" ") - p(declaration.isPrimary, commentBlockH("primary")) + p(declaration.isPrimary, commentBlock("primary")) declaration.body?.accept(this, declaration) p.printlnWithNoIndent() } @@ -1383,8 +1383,6 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption private fun commentBlock(text: String) = "/* $text */" - private fun commentBlockH(text: String) = "/* $text */" - private companion object { private const val INAPPLICABLE = false private val INAPPLICABLE_N = null