evaluate¶
context(session: KaSession)
fun KtExpression.evaluate(): KaConstantValue?
Attempts to evaluate the given KtExpression to a compile-time constant value, or returns null if this is not possible.
context(session: KaSession)
fun KtExpression.evaluate(): KaConstantValue?
Attempts to evaluate the given KtExpression to a compile-time constant value, or returns null if this is not possible.