Refactor Converter:
Minor: Move StatementList class
This commit is contained in:
committed by
Pavel V. Talanov
parent
5dc790246a
commit
4b1b3aa122
@@ -147,3 +147,8 @@ public open class DefaultSwitchLabelStatement() : Statement() {
|
|||||||
public open class SynchronizedStatement(val expression: Expression, val block: Block) : Statement() {
|
public open class SynchronizedStatement(val expression: Expression, val block: Block) : Statement() {
|
||||||
public override fun toKotlin() = "synchronized (" + expression.toKotlin() + ") " + block.toKotlin()
|
public override fun toKotlin() = "synchronized (" + expression.toKotlin() + ") " + block.toKotlin()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class StatementList(elements: List<Element>) : WhiteSpaceSeparatedElementList(elements, WhiteSpace.NewLine) {
|
||||||
|
val statements: List<Statement>
|
||||||
|
get() = elements.filter { it is Statement }.map { it as Statement }
|
||||||
|
}
|
||||||
@@ -96,9 +96,4 @@ open class WhiteSpaceSeparatedElementList(
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public class StatementList(elements: List<Element>) : WhiteSpaceSeparatedElementList(elements, WhiteSpace.NewLine) {
|
|
||||||
val statements: List<Statement>
|
|
||||||
get() = elements.filter { it is Statement }.map { it as Statement }
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user