object Declarations
fun <T : KoDeclarationCastProvider> List<T>.objectDeclarations(predicate: (KoObjectDeclaration) -> Boolean? = null): List<KoObjectDeclaration>
List containing object declarations associated with declarations.
Return
A list of object declarations that match the provided predicate, or all object declarations if no predicate is provided.
Parameters
predicate
A function that defines the condition to be met by the object declaration. If null, all object declarations are included.
Deprecated
Will be removed in version 0.19.0
Replace with
objectDeclarations()
Content copied to clipboard
List containing object declarations associated with types.