withAlias

fun <T : KoAliasProvider> List<T>.withAlias(predicate: (KoImportAliasDeclaration) -> Boolean? = null): List<T>

List containing declarations with the specified import alias.

Return

A list containing declarations with the specified import alias (or any import alias if predicate is null).

Parameters

predicate

The predicate function to determine if a declaration import alias satisfies a condition.