hasBody¶
fun KtDeclaration.hasBody(): Boolean
Returns true if this declaration is a function or property that defines a body.
Only KtFunction and KtProperty are considered; every other declaration, including a KtPropertyAccessor, returns false.