Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiModifierItem.kt89 return ((element as? UElement)?.sourcePsi as? KtAnnotated)?.annotationEntries?.any { in <lambda>()
130 val sourcePsi = (element as? UElement)?.sourcePsi in <lambda>() constant
134 if (sourcePsi is KtModifierListOwner) { in <lambda>()
135 ktModifierList = sourcePsi.modifierList in <lambda>()
158 sourcePsi is KtElement in <lambda>()
163 val descriptor = codebase.bindingContext(sourcePsi) in <lambda>()
164 .get(BindingContext.DECLARATION_TO_DESCRIPTOR, sourcePsi) in <lambda>()
194 val func = sourcePsi as? KtNamedFunction in <lambda>()
DPsiPropertyItem.kt57 p.sourcePsi as? PsiClass ?: return false in type()
109 val documentation = when (val sourcePsi = getter.sourcePsi) { in toString() constant
110 is KtPropertyAccessor -> javadoc(sourcePsi.property) in toString()
111 else -> javadoc(sourcePsi ?: psiMethod) in toString()
DPsiMethodItem.kt159 p.sourcePsi as? PsiClass ?: return false in <lambda>()
170 ((psiMethod as? UMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in <lambda>()
180 psiMethod.sourcePsi is KtProperty || in <lambda>()
181 psiMethod.sourcePsi is KtPropertyAccessor || in <lambda>()
182 … psiMethod.sourcePsi is KtParameter && (psiMethod.sourcePsi as KtParameter).hasValOrVar() in <lambda>()
DPsiClassItem.kt562 ?.filter { (it.sourcePsi as? KtParameter)?.isPropertyParameter() ?: false } in <lambda>()
568 val name = when (val sourcePsi = method.sourcePsi) { in <lambda>() constant
569 is KtProperty -> sourcePsi.name in <lambda>()
570 is KtPropertyAccessor -> sourcePsi.property.name in <lambda>()
571 is KtParameter -> sourcePsi.name in <lambda>()
649 if (psiClass is UClass && psiClass.sourcePsi == null) { in <lambda>()
DUAnnotationItem.kt212 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in <lambda>()
246 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in <lambda>()
349 return element.sourcePsi?.text ?: element.asSourceString() in toSource()
DPsiConstructorItem.kt165 get() = sourcePsi is KtPrimaryConstructor || sourcePsi is KtClassOrObject
DPsiItem.kt52 val sourcePsi: PsiElement? = (element as? UElement)?.sourcePsi constant in com.android.tools.metalava.model.psi.PsiItem
DPsiFieldItem.kt75 p.sourcePsi as? PsiClass ?: return false in isEnumConstant()
DPsiParameterItem.kt103 ((containingMethod.psiMethod as? UMethod)?.sourcePsi as? KtFunction)?.valueParameters in isReceiver()
DCodePrinter.kt74 warning(message, uElement.sourcePsi ?: uElement.javaPsi) in warning()
/tools/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt137 val sourcePsi = psi.sourcePsi in <lambda>() constant
138 if (sourcePsi is KtProperty) { in <lambda>()
139 val companionClassName = sourcePsi.containingClassOrObject?.name in <lambda>()
156 } else if (sourcePsi is KtObjectDeclaration && sourcePsi.isCompanion()) { in <lambda>()
161 val ktProperties = sourcePsi.declarations.filter { declaration -> in <lambda>()
DExtractAnnotations.kt360 Issues.ANNOTATION_EXTRACTION, annotation.sourcePsi, in <lambda>()
557 val nestedPsi = expression.sourcePsi as? PsiAnnotation in <lambda>()
562 … } else if (expression is UastEmptyExpression && attributes[0].sourcePsi is PsiNameValuePair) { in <lambda>()
563 val memberValue = (attributes[0].sourcePsi as PsiNameValuePair).value in <lambda>()
DReporter.kt239 range = element.sourcePsi?.textRange in getTextRange()
263 val sourceElement = (element as? UElement)?.sourcePsi ?: element in elementToLocation()
DApiLint.kt892 reportError(method, arg.sourcePsi ?: node.sourcePsi ?: node.javaPsi) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt542 val sourcePsi = item.psi() in getImplicitNullness() constant
543 if (sourcePsi is UElement && sourcePsi.sourcePsi is KtObjectDeclaration) { in getImplicitNullness()
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt23 val method = node.sourcePsi as? PsiMethod ?: return in getApplicableUastTypes()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt873 val psi = node.sourcePsi in <lambda>()