with All Declarations
fun <T : KoDeclarationProvider> List<T>.withAllDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoBaseDeclaration) -> Boolean): List<T>
List containing declarations that have all declarations satisfying the provided predicate.
Return
A filtered list containing declarations with all declarations satisfying the predicate.
Parameters
include Nested
Whether to include nested declarations.
include Local
Whether to include local declarations.
predicate
A function that defines the condition to be met by all declarations.