/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiModifierItemTest.kt | 86 assertEquals(VisibilityLevel.INTERNAL, method.modifiers.getVisibilityLevel()) in Kotlin implicit internal visibility inheritance() 87 assertEquals(VisibilityLevel.INTERNAL, property.modifiers.getVisibilityLevel()) in Kotlin implicit internal visibility inheritance() 92 fun `Kotlin class visibility modifiers`() { in Kotlin class visibility modifiers() 115 fun `Kotlin class abstract and final modifiers`() { in Kotlin class abstract and final modifiers() 129 codebase.assertClass("Abstract").modifiers.let { in Kotlin class abstract and final modifiers() 135 codebase.assertClass("Sealed").modifiers.let { in Kotlin class abstract and final modifiers() 141 codebase.assertClass("Open").modifiers.let { in Kotlin class abstract and final modifiers() 146 codebase.assertClass("Final").modifiers.let { in Kotlin class abstract and final modifiers() 151 codebase.assertClass("FinalDefault").modifiers.let { in Kotlin class abstract and final modifiers() 156 codebase.assertClass("Interface").modifiers.let { in Kotlin class abstract and final modifiers() [all …]
|
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiTypeItem.kt | 42 modifiers: TypeModifiers, 43 ) : DefaultTypeItem(modifiers) { 59 modifiers: TypeModifiers, 60 ) : PrimitiveTypeItem, PsiTypeItem(psiType, modifiers) { 62 PsiPrimitiveTypeItem(psiType = psiType, kind = kind, modifiers = modifiers.duplicate()) in duplicate() 70 modifiers: TypeModifiers, in duplicate() 71 ) : ArrayTypeItem, PsiTypeItem(psiType, modifiers) { in duplicate() 77 modifiers = modifiers.duplicate() in duplicate() 89 modifiers: TypeModifiers, 90 ) : ClassTypeItem, PsiTypeItem(psiType, modifiers) { [all …]
|
D | PsiConstructorItem.kt | 41 modifiers: DefaultModifierList, 52 modifiers = modifiers, 83 val modifiers = modifiers(codebase, psiMethod, commentText) in isImplicitConstructor() constant 101 modifiers = modifiers, in isImplicitConstructor() 121 val modifiers = DefaultModifierList(codebase, PACKAGE_PRIVATE, null) in isImplicitConstructor() constant 122 modifiers.setVisibilityLevel(containingClass.modifiers.getVisibilityLevel()) in isImplicitConstructor() 134 modifiers = modifiers, in isImplicitConstructor()
|
D | PsiPackageItem.kt | 30 modifiers: DefaultModifierList, 38 modifiers = modifiers, 133 val modifiers = modifiers(codebase, psiPackage, commentText) in hashCode() constant 134 if (modifiers.isPackagePrivate()) { in hashCode() 136 modifiers.setVisibilityLevel(VisibilityLevel.PUBLIC) in hashCode() 147 modifiers = modifiers, in hashCode()
|
D | PsiParameterItem.kt | 56 modifiers: DefaultModifierList, 62 modifiers = modifiers, 91 containingMethod.modifiers.isSuspend() && in name() 100 val annotation = modifiers.findAnnotation(AnnotationItem::isParameterName) in name() 125 modifiers.hasAnnotation(AnnotationItem::isDefaultValue) in hasDefaultValue() 226 val annotation = modifiers.findAnnotation(AnnotationItem::isDefaultValue) in computeDefaultValue() 253 return psiParameter.isVarArgs || modifiers.isVarArg() in isVarArgs() 282 return cls.isInterface() && cls.modifiers.isFunctional() in isSamCompatibleOrKotlinLambda() 315 val modifiers = createParameterModifiers(codebase, psiParameter) in create() constant 346 itemAnnotations = modifiers.annotations(), in create() [all …]
|
D | PsiPropertyItem.kt | 35 modifiers: DefaultModifierList, in <lambda>() 45 modifiers = modifiers, in <lambda>() 107 val modifiers = modifiers(codebase, psiMethod, documentation) in <lambda>() constant 125 if (annotationItem !in modifiers.annotations()) { in <lambda>() 126 modifiers.addAnnotation(annotationItem) in <lambda>() 137 modifiers = modifiers, in <lambda>()
|
D | PsiTypeParameterItem.kt | 33 modifiers: DefaultModifierList 38 modifiers = modifiers, 79 val modifiers = modifiers(codebase, psiClass) in create() constant 85 modifiers = modifiers in create()
|
D | PsiFieldItem.kt | 39 modifiers: DefaultModifierList, 47 modifiers = modifiers, 115 val modifiers = modifiers(codebase, psiField, commentText) in create() constant 127 itemAnnotations = modifiers.annotations(), in create() 129 isFinal = modifiers.isFinal(), in create() 145 modifiers = modifiers, in create()
|
D | PsiMethodItem.kt | 57 modifiers: DefaultModifierList, in <lambda>() 66 modifiers = modifiers, in <lambda>() 269 return modifiers.isActual() && in <lambda>() 316 val modifiers = modifiers(codebase, psiMethod, commentText) in <lambda>() constant 328 val isAnnotationElement = containingClass.isAnnotationType() && !modifiers.isStatic() in <lambda>() 332 itemAnnotations = modifiers.annotations(), in <lambda>() 344 modifiers = modifiers, in <lambda>() 350 if (modifiers.isFinal() && containingClass.modifiers.isFinal()) { in <lambda>() 356 modifiers.setFinal(false) in <lambda>() 395 modifiers = original.modifiers.duplicate(), in <lambda>()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | JDiffXmlWriter.kt | 109 val modifiers = cls.modifiers in <lambda>() constant 111 writer.print(modifiers.isAbstract()) in <lambda>() 113 writer.print(modifiers.isStatic()) in <lambda>() 115 writer.print(modifiers.isFinal()) in <lambda>() 119 writer.print(modifiers.getVisibilityModifiers()) in <lambda>() 144 val modifiers = constructor.modifiers in <lambda>() constant 150 writer.print(modifiers.isStatic()) in <lambda>() 152 writer.print(modifiers.isFinal()) in <lambda>() 156 writer.print(modifiers.getVisibilityModifiers()) in <lambda>() 168 val modifiers = field.modifiers in <lambda>() constant [all …]
|
D | ProguardWriter.kt | 66 val modifiers = method.modifiers in visitMethod() constant 67 val visibilityLevel = modifiers.getVisibilityLevel() in visitMethod() 72 if (modifiers.isStatic()) { in visitMethod() 75 if (modifiers.isAbstract()) { in visitMethod() 78 if (modifiers.isSynchronized()) { in visitMethod() 107 val modifiers = field.modifiers in visitField() constant 108 val visibilityLevel = modifiers.getVisibilityLevel() in visitField() 113 if (modifiers.isStatic()) { in visitField() 116 if (modifiers.isTransient()) { in visitField() 119 if (modifiers.isVolatile()) { in visitField()
|
D | KotlinInteropChecks.kt | 113 val annotation = method.modifiers.findAnnotation("kotlin.jvm.Throws") in <lambda>() 143 val modifiers = field.modifiers in <lambda>() constant 144 if (modifiers.isPublic() && modifiers.isFinal()) { in <lambda>() 156 if (!modifiers.isConst()) { in <lambda>() 157 if (modifiers.findAnnotation("kotlin.jvm.JvmField") == null) { in <lambda>() 163 } else if (modifiers.findAnnotation("kotlin.jvm.JvmStatic") != null) { in <lambda>() 239 method.modifiers.isPublic() in <lambda>() 276 } else if (method.modifiers.findAnnotation("kotlin.jvm.JvmStatic") == null) { in <lambda>() 321 method.modifiers.findAnnotation("kotlin.jvm.JvmOverloads") == null && in <lambda>() 324 !method.modifiers.isInline() && in <lambda>() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/ |
D | SourceMethodItemTest.kt | 69 methodItem.modifiers.getVisibilityLevel(), in test duplicate() for methoditem() 70 duplicateMethod.modifiers.getVisibilityLevel() in test duplicate() for methoditem() 72 assertEquals(true, methodItem.modifiers.equivalentTo(duplicateMethod.modifiers)) in test duplicate() for methoditem() 86 methodItem1.modifiers.getVisibilityLevel(), in test duplicate() for methoditem() 87 duplicateMethod1.modifiers.getVisibilityLevel() in test duplicate() for methoditem() 89 assertEquals(true, methodItem1.modifiers.equivalentTo(duplicateMethod1.modifiers)) in test duplicate() for methoditem() 134 methodItem.modifiers.getVisibilityLevel(), in test inherited methods() 135 inheritedMethod.modifiers.getVisibilityLevel() in test inherited methods() 137 assertEquals(true, methodItem.modifiers.equivalentTo(inheritedMethod.modifiers)) in test inherited methods() 151 methodItem1.modifiers.getVisibilityLevel(), in test inherited methods() [all …]
|
D | CommonCopyMethodItemTest.kt | 124 assertEquals(VisibilityLevel.PUBLIC, sourceMemberItem.modifiers.getVisibilityLevel()) in getMember() 125 assertEquals(VisibilityLevel.PUBLIC, copiedMemberItem.modifiers.getVisibilityLevel()) in getMember() 169 assertTrue(sourceMemberItem.modifiers.isDefault()) in test copy method from interface to class does not copy default modifier() 170 assertFalse(copiedMemberItem.modifiers.isDefault()) in test copy method from interface to class does not copy default modifier() 213 assertTrue(sourceMemberItem.modifiers.isStatic()) in test copy method from interface to class does copy static modifier() 214 assertTrue(copiedMemberItem.modifiers.isStatic()) in test copy method from interface to class does copy static modifier() 258 assertFalse(sourceClassItem.modifiers.isFinal()) in test copy non-final method from non-final class to final class does not change final() 259 assertFalse(sourceMemberItem.modifiers.isFinal()) in test copy non-final method from non-final class to final class does not change final() 260 assertTrue(targetClassItem.modifiers.isFinal()) in test copy non-final method from non-final class to final class does not change final() 261 assertFalse(copiedMemberItem.modifiers.isFinal()) in test copy non-final method from non-final class to final class does not change final()
|
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/ |
D | TurbineTypeItemFactory.kt | 80 val modifiers = createModifiers(type.annos(), ContextNullability.forceNonNull) in <lambda>() constant 83 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.BOOLEAN) in <lambda>() 85 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.BYTE) in <lambda>() 87 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.CHAR) in <lambda>() 89 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.DOUBLE) in <lambda>() 91 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.FLOAT) in <lambda>() 93 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.INT) in <lambda>() 95 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.LONG) in <lambda>() 97 DefaultPrimitiveTypeItem(modifiers, PrimitiveTypeItem.Primitive.SHORT) in <lambda>() 135 val modifiers = createModifiers(type.annos(), contextNullability) in <lambda>() constant [all …]
|
D | TurbineParameterItem.kt | 36 modifiers: DefaultModifierList, 37 ) : TurbineItem(codebase, fileLocation, modifiers, ""), ParameterItem { 43 val annotation = modifiers.findAnnotation(AnnotationItem::isParameterName) in name() 52 return modifiers.hasAnnotation(AnnotationItem::isDefaultValue) in containingMethod() 56 val annotation = modifiers.findAnnotation(AnnotationItem::isDefaultValue) in defaultValue() 73 override fun isVarArgs(): Boolean = modifiers.isVarArg() in hashCode() 83 val mods = (parameter.modifiers as DefaultModifierList).duplicate() in hashCode()
|
D | TurbineConstructorItem.kt | 34 modifiers: DefaultModifierList, 45 modifiers, 65 val modifiers = DefaultModifierList(codebase, DefaultModifierList.PACKAGE_PRIVATE, null) in name() constant 66 modifiers.setVisibilityLevel(containingClass.modifiers.getVisibilityLevel()) in name() 79 modifiers, in name()
|
D | TurbinePackageItem.kt | 29 modifiers: DefaultModifierList, 32 ) : TurbineItem(codebase, fileLocation, modifiers, documentation, isInitiallyHidden), PackageItem { 43 modifiers: DefaultModifierList, in create() 47 if (modifiers.isPackagePrivate()) { in create() 48 modifiers.setVisibilityLevel(VisibilityLevel.PUBLIC) in create() 54 modifiers, in create()
|
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/ |
D | ApiFile.kt | 408 val modifiers = createModifiers(DefaultModifierList.PUBLIC, annotations) in parsePackage() constant 419 if (modifiers != existing.modifiers) { in parsePackage() 424 existing.modifiers, in parsePackage() 425 modifiers in parsePackage() 433 TextPackageItem(codebase, name, modifiers, tokenizer.fileLocation()) in parsePackage() 461 val modifiers = parseModifiers(tokenizer, token, annotations) in parseClass() constant 474 modifiers.setAbstract(true) in parseClass() 479 modifiers.setAbstract(true) in parseClass() 484 modifiers.setFinal(true) in parseClass() 485 modifiers.setStatic(true) in parseClass() [all …]
|
D | ClassCharacteristics.kt | 49 val modifiers: ModifierList, constant in com.android.tools.metalava.model.text.ClassCharacteristics 69 modifiers.equivalentTo(other.modifiers) in isCompatible() 79 modifiers = classItem.modifiers,
|
D | TextConstructorItem.kt | 28 modifiers: DefaultModifierList, 37 modifiers, 58 val modifiers = DefaultModifierList(codebase, DefaultModifierList.PACKAGE_PRIVATE, null) in isConstructor() constant 65 modifiers = modifiers, in isConstructor()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/ |
D | CommonAnnotationItemTest.kt | 77 val anno = testClass.modifiers.annotations().single() in annotation with annotation values() 136 val anno = testClass.modifiers.annotations().single() in annotation with boolean values() 186 val anno = testClass.modifiers.annotations().single() in annotation with char values() 236 val anno = testClass.modifiers.annotations().single() in annotation with class values() 347 val anno = testClass.modifiers.annotations().single() in annotation with number values() 417 val anno = testClass.modifiers.annotations().single() in annotation with string values() 459 val anno = testClass.modifiers.annotations().single() in annotation array values with single element() 500 val anno = testClass.modifiers.annotations().single() in annotation array values with single array element() 559 val anno = testClass.modifiers.annotations().single() in annotation with enum values() 607 val anno = testClass.modifiers.annotations().single() in annotation with constant literal values() [all …]
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/ |
D | Item.kt | 39 @MetalavaApi val modifiers: ModifierList constant 183 modifiers.codebase.annotationManager.hasHideAnnotations(modifiers) in isHiddenOrRemoved() 186 modifiers.hasSuppressCompatibilityMetaAnnotations() in isHiddenOrRemoved() 415 final override val modifiers: DefaultModifierList, constant in com.android.tools.metalava.model.DefaultItem 420 modifiers.owner = this 428 get() = modifiers.isDeprecated() 430 final override fun mutableModifiers(): MutableModifierList = modifiers in mutableModifiers() 433 get() = modifiers.isPublic() in mutableModifiers() 436 get() = modifiers.isProtected() in mutableModifiers() 439 get() = modifiers.getVisibilityLevel() == VisibilityLevel.INTERNAL in mutableModifiers() [all …]
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/type/ |
D | DefaultResolvedClassTypeItem.kt | 26 modifiers: TypeModifiers, 29 ) : ClassTypeItem, DefaultTypeItem(modifiers) { 43 return DefaultResolvedClassTypeItem(modifiers.duplicate(), classItem, arguments) in asClass() 49 val modifiers = DefaultTypeModifiers.emptyNonNullModifiers in createForClass() constant 50 return DefaultResolvedClassTypeItem(modifiers, classItem, arguments) in createForClass()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/ |
D | NullabilityTesting.kt | 86 .that(modifiers.nullability()) in assertHasNonNullNullability() 88 val nullabilityAnnotations = modifiers.annotations().filter { it.isNullnessAnnotation() } in assertHasNonNullNullability() 104 assertThat(modifiers.nullability()).isEqualTo(TypeNullability.NULLABLE) in assertHasNullableNullability() 105 val nullabilityAnnotations = modifiers.annotations().filter { it.isNullnessAnnotation() } in assertHasNullableNullability() 115 assertThat(modifiers.nullability()).isEqualTo(TypeNullability.PLATFORM) in assertHasPlatformNullability() 120 assertThat(modifiers.nullability()).isEqualTo(TypeNullability.UNDEFINED) in assertHasUndefinedNullability()
|