withDeclarations

fun <T : KoDeclarationProvider> List<T>.withDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations with any declaration.

Return

A list containing declarations with any declaration.

Parameters

includeNested

Whether to include nested declarations.

includeLocal

Whether to include local declarations.


fun <T : KoDeclarationProvider> List<T>.withDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoBaseDeclaration>) -> Boolean): List<T>

List containing declarations with declarations satisfying the predicate.

Return

A list containing declarations with 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 the list of declarations.