withoutClasses

fun <T : KoClassProvider> List<T>.withoutClasses(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations with no classes.

Return

A list containing declarations with no classes.

Parameters

includeNested

Whether to include nested classes.

includeLocal

Whether to include local classes.


fun <T : KoClassProvider> List<T>.withoutClasses(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoClassDeclaration>) -> Boolean): List<T>

List containing declarations without class declarations satisfying the predicate.

Return

A list containing declarations without class declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested classes.

includeLocal

Whether to include local classes.

predicate

A function that defines the condition to be met by the list of class declarations.