Home
last modified time | relevance | path

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

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DKotlinTypeInfo.kt178 when (val sourcePsi = (context as? UElement)?.sourcePsi) { in <lambda>() method
179 is KtElement -> fromKtElement(sourcePsi, context) in <lambda>()
260 return when (val sourcePsi = containingMethod.sourcePsi) { in <lambda>() constant
271 fromKtElement(sourcePsi, context) in <lambda>()
276 typeFromKtClass(parameterIndex, containingMethod, sourcePsi) in <lambda>()
280 sourcePsi.isSuspend() && in <lambda>()
285 analyze(sourcePsi) { in <lambda>()
286 val returnKtType = sourcePsi.getReturnKtType() in <lambda>()
287 syntheticContinuationParameter(sourcePsi, returnKtType) in <lambda>()
292 analyze(sourcePsi) { in <lambda>()
[all …]
DPsiPropertyItem.kt102 when (val sourcePsi = getter.sourcePsi) { in <lambda>() constant
104 javadoc(sourcePsi.property, codebase.allowReadingComments) in <lambda>()
105 else -> javadoc(sourcePsi ?: psiMethod, codebase.allowReadingComments) in <lambda>()
112 val ktProperty = (getter.sourcePsi as? KtPropertyAccessor)?.property in <lambda>()
DPsiMethodItem.kt137 ((psiMethod as? UMethod)?.sourcePsi as? KtNamedFunction)?.valueParameters in <lambda>()
147 (psiMethod.sourcePsi is KtProperty || in <lambda>()
148 psiMethod.sourcePsi is KtPropertyAccessor || in <lambda>()
149 psiMethod.sourcePsi is KtParameter && in <lambda>()
150 (psiMethod.sourcePsi as KtParameter).hasValOrVar()) in <lambda>()
268 val ktFunction = (psiMethod as? UMethod)?.sourcePsi as? KtFunction ?: return false in <lambda>()
296 psiMethod.sourcePsi in <lambda>()
DPsiModifierItem.kt182 return ((element as? UElement)?.sourcePsi as? KtAnnotated)?.annotationEntries?.any { in <lambda>()
220 val sourcePsi = (element as? UElement)?.sourcePsi in <lambda>() constant
226 if (sourcePsi is KtModifierListOwner) { in <lambda>()
227 ktModifierList = sourcePsi.modifierList in <lambda>()
263 sourcePsi is KtElement in <lambda>()
268 analyze(sourcePsi) { in <lambda>()
269 val symbol = (sourcePsi as? KtDeclaration)?.getSymbol() in <lambda>()
295 val func = sourcePsi as? KtNamedFunction in <lambda>()
DPsiClassItem.kt473 ?.filter { (it.sourcePsi as? KtParameter)?.isPropertyParameter() ?: false } in <lambda>()
480 when (val sourcePsi = method.sourcePsi) { in <lambda>() constant
481 is KtProperty -> sourcePsi.name in <lambda>()
482 is KtPropertyAccessor -> sourcePsi.property.name in <lambda>()
483 is KtParameter -> sourcePsi.name in <lambda>()
562 it.sourcePsi as KtTypeReference in <lambda>()
647 if (psiClass is UClass && psiClass.sourcePsi == null) { in <lambda>()
DPsiParameterItem.kt189 ((containingMethod.psiMethod as? UMethod)?.sourcePsi as? KtFunction) in computeDefaultValue()
292 val parameter = (psi() as? UParameter)?.sourcePsi as? KtParameter ?: return false in isSamCompatibleOrKotlinLambda()
321 psiParameter.sourcePsi is KtParameter && in create()
325 val ktParameter = psiParameter.sourcePsi as KtParameter in create()
DPsiConstructorItem.kt145 get() = sourcePsi is KtPrimaryConstructor || sourcePsi is KtClassOrObject in isImplicitConstructor()
DUAnnotationItem.kt236 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in appendValue()
272 sb.append(value.sourcePsi?.text ?: value.asSourceString()) in appendQualifiedName()
351 return element.sourcePsi?.text ?: element.asSourceString() in getText()
DPsiFileLocation.kt103 val sourceElement = (psiElement as? UElement)?.sourcePsi ?: psiElement in ensureInitialized()
139 range = element.sourcePsi?.textRange in getTextRange()
DPsiItem.kt54 internal val sourcePsi: PsiElement? = (element as? UElement)?.sourcePsi constant
DCodePrinter.kt80 warning(message, uElement.sourcePsi ?: uElement.javaPsi) in warning()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt150 val sourcePsi = psi.sourcePsi in <lambda>() constant
151 if (sourcePsi is KtProperty) { in <lambda>()
152 val companionClassName = sourcePsi.containingClassOrObject?.name in <lambda>()
172 } else if (sourcePsi is KtObjectDeclaration && sourcePsi.isCompanion()) { in <lambda>()
179 sourcePsi.declarations.filter { declaration -> in <lambda>()
DExtractAnnotations.kt477 val nestedPsi = expression.sourcePsi as? PsiAnnotation in <lambda>()
484 expression is UastEmptyExpression && attributes[0].sourcePsi is PsiNameValuePair in <lambda>()
486 val memberValue = (attributes[0].sourcePsi as PsiNameValuePair).value in <lambda>()
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt23 val method = node.sourcePsi as? PsiMethod ?: return in getApplicableUastTypes()