with Classes
fun <T : KoClassProvider> List<T>.withClasses(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>
List containing declarations with any class.
Return
A list containing declarations with any class.
Parameters
include Nested
Whether to include nested classes.
include Local
Whether to include local classes.
fun <T : KoClassProvider> List<T>.withClasses(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoClassDeclaration>) -> Boolean): List<T>
List containing declarations with class declarations satisfying the predicate.
Return
A list containing declarations with class declarations satisfying the predicate.
Parameters
include Nested
Whether to include nested classes.
include Local
Whether to include local classes.
predicate
A function that defines the condition to be met by the list of class declarations.