has All Declarations
abstract fun hasAllDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoBaseDeclaration) -> Boolean): Boolean
Determines whether the declaration has all declarations that satisfy the provided predicate.
Note that if the declarations contains no elements, the function returns true
because there are no elements in it that do not match the predicate.
Return
true
if all declarations satisfy the predicate, 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 declarations.