Skip to content

Commit

Permalink
[IR] KotlinLikeDumper: replace all usages of commentBlockH with comme…
Browse files Browse the repository at this point in the history
…ntBlock
  • Loading branch information
bashor authored and teamcityserver committed Nov 25, 2020
1 parent ad0f154 commit 36591ba
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 36591ba

Please sign in to comment.