with Annotations
List containing declarations with any annotation.
Return
A list containing declarations with any annotation.
fun <T : KoAnnotationProvider> List<T>.withAnnotations(predicate: (List<KoAnnotationDeclaration>) -> Boolean): List<T>
List containing declarations with annotation declarations satisfying the predicate.
Return
A list containing declarations with annotation declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of annotation declarations.