with Objects
List containing declarations with any object.
Return
A list containing declarations with any object.
Parameters
include Nested
Whether to include nested objects.
fun <T : KoObjectProvider> List<T>.withObjects(includeNested: Boolean = true, predicate: (List<KoObjectDeclaration>) -> Boolean): List<T>
List containing declarations with object declarations satisfying the predicate.
Return
A list containing declarations with object declarations satisfying the predicate.
Parameters
include Nested
Whether to include nested objects.
predicate
A function that defines the condition to be met by the list of object declarations.