withName

fun <T : KoNameProvider> List<T>.withName(vararg names: String): List<T>

List containing declarations with name.

Return

A list containing declarations with the specified names (or any name if names is empty).

Parameters

names

The name(s) to include.


fun <T : KoNameProvider> List<T>.withName(predicate: (String) -> Boolean): List<T>

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

Return

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

Parameters

predicate

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