New J2K: Add printing of do-while statement
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user