with Enum Constants
List containing declarations with any enum constant.
Return
A list containing declarations with any enum constant.
fun <T : KoEnumConstantProvider> List<T>.withEnumConstants(predicate: (List<KoEnumConstantDeclaration>) -> Boolean): List<T>
List containing declarations with enum constant declarations satisfying the predicate.
Return
A list containing declarations with enum constant declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of enum constant declarations.