count Parent Classes
abstract fun countParentClasses(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int
Returns the number of parent classes that satisfies the specified predicate present in the declaration.
Return
The number of parent classes in the declaration satisfying predicate.
Parameters
indirect Parents
specifies whether to include parent classes defined in other files such as parent of the parent.
predicate
The predicate function to determine if a parent class satisfies a condition.