withChildNamed

fun <T : KoChildProvider> List<T>.withChildNamed(name: String, vararg names: String, indirectChildren: Boolean = false): List<T>

List containing declarations that have at least one child with the specified name(s).

Return

A list containing declarations with at least one of the specified child(s).

Parameters

name

The name of the child to include.

names

The names of additional children to include.

indirectChildren

Whether to include indirect children.


fun <T : KoChildProvider> List<T>.withChildNamed(names: Collection<String>, indirectChildren: Boolean = false): List<T>

List containing declarations that have at least one child with the specified name(s).

Return

A list containing declarations with at least one of the specified child(s).

Parameters

names

The names of additional children to include.

indirectChildren

Whether to include indirect children.