Add UL support for const fields initializers

Fixed #KT-34081
This commit is contained in:
Igor Yakovlev
2019-11-22 21:34:44 +03:00
parent 775eb67219
commit 0ff77bd3c5
6 changed files with 82 additions and 37 deletions
@@ -170,7 +170,13 @@ object UltraLightChecker {
if (this is PsiParameter && this.isVarArgs) {
result += " /* vararg */"
}
if (hasInitializer()) {
result += " = ${initializer?.text} /* initializer type: ${initializer?.type?.renderType()} */"
}
computeConstantValue()?.let { result += " /* constant value $it */" }
return result
}