From cf0bd60d706cd284c2bf755d915371e9aa221270 Mon Sep 17 00:00:00 2001 From: Nicolay Mitropolsky Date: Fri, 17 Dec 2021 17:40:14 +0300 Subject: [PATCH] Uast: cleanup after KT-14868 fixed GitOrigin-RevId: 63291d8741e57994688a89b46a19614ba007b6ab --- .../org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/uast/uast-common/src/org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt b/uast/uast-common/src/org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt index 86ff5358a8bd..fe1f4c0bff78 100644 --- a/uast/uast-common/src/org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt +++ b/uast/uast-common/src/org/jetbrains/uast/evaluation/TreeBasedEvaluator.kt @@ -331,12 +331,7 @@ class TreeBasedEvaluator( constant as? UBooleanConstant } PsiType.CHAR -> when (constant) { - // Join the following three in UNumericConstant - // when https://youtrack.jetbrains.com/issue/KT-14868 is fixed - is UIntConstant -> UCharConstant(constant.value.toChar()) - is ULongConstant -> UCharConstant(constant.value.toChar()) - is UFloatConstant -> UCharConstant(constant.value.toChar()) - + is UNumericConstant -> UCharConstant(constant.value.toInt().toChar()) is UCharConstant -> constant else -> null }