class And Object Declarations
fun <T : KoDeclarationCastProvider> List<T>.classAndObjectDeclarations(predicate: (KoClassAndObjectDeclaration) -> Boolean? = null): List<KoClassAndObjectDeclaration>
List containing class and object declarations associated with declarations.
Return
A list of class and object declarations that match the provided predicate, or all class and object declarations if no predicate is provided.
Parameters
predicate
A function that defines the condition to be met by the class and object declaration. If null, all class and object declarations are included.