fix formatting

This commit is contained in:
Hiroyuki Ikegami
2013-03-19 02:05:06 +09:00
committed by Pavel V. Talanov
parent 8c66f744b4
commit a5b571f91c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import java.util.LinkedList
public open class Block(val statements: List<Element>, val notEmpty: Boolean = false): Statement() {
public override fun isEmpty(): Boolean {
return !notEmpty && (statements.size() == 0 || statements.all { it == Statement.EMPTY_STATEMENT })
return !notEmpty && (statements.size() == 0 || statements.all { it == Statement.EMPTY_STATEMENT })
}
public override fun toKotlin(): String {
@@ -103,9 +103,9 @@ public open class StatementVisitor(converter: Converter): ElementVisitor(convert
if (condition == null)
LiteralExpression("true")
else
getConverter().expressionToExpression(condition)
, Block(arrayListOf(getConverter().statementToStatement(body),
Block(arrayListOf(getConverter().statementToStatement(update)), false)), false)))
getConverter().expressionToExpression(condition),
Block(arrayListOf(getConverter().statementToStatement(body),
Block(arrayListOf(getConverter().statementToStatement(update)), false)), false)))
myResult = Block(forStatements, false)
}
}