fix formatting
This commit is contained in:
committed by
Pavel V. Talanov
parent
8c66f744b4
commit
a5b571f91c
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user