New J2K: Fix operatorName in JKKtSingleValueOperatorToken

This commit is contained in:
Ilya Kirillov
2018-10-31 20:47:49 +03:00
committed by Ilya Kirillov
parent 6051b455bf
commit c948e2d086
@@ -87,7 +87,9 @@ class JKKtLiteralExpressionImpl(
class JKKtSingleValueOperatorToken(val token: KtSingleValueToken) : JKKtOperatorToken {
override val operatorName: String
get() = OperatorConventions.BINARY_OPERATION_NAMES[token]?.identifier!!
get() = OperatorConventions.getNameForOperationSymbol(token, true, true)?.identifier
?: OperatorConventions.BOOLEAN_OPERATIONS[token]?.identifier
?: TODO(token.value)
override val text: String = token.value
}