Home
last modified time | relevance | path

Searched refs:codebase (Results 1 – 25 of 28) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiFieldItem.kt29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiFieldItem
40 codebase = codebase,
81 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiField) in duplicate()
111 …fun create(codebase: PsiBasedCodebase, containingClass: PsiClassItem, psiField: PsiField): PsiFiel… in toString()
114 val modifiers = modifiers(codebase, psiField, commentText) in toString()
116 val fieldType = codebase.getType(psiField.type) in toString()
121 codebase = codebase, in toString()
135 …fun create(codebase: PsiBasedCodebase, containingClass: PsiClassItem, original: PsiFieldItem): Psi… in toString()
137 codebase = codebase, in toString()
142 modifiers = PsiModifierItem.create(codebase, original.modifiers), in toString()
[all …]
DPsiParameterItem.kt29 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiParameterItem
37 codebase = codebase,
151 codebase: PsiBasedCodebase, in create()
157 val modifiers = modifiers(codebase, psiParameter, commentText) in create()
158 val type = codebase.getType(psiParameter.type) in create()
160 codebase = codebase, in create()
173 codebase: PsiBasedCodebase, in create()
177 codebase = codebase, in create()
182 modifiers = PsiModifierItem.create(codebase, original.modifiers), in create()
183 type = PsiTypeItem.create(codebase, original.type) in create()
[all …]
DPsiPackageItem.kt25 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiPackageItem
32 codebase = codebase,
53 containingPackageField = codebase.findPackage("")!! in containingPackage()
57 val pkg = codebase.findPackage(parentPackage) in containingPackage()
132 …fun create(codebase: PsiBasedCodebase, psiPackage: PsiPackage, extraDocs: String?): PsiPackageItem… in create()
134 val modifiers = modifiers(codebase, psiPackage, commentText) in create()
141 codebase = codebase, in create()
151 fun create(codebase: PsiBasedCodebase, original: PsiPackageItem): PsiPackageItem { in create()
153 codebase = codebase, in create()
157 modifiers = PsiModifierItem.create(codebase, original.modifiers) in create()
DPsiTypeParameterItem.kt25 codebase: PsiBasedCodebase,
31 codebase = codebase,
52 … refs.mapNotNull { PsiTypeItem.create(codebase, it).asClass() }.filter { !it.isJavaLangObject() } in bounds()
59 fun create(codebase: PsiBasedCodebase, psiClass: PsiTypeParameter): PsiTypeParameterItem { in create()
61 val modifiers = modifiers(codebase, psiClass, "") in create()
64 codebase = codebase, in create()
DPsiMethodItem.kt44 override val codebase: PsiBasedCodebase, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiMethodItem
54 codebase = codebase, in <lambda>()
108 psiMethod.findSuperMethods().mapTo(result) { codebase.findMethod(it) } in <lambda>()
122 codebase, psiMethod.typeParameterList in <lambda>()
131 return PsiTypeItem.typeParameterClasses(codebase, psiMethod.typeParameterList) in <lambda>()
182 val exceptionClass = codebase.getType(type).asClass() in <lambda>()
215 val duplicated = create(codebase, targetContainingClass as PsiClassItem, psiMethod) in <lambda>()
304 throwsTypes = throwsTypes(codebase, psiMethod) in <lambda>()
309 codebase: PsiBasedCodebase, in <lambda>()
316 val modifiers = modifiers(codebase, psiMethod, commentText) in <lambda>()
[all …]
DPsiItem.kt39 override val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiItem
82 val docComment = codebase.getComment(documentation) in isCloned()
151 codebase.getComment(documentation, psi()) in fullyQualifiedDocumentation()
158 codebase.getComment(documentation, psi()) in fullyQualifiedDocumentation()
189 resolved = codebase.createReferenceFromText(referenceText, psi()).resolve() in getExpanded()
196 val exceptionReference = codebase.createReferenceFromText(exceptionName, psi()) in getExpanded()
205 val dummyTag = codebase.createDocTagFromText("@${tag.name} $suffix") in getExpanded()
333 codebase: PsiBasedCodebase, in modifiers()
337 return PsiModifierItem.create(codebase, element, documentation) in modifiers()
DPsiCompilationUnit.kt38 class PsiCompilationUnit(val codebase: PsiBasedCodebase, containingFile: PsiFile) : CompilationUnit… constant in com.android.tools.metalava.model.psi.PsiCompilationUnit
76 val classItem = codebase.findClass(resolved) ?: continue in getImportStatements()
85 val classItem = codebase.findClass(psiClass) ?: continue in getImportStatements()
93 val classItem = codebase.findClass(resolved) ?: continue in getImportStatements()
158 val classItem = codebase.findClass(psiClass) ?: continue in classes()
DPsiTypeParameterList.kt23 val codebase: PsiBasedCodebase, constant in com.android.tools.metalava.model.psi.PsiTypeParameterList
42 parameters.mapTo(list) { PsiTypeParameterItem.create(codebase, it) } in typeParameters()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt32 override val codebase: TextCodebase, constant in com.android.tools.metalava.model.text.TextClassItem
50 codebase = codebase,
53 codebase = codebase,
120 override fun toType(): TypeItem = codebase.obtainTypeFromString( in containingPackage()
136 return TextTypeParameterList.create(codebase, s.substring(index)) in typeParameterList()
163 typeInfo = codebase.obtainTypeFromString(qualifiedTypeName) in asTypeInfo()
221 fun createClassStub(codebase: TextCodebase, name: String): TextClassItem = in simpleName()
222 TextClassItem(codebase = codebase, qualifiedName = name, isPublic = true).also { in simpleName()
225 codebase, in simpleName()
232 codebase: TextCodebase, in simpleName()
[all …]
DTextItem.kt26 override val codebase: TextCodebase, constant in com.android.tools.metalava.model.text.TextItem
37 …appendDocumentation(comment: String, tagSection: String?, append: Boolean) = codebase.unsupported() in findTagDocumentation()
39 …override fun isJava(): Boolean = codebase.unsupported() // source language not recorded in signatu… in findTagDocumentation()
40 …override fun isKotlin(): Boolean = codebase.unsupported() // source language not recorded in signa… in findTagDocumentation()
DTextFieldItem.kt26 codebase: TextCodebase,
42 codebase, name, containingClass, position,
44 codebase = codebase,
74 override fun duplicate(targetContainingClass: ClassItem): FieldItem = codebase.unsupported() in hashCode()
DTextPackageItem.kt25 codebase: TextCodebase,
28 ) : TextItem(codebase, position, modifiers = TextModifiers(codebase = codebase, public = true)), Pa…
DTextParameterItem.kt27 codebase: TextCodebase,
41 codebase, position,
42 modifiers = TextModifiers(codebase = codebase, annotationStrings = annotations, vararg = vararg)
DTextTypeParameterList.kt23 class TextTypeParameterList(val codebase: TextCodebase, private val typeListString: String) : TypeP… constant in com.android.tools.metalava.model.text.TextTypeParameterList
46 strings.mapTo(list) { TextTypeParameterItem.create(codebase, it) } in typeParameters()
53 fun create(codebase: TextCodebase, typeListString: String): TypeParameterList { in create()
54 return TextTypeParameterList(codebase, typeListString) in create()
DTextMemberItem.kt26 codebase: TextCodebase,
31 ) : TextItem(codebase, position = position, modifiers = modifiers), MemberItem {
DTextConstructorItem.kt24 codebase: TextCodebase,
41 codebase, name, containingClass, isPublic, isProtected, isPrivate, isInternal,
DTextBackedAnnotationItem.kt25 override val codebase: Codebase, constant in com.android.tools.metalava.model.text.TextBackedAnnotationItem
39 …qualifiedName = if (mapName) AnnotationItem.mapName(codebase, annotationClass) else annotationClass
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsDiffer.kt61 private val codebase: Codebase in <lambda>() constant
103 CodebaseComparator().compare(visitor, superset, codebase, ApiPredicate(codebase)) in <lambda>()
107 val apiFilter = FilterPredicate(ApiPredicate(codebase)) in <lambda>()
108 val apiReference = ApiPredicate(codebase, ignoreShown = true) in <lambda>()
116 val preFiltered = codebase.original != null in <lambda>()
118 codebase.accept(apiWriter) in <lambda>()
DAndroidApiChecks.kt34 fun check(codebase: Codebase) { in check()
35 codebase.accept(object : ApiVisitor( in check()
36 codebase, in check()
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/
DApiVisitor.kt66 codebase: Codebase,
96 ApiPredicate(codebase, ignoreShown = ignoreShown, matchRemoved = remove),
97 ApiPredicate(codebase, ignoreShown = true, ignoreRemoved = remove)
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAddApisFromCodebase.kt26 fun addApisFromCodebase(api: Api, apiLevel: Int, codebase: Codebase) { in addApisFromCodebase()
27 codebase.accept(object : ApiVisitor( in addApisFromCodebase()
28 codebase, in addApisFromCodebase()
DAndroidJarReader.java51 @Nullable Codebase codebase) { in AndroidJarReader() argument
56 mCodebase = codebase; in AndroidJarReader()
59 AndroidJarReader(@NotNull File[] apiLevels, @Nullable Codebase codebase) { in AndroidJarReader() argument
61 mCodebase = codebase; in AndroidJarReader()
/tools/metalava/src/test/java/com/android/tools/metalava/
DAnnotationsDifferTest.kt32 val codebase = ApiFile.parseApi("old.txt", """ in Write diff() constant
55 AnnotationsDiffer(codebase, codebase2).writeDiffSignature(apiFile) in Write diff()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DPackageItem.kt44 codebase.findPackage(name.substring(0, lastDot)) in <lambda>()
DItem.kt35 val codebase: Codebase constant

12