hasExternalDeclarationOf

abstract fun hasExternalDeclarationOf(kClass: KClass<*>): Boolean

Whether declaration has a external type declaration of the specified Kotlin class. An external type refers to a type that is defined outside the project's codebase. for e.g. in external library.

Return

true if the declaration has a external type declaration (type defined outside the project codebase for e.g. in external library) matching the specified KClass, false otherwise.

Parameters

kClass

The Kotlin class representing the external type declaration to check for.