Minor. Use property instead of deprecated function in Operations map

This commit is contained in:
Denis Zharkov
2015-10-19 11:41:05 +03:00
parent 8db206e7ff
commit 8c62e80d2b
2 changed files with 2 additions and 2 deletions
@@ -81,7 +81,7 @@ fun generate(): String {
val unaryOperationsMapIterator = unaryOperationsMap.iterator()
while (unaryOperationsMapIterator.hasNext()) {
val (funcName, parameters, isFunction) = unaryOperationsMapIterator.next()
val parenthesesOrBlank = "()" //if (isFunction) "()" else ""
val parenthesesOrBlank = if (isFunction) "()" else ""
p.println(
"unaryOperation(",
parameters.map { it.asString() }.joinToString(", "),