New J2K: Add operation's text for some java operators
This commit is contained in:
committed by
Ilya Kirillov
parent
451a462b07
commit
6d283b0ac1
@@ -66,7 +66,12 @@ class JKJavaModifierImpl(override val type: JKJavaModifier.JavaModifierType) : J
|
||||
|
||||
class JKJavaOperatorImpl private constructor(val token: IElementType) : JKOperator {
|
||||
override val operatorText: String
|
||||
get() = TODO(token.toString())
|
||||
get() = when (token) {
|
||||
JavaTokenType.MINUSMINUS -> "--"
|
||||
JavaTokenType.PLUSPLUS -> "++"
|
||||
JavaTokenType.EXCL -> "!"
|
||||
else -> TODO("TODO $token")
|
||||
}
|
||||
|
||||
override val precedence: Int
|
||||
get() = when (token) {
|
||||
|
||||
Reference in New Issue
Block a user