Home
last modified time | relevance | path

Searched refs:typeBounds (Results 1 – 14 of 14) sorted by relevance

/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeParameterItemTest.kt28 fun `Test typeBounds no extends`() { in Test typeBounds no extends()
57 val typeBounds = typeParameter.typeBounds() in Test typeBounds no extends() constant
58 assertThat(typeBounds.size).isEqualTo(0) in Test typeBounds no extends()
63 fun `Test typeBounds extends Comparable`() { in Test typeBounds extends Comparable()
91 val typeBounds = typeParameter.typeBounds() in Test typeBounds extends Comparable() constant
92 assertThat(typeBounds.size).isEqualTo(1) in Test typeBounds extends Comparable()
93 val typeBound = typeBounds[0] in Test typeBounds extends Comparable()
100 fun `Test typeBounds multiple`() { in Test typeBounds multiple()
128 val typeBounds = typeParameter.typeBounds() in Test typeBounds multiple() constant
129 assertThat(typeBounds.size).isEqualTo(2) in Test typeBounds multiple()
[all …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DTypeParameterItem.kt28 fun typeBounds(): List<BoundsTypeItem> in name() method
36 typeBounds().firstOrNull() ?: codebase.resolveClass(JAVA_LANG_OBJECT)?.type() in name()
48 typeBounds().isNotEmpty() && typeBounds().singleOrNull()?.isJavaLangObject() != true in name()
52 for (bound in typeBounds()) { in name()
66 if (typeBounds().isEmpty() && !isReified()) name() in toStringForItem()
71 if (typeBounds().isNotEmpty()) { in toStringForItem()
73 typeBounds().joinTo(this, " & ") in toStringForItem()
DTypeParameterList.kt139 if (typeParameter.typeBounds() !== boundsTypeItem) in equals()
DMethodItem.kt427 if (typeParameter.typeBounds().any { it.hasHiddenType(filterReference) }) return true in <lambda>()
DTypeItem.kt151 (other as? VariableTypeItem)?.asTypeParameter?.typeBounds()?.map { it.toTypeString() } in <lambda>()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTextMethodItem.kt84 if (typeParameter1.typeBounds() != typeParameter2.typeBounds()) { in equals()
DTextTypeParameterItem.kt53 override fun typeBounds(): List<BoundsTypeItem> = bounds in typeBounds() method
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbineTypeParameterItem.kt48 override fun typeBounds(): List<BoundsTypeItem> = bounds in name() method
DTurbineCodebaseInitialiser.kt605 val typeBounds = mutableListOf<BoundsTypeItem>() in <lambda>() constant
608 upperBounds.bounds().mapTo(typeBounds) { typeItemFactory.getBoundsType(it) } in <lambda>()
609 param.lowerBound()?.let { typeBounds.add(typeItemFactory.getBoundsType(it)) } in <lambda>()
611 return typeBounds.toList() in <lambda>()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeParameterItem.kt57 override fun typeBounds(): List<BoundsTypeItem> = bounds in psi() method
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt413 return old.asTypeParameter.typeBounds() == new.asTypeParameter.typeBounds() in compatibleReturnTypes()
418 val constraints = new.asTypeParameter.typeBounds() in compatibleReturnTypes()
670 if (type.asTypeParameter.typeBounds().isEmpty()) { in describeBounds()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DBootstrapSourceModelProviderTest.kt673 assertEquals(0, typeParameter1.typeBounds().count()) in 180 - test classItem toType()
684 assertEquals("test.pkg.Test", typeParameter2.typeBounds().single().toString()) in 180 - test classItem toType()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/classitem/
DCommonClassItemTest.kt163 .typeBounds() in Test access type parameter of outer class in type parameters()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DApiAnalyzer.kt1241 for (bound in typeParameter.typeBounds()) { in <lambda>()