has Declaration
abstract fun hasDeclaration(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoBaseDeclaration) -> Boolean): Boolean
Determines whether the declaration has at least one declaration that satisfies the provided predicate.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
include Nested
Specifies whether to include nested declarations in the check (optional, default is true
).
include Local
Specifies whether to include local declarations in the check (optional, default is true
).
predicate
A function that defines the condition to be met by a declaration.