Home
last modified time | relevance | path

Searched refs:sourcePsi (Results 1 – 13 of 13) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt131 val sourcePsi = psi.sourcePsi in ensureCompanionFieldJvmField() constant
132 if (sourcePsi is KtProperty) { in ensureCompanionFieldJvmField()
133 val companionClassName = sourcePsi.containingClassOrObject?.name in ensureCompanionFieldJvmField()
DExtractAnnotations.kt354 Errors.ANNOTATION_EXTRACTION, annotation.sourcePsi, in <lambda>()
547 … } else if (expression is UastEmptyExpression && attributes[0].sourcePsi is PsiNameValuePair) { in <lambda>()
548 val memberValue = (attributes[0].sourcePsi as PsiNameValuePair).value in <lambda>()
DApiLint.kt1023 reportError(method, arg.sourcePsi ?: node.sourcePsi ?: node.javaPsi) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt193 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in appendValue()
230 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in appendValue()
325 return element.sourcePsi?.text ?: element.asSourceString() in toSource()
DPsiClassItem.kt505 val sourcePsi = method.sourcePsi in <lambda>() constant
506 if (sourcePsi is KtProperty) { in <lambda>()
510 val name = sourcePsi.name ?: continue in <lambda>()
DPsiMethodItem.kt149 p.sourcePsi as? PsiClass ?: return false in <lambda>()
160 ((psiMethod as? KotlinUMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in <lambda>()
169 return psiMethod is KotlinUMethod && psiMethod.sourcePsi is KtProperty in <lambda>()
DPsiPropertyItem.kt52 p.sourcePsi as? PsiClass ?: return false in type()
DPsiFieldItem.kt72 p.sourcePsi as? PsiClass ?: return false in isEnumConstant()
DPsiItem.kt63 (element.sourcePsi ?: element.javaPsi) is PsiCompiledElement in psi()
DPsiParameterItem.kt79 … ((containingMethod.psiMethod as? KotlinUMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in getKtParameter()
DPsiModifierItem.kt133 … ((element as? UMethod)?.sourcePsi as? KtNamedFunction)?.typeParameterList?.text ?: "" in computeFlag()
DCodePrinter.kt73 warning(message, uElement.sourcePsi ?: uElement.javaPsi) in warning()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt866 val psi = node.sourcePsi in <lambda>()