Home
last modified time | relevance | path

Searched refs:psiValue (Results 1 – 2 of 2) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt250 psiValue: UExpression
253 codebase, psiValue
273 private val psiValue: UExpression in toString() constant in UAnnotationSingleAttributeValue
275 override val valueSource: String = getText(psiValue) in toString()
278 if (psiValue is ULiteralExpression) { in toString()
279 val value = psiValue.value in toString()
282 } else if (psiValue.isNull) { in toString()
286 if (psiValue is PsiLiteral) { in toString()
287 return psiValue.value ?: getText(psiValue).removeSurrounding("\"") in toString()
290 val value = ConstantEvaluator.evaluate(null, psiValue) in toString()
[all …]
DPsiAnnotationItem.kt258 psiValue: PsiAnnotationMemberValue
261 codebase, psiValue
281 private val psiValue: PsiAnnotationMemberValue in toString() constant in PsiAnnotationSingleAttributeValue
283 override val valueSource: String = psiValue.text in toString()
286 if (psiValue is PsiLiteral) { in toString()
287 return psiValue.value ?: psiValue.text.removeSurrounding("\"") in toString()
290 val value = ConstantEvaluator.evaluate(null, psiValue) in toString()
295 return psiValue.text ?: psiValue.text.removeSurrounding("\"") in toString()
300 override fun toSource(): String = psiValue.text in toString()
303 if (psiValue is PsiReference) { in toString()
[all …]