Home
last modified time | relevance | path

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

/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt60 private var isKotlin = false in <lambda>() variable
63 isKotlin = cls.isKotlin() in <lambda>()
67 checkMethod(method, isKotlin) in <lambda>()
71 checkField(field, isKotlin) in <lambda>()
77 fun checkField(field: FieldItem, isKotlin: Boolean = field.isKotlin()) { in <lambda>()
78 if (isKotlin) { in <lambda>()
84 fun checkMethod(method: MethodItem, isKotlin: Boolean = method.isKotlin()) { in <lambda>()
86 if (isKotlin) { in <lambda>()
99 if (!method.isKotlin()) { in <lambda>()
238 method.isKotlin() && in <lambda>()
[all …]
DApiAnalyzer.kt46 import com.android.tools.metalava.model.psi.isKotlin in <lambda>()
563 psi.isKotlin() && in <lambda>()
883 !item.isKotlin() && in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DAnnotationRetention.kt28 return getDefault(classItem.isKotlin()) in getDefault()
31 fun getDefault(isKotlin: Boolean = false): AnnotationRetention { in getDefault()
33 return if (isKotlin) RUNTIME else CLASS in getDefault()
DItem.kt162 fun isKotlin() = !isJava() in isHiddenOrRemoved() method
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt229 return !isKotlin() in isJava()
232 override fun isKotlin(): Boolean { in isKotlin() method
233 return psi().isKotlin() in isKotlin()
286 fun PsiElement.isKotlin(): Boolean { in isKotlin() method
DPsiClassItem.kt266 isKotlin: Boolean in <lambda>()
271 if (isKotlin && psiClass is UClass) { in <lambda>()
344 val isKotlin = psiClass.isKotlin() in <lambda>() constant
348 !hasExplicitRetention(modifiers, psiClass, isKotlin) in <lambda>()
351 val defaultRetentionPolicy = AnnotationRetention.getDefault(isKotlin) in <lambda>()
466 if (isKotlin && methods.isNotEmpty()) { in <lambda>()
DPsiParameterItem.kt75 if (psiParameter.isKotlin()) { in name()
121 return if (psiParameter.isKotlin()) { in hasDefaultValue()
187 if (psiParameter.isKotlin()) { in computeDefaultValue()
281 if (cls != null && cls.isKotlin()) { in isSamCompatibleOrKotlinLambda()
DPsiMethodItem.kt135 if (isKotlin()) { in <lambda>()
155 if (!isKotlin()) { in <lambda>()
DPsiTypeItemFactory.kt49 import org.jetbrains.uast.kotlin.isKotlin in <lambda>()
102 if (context != null && isKotlin(context)) { in <lambda>()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTextItem.kt47 override fun isKotlin(): Boolean = method
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt150 return if (config.kotlinStubs && classItem.isKotlin()) { in getClassFile()
201 val kotlin = config.kotlinStubs && cls.isKotlin() in visitClass()
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiAnnotationMixtureTest.kt95 if ((stringMethod as PsiMethodItem).psiMethod.isKotlin()) { in foo1()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt897 if (new is PsiItem && new.isKotlin()) { in added()