Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt136 val sourcePsi = psi.sourcePsi in <lambda>() constant
137 if (sourcePsi is KtProperty) { in <lambda>()
138 val companionClassName = sourcePsi.containingClassOrObject?.name in <lambda>()
155 } else if (sourcePsi is KtObjectDeclaration && sourcePsi.isCompanion()) { in <lambda>()
160 val ktProperties = sourcePsi.declarations.filter { declaration -> in <lambda>()
DExtractAnnotations.kt354 Issues.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.kt1145 reportError(method, arg.sourcePsi ?: node.sourcePsi ?: node.javaPsi) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiClassItem.kt524 val sourcePsi = method.sourcePsi in <lambda>() constant
525 if (sourcePsi is KtProperty) { in <lambda>()
529 val name = sourcePsi.name ?: continue in <lambda>()
585 if (psiClass is KotlinUClass && psiClass.sourcePsi == null) { in <lambda>()
DUAnnotationItem.kt223 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in <lambda>()
258 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in <lambda>()
352 return element.sourcePsi?.text ?: element.asSourceString() in toSource()
DPsiMethodItem.kt151 p.sourcePsi as? PsiClass ?: return false in <lambda>()
162 ((psiMethod as? KotlinUMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in <lambda>()
171 return psiMethod is KotlinUMethod && psiMethod.sourcePsi is KtProperty in <lambda>()
DPsiModifierItem.kt110 ktModifierList = element.sourcePsi?.modifierList in computeFlag()
138 val func = (element as? UMethod)?.sourcePsi as? KtNamedFunction in computeFlag()
DPsiPropertyItem.kt52 p.sourcePsi as? PsiClass ?: return false in type()
DPsiTypeParameterItem.kt86 if (element.sourcePsi.text.startsWith("reified")) { in isReified()
DPsiFieldItem.kt72 p.sourcePsi as? PsiClass ?: return false in isEnumConstant()
DPsiParameterItem.kt81 … ((containingMethod.psiMethod as? KotlinUMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in isReceiver()
DPsiItem.kt85 (element.sourcePsi ?: element.javaPsi) is PsiCompiledElement in psi()
DCodePrinter.kt73 warning(message, uElement.sourcePsi ?: uElement.javaPsi) in warning()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt592 val sourcePsi = item.psi() in getImplicitNullness() constant
593 if (sourcePsi is UElement && sourcePsi.sourcePsi is KtObjectDeclaration) { in getImplicitNullness()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt869 val psi = node.sourcePsi in <lambda>()