[FIR] Print operator keyword and token to unresolved diagnostic message

#KT-55672 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-23 13:29:16 +02:00
committed by Space Team
parent 85bb7faf10
commit c30ce4aabe
33 changed files with 257 additions and 49 deletions
@@ -98,4 +98,19 @@ object OperatorNameConventions {
@JvmField
val STATEMENT_LIKE_OPERATORS = setOf(SET) + ASSIGNMENT_OPERATIONS
val TOKENS_BY_OPERATOR_NAME = mapOf(
INC to "++",
DEC to "--",
UNARY_PLUS to "+",
UNARY_MINUS to "-",
NOT to "!",
TIMES to "*",
PLUS to "+",
MINUS to "-",
DIV to "/",
REM to "%",
RANGE_TO to "..",
RANGE_UNTIL to "..<",
)
}