Home
last modified time | relevance | path

Searched refs:isNullable (Results 1 – 10 of 10) sorted by relevance

/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DNullnessMigration.kt103 return isNullable(item) || isNonNull(item) in hasNullnessInformation()
110 private fun isNullable(item: Item): Boolean { in isNullable() method
111 return item.modifiers.hasAnnotation(AnnotationItem::isNullable) in isNullable()
127 val annotationClass = if (annotation.isNullable()) RECENTLY_NULLABLE else RECENTLY_NONNULL in Item()
DAnnotationsMerger.kt597 if (isNullable(name)) { in <lambda>()
606 if (isNonNull(qualifiedName) && haveNullable || isNullable(qualifiedName) && haveNotNull) { in <lambda>()
800 isNullable(name) -> return codebase.createAnnotation("@$ANDROIDX_NULLABLE") in <lambda>()
827 private fun isNullable(name: String): Boolean { in <lambda>() method
836 if (annotation.isNullable()) { in <lambda>()
DConvertJarsToSignatureFiles.kt101 if (annotation.isNullable()) ANDROIDX_NULLABLE else ANDROIDX_NONNULL in <lambda>()
DApiAnalyzer.kt985 method.returnType().modifiers.isNullable in <lambda>()
992 val annotation = method.modifiers.findAnnotation(AnnotationItem::isNullable) in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DTypeModifiers.kt47 val isNullable in annotations() constant
DAnnotationItem.kt76 fun isNullable(): Boolean in toSource() method
416 override fun isNullable(): Boolean { in isNullable() method
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DNullabilityTesting.kt107 true -> assertThat(nullabilityAnnotations.single().isNullable()).isTrue() in assertHasNullableNullability()
DBootstrapSourceModelProviderTest.kt466 assertEquals(true, nullAnno.isNullable()) in 140 - test annotations()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/lint/
DApiLint.kt1261 if (arg.type().modifiers.isNullable) { in <lambda>()
1301 if (method.returnType().modifiers.isNullable) { in <lambda>()
1744 if (type.modifiers.isNullable && superType?.modifiers?.isNullable != true) { in <lambda>()
1763 if (elementType.modifiers.isNullable && superElementType?.modifiers?.isNullable != true) { in <lambda>()
2172 if (type.modifiers.isNullable) { in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt245 if (annotation.isNullable() || annotation.isNonNull()) { in <lambda>()