hasParentInterface

abstract fun hasParentInterface(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one parent interface that satisfies the provided predicate.

Return

true if there is a matching declaration, false otherwise.

Parameters

indirectParents

specifies whether to include parent interfaces defined in other files such as parent of the parent.

predicate

A function that defines the condition to be met by a parent interface.