New J2K: Add printing of do-while statement

This commit is contained in:
Ilya Kirillov
2018-10-04 16:16:34 +03:00
committed by Ilya Kirillov
parent 19c569e8e2
commit 451a462b07
@@ -45,6 +45,14 @@ class NewCodeBuilder {
printer.print("/* !!! Hit visitElement for element type: ${treeElement::class} !!! */")
}
override fun visitDoWhileStatement(doWhileStatement: JKDoWhileStatement) {
printer.printWithNoIndent("do")
doWhileStatement.body.accept(this)
printer.printWithNoIndent("while (")
doWhileStatement.condition.accept(this)
printer.printWithNoIndent(")")
}
override fun visitFile(file: JKFile) {
file.acceptChildren(this)
}