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.kt278 psiValue: UExpression
281 codebase, psiValue
301 private val psiValue: UExpression in toString() constant in UAnnotationSingleAttributeValue
303 override val valueSource: String = getText(psiValue) in toString()
306 if (psiValue is ULiteralExpression) { in toString()
307 val value = psiValue.value in toString()
310 } else if (psiValue.isNull) { in toString()
314 if (psiValue is PsiLiteral) { in toString()
315 return psiValue.value ?: getText(psiValue).removeSurrounding("\"") in toString()
318 val value = ConstantEvaluator.evaluate(null, psiValue) in toString()
[all …]
DPsiAnnotationItem.kt288 psiValue: PsiAnnotationMemberValue
291 codebase, psiValue
311 private val psiValue: PsiAnnotationMemberValue in toString() constant in PsiAnnotationSingleAttributeValue
313 override val valueSource: String = psiValue.text in toString()
316 if (psiValue is PsiLiteral) { in toString()
317 return psiValue.value ?: psiValue.text.removeSurrounding("\"") in toString()
320 val value = ConstantEvaluator.evaluate(null, psiValue) in toString()
325 return psiValue.text ?: psiValue.text.removeSurrounding("\"") in toString()
330 override fun toSource(): String = psiValue.text in toString()
333 if (psiValue is PsiReference) { in toString()
[all …]