Home
last modified time | relevance | path

Searched refs:psiClass (Results 1 – 7 of 7) sorted by relevance

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiClassItem.kt56 val psiClass: PsiClass, in <lambda>() constant
74 element = psiClass in <lambda>()
93 override fun psi() = psiClass in <lambda>()
123 var curr: PsiClass? = psiClass in <lambda>()
192 override fun hasTypeVariables(): Boolean = psiClass.hasTypeParameters() in <lambda>()
199 val containingFile = psiClass.containingFile ?: return null in <lambda>()
205 if (psiClass is UClass) { in <lambda>()
206 psiClass.getParentOfType(UFile::class.java) in <lambda>()
223 return PsiConstructorItem.createDefaultConstructor(codebase, this, psiClass) in <lambda>()
265 psiClass: PsiClass, in <lambda>()
[all …]
DPsiTypeParameterItem.kt31 private val psiClass: PsiTypeParameter, constant
37 element = psiClass,
55 override fun psi() = psiClass in psi()
60 return isReified(psiClass as? PsiTypeParameter) in psi()
77 fun create(codebase: PsiBasedCodebase, psiClass: PsiTypeParameter): PsiTypeParameterItem { in create()
78 val simpleName = psiClass.name!! in create()
79 val modifiers = modifiers(codebase, psiClass) in create()
83 psiClass = psiClass, in create()
DPsiBasedCodebase.kt261 for (psiClass in classes) { in <lambda>() constant
262 psiClass.accept( in <lambda>()
286 val ktLightClass = (psiClass as? UClass)?.javaPsi as? KtLightClassForFacade in <lambda>()
294 topLevelClassesFromSource += createTopLevelClassAndContents(psiClass) in <lambda>()
313 val pkgName = getPackageName(classItem.psiClass) in <lambda>()
498 val psiClass = facade.findClass(qualifiedName, scope) ?: continue in <lambda>() constant
500 val classItem = createTopLevelClassAndContents(psiClass) in <lambda>()
503 val packageName = getPackageName(psiClass) in <lambda>()
567 private fun createTopLevelClassAndContents(psiClass: PsiClass): PsiClassItem { in <lambda>()
568 if (psiClass.containingClass != null) error("$psiClass is not a top level class") in <lambda>()
[all …]
DPsiConstructorItem.kt115 psiClass: PsiClass, in isImplicitConstructor()
117 val name = psiClass.name!! in isImplicitConstructor()
119 val factory = JavaPsiFacade.getInstance(psiClass.project).elementFactory in isImplicitConstructor()
120 val psiMethod = factory.createConstructor(name, psiClass) in isImplicitConstructor()
DPsiBasedClassResolver.kt60 val psiClass = javaPsiFacade.findClass(erasedName, searchScope) ?: return null in resolveClass() constant
61 return classpathCodebase.findOrCreateClass(psiClass) in resolveClass()
DPsiTypeItemFactory.kt120 val psiTypeWithTypeParametersIfAny = codebase.getClassType(psiClassItem.psiClass) in <lambda>()
126 KotlinTypeInfo.fromContext(psiClassItem.psiClass), in <lambda>()
182 when (val psiClass = psiType.resolve()) { in <lambda>() constant
186 val name = psiClass.qualifiedName ?: psiType.name in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/stub/
DKotlinStubWriter.kt113 (cls as PsiClassItem).psiClass.superClassType in <lambda>()