klyn.code.ast.DeclarationKind.isCallable
method
public isCallable() as Boolean
Description

Returns true if this declaration represents an executable or reactive callable (CONSTRUCTOR, METHOD, FUNCTION, OPERATOR, PROPERTY, SIGNAL, EVENT).

Returns

true for callables.

Example
import klyn.code.ast

assert DeclarationKind.METHOD.isCallable()
assert DeclarationKind.FUNCTION.isCallable()
assert DeclarationKind.OPERATOR.isCallable()
assert not DeclarationKind.FIELD.isCallable()