Add ConstantValueKind to KtSimpleConstantValue
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ object DebugSymbolRenderer {
|
||||
}
|
||||
"${value::class.simpleName!!}($symbolTag)"
|
||||
}
|
||||
is KtSimpleConstantValue<*> -> renderValue(value.constant)
|
||||
is KtSimpleConstantValue<*> -> renderValue(value.value)
|
||||
is KtNamedConstantValue -> "${renderValue(value.name)} = ${renderValue(value.expression)}"
|
||||
is KtAnnotationCall ->
|
||||
"${renderValue(value.classId)}${value.arguments.joinToString(prefix = "(", postfix = ")") { renderValue(it) }}"
|
||||
|
||||
+3
-1
@@ -5,7 +5,9 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.frontend.api.symbols.markers
|
||||
|
||||
import org.jetbrains.kotlin.types.ConstantValueKind
|
||||
|
||||
sealed class KtConstantValue
|
||||
object KtUnsupportedConstantValue : KtConstantValue()
|
||||
|
||||
data class KtSimpleConstantValue<T>(val constant: T?) : KtConstantValue()
|
||||
data class KtSimpleConstantValue<T>(val constantValueKind: ConstantValueKind<T>, val value: T) : KtConstantValue()
|
||||
Reference in New Issue
Block a user