has Function Declaration
abstract override fun hasFunctionDeclaration(predicate: (KoFunctionDeclaration) -> Boolean?): Boolean
Deprecated
Will be removed in version 0.19.0
Replace with
sourceDeclaration?.hasFunctionDeclaration()
Content copied to clipboard
Whether declaration has a specified function declaration.
Return
true
if the declaration has the specified function declaration (or any function declaration if predicate is null
), false
otherwise.
Parameters
predicate
The predicate function used to determine if a function declaration satisfies a condition.