[Analysis API] rename KtAnnotationsList.containsAnnotation -> hasAnnotation
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ internal class KtFirAnnotationListForDeclaration private constructor(
|
||||
}
|
||||
|
||||
|
||||
override fun containsAnnotation(classId: ClassId): Boolean = withValidityAssertion {
|
||||
override fun hasAnnotation(classId: ClassId): Boolean = withValidityAssertion {
|
||||
firSymbol.resolvedAnnotationClassIds.contains(classId)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ internal class KtFirAnnotationListForType private constructor(
|
||||
get() = withValidityAssertion { coneType.customAnnotations.map { it.toKtAnnotationApplication(useSiteSession) } }
|
||||
|
||||
|
||||
override fun containsAnnotation(classId: ClassId): Boolean = withValidityAssertion {
|
||||
override fun hasAnnotation(classId: ClassId): Boolean = withValidityAssertion {
|
||||
coneType.customAnnotations.any { it.fullyExpandedClassId(useSiteSession) == classId }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user