withoutDeclarations

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

List containing declarations with no declarations.

Return

A list containing declarations with no declarations.

Parameters

includeNested

Whether to include nested declarations.

includeLocal

Whether to include local declarations.


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

List containing declarations without declarations satisfying the predicate.

Return

A list containing declarations without 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.