hasAlias

abstract fun hasAlias(predicate: (KoImportAliasDeclaration) -> Boolean? = null): Boolean

Determines whatever declaration has a specified alias.

Return

true if the declaration has the specified alias (or any alias if predicate is null), false otherwise.

Parameters

predicate

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