hasExternalDeclaration

abstract fun hasExternalDeclaration(predicate: (KoExternalDeclaration) -> Boolean? = null): Boolean

Whether declaration has a specified external type declaration. An external type refers to a type that is defined outside the project's codebase. for e.g. in external library.

Return

true if the declaration has the specified external type declaration (or any external type declaration if predicate is null), false otherwise.

Parameters

predicate

The predicate external used to determine if a external type declaration satisfies a condition.