New J2K: Cleanup code builder
This commit is contained in:
committed by
Ilya Kirillov
parent
2d256717ff
commit
211405c034
@@ -544,13 +544,6 @@ class NewCodeBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun visitLocalVariable(localVariable: JKLocalVariable) {
|
override fun visitLocalVariable(localVariable: JKLocalVariable) {
|
||||||
// if (localVariable.parent !is JKForInStatement) {
|
|
||||||
// if (localVariable.modifierList.modality == JKModifierTokens.FINAL) {
|
|
||||||
// printer.print("val")
|
|
||||||
// } else {
|
|
||||||
// printer.print("var")
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
renderModifiersList(localVariable)
|
renderModifiersList(localVariable)
|
||||||
printer.printWithNoIndent(" ")
|
printer.printWithNoIndent(" ")
|
||||||
localVariable.name.accept(this)
|
localVariable.name.accept(this)
|
||||||
@@ -763,10 +756,6 @@ class NewCodeBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*override fun visitParameter(parameter: JKParameter) {
|
|
||||||
printer.printWithNoIndent(parameter.name.value)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
override fun visitKtAssignmentStatement(ktAssignmentStatement: JKKtAssignmentStatement) {
|
override fun visitKtAssignmentStatement(ktAssignmentStatement: JKKtAssignmentStatement) {
|
||||||
ktAssignmentStatement.field.accept(this)
|
ktAssignmentStatement.field.accept(this)
|
||||||
printer.printWithNoIndent(" ")
|
printer.printWithNoIndent(" ")
|
||||||
|
|||||||
Reference in New Issue
Block a user