withAllDeclarations

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

includeNested

Whether to include nested declarations.

includeLocal

Whether to include local declarations.

predicate

A function that defines the condition to be met by all declarations.