withText

fun <T : KoTextProvider> List<T>.withText(vararg texts: String): List<T>

List containing declarations with text.

Return

A list containing declarations with the specified texts (or any text if texts is empty).

Parameters

texts

The text(s) to include.


fun <T : KoTextProvider> List<T>.withText(predicate: (String) -> Boolean): List<T>

List containing declarations that have a text matching the provided predicate.

Return

A list containing declarations with the text matching the provided predicate.

Parameters

predicate

A function that defines the condition to be met by a declaration text.