Convert compile constant classes to kotlin: prettify

This commit is contained in:
Pavel V. Talanov
2015-07-02 19:58:08 +03:00
parent 0369de86c7
commit ae88dd3f1f
21 changed files with 175 additions and 270 deletions
@@ -106,7 +106,7 @@ public class ConstantExpressionEvaluator private constructor(val trace: BindingT
if (text == null) return null
val nodeElementType = expression.getNode().getElementType()
if (nodeElementType == JetNodeTypes.NULL) return NullValue.NULL
if (nodeElementType == JetNodeTypes.NULL) return NullValue
val result: Any? = when (nodeElementType) {
JetNodeTypes.INTEGER_CONSTANT -> parseLong(text)