evaluateAsAnnotationValue¶
context(session: KaSession)
fun KtExpression.evaluateAsAnnotationValue(): KaAnnotationValue?
Attempts to evaluate the given KtExpression to an annotation value (a constant value which can be used as an annotation argument), or returns null if this is not possible.