public isTypeDeclaration() as Boolean
Returns true if this declaration represents a user-defined type (CLASS, INTERFACE, STRUCT, RECORD, ENUM, TRAIT, ANNOTATION).
true for type declarations.
import klyn.code.ast assert DeclarationKind.INTERFACE.isTypeDeclaration() assert DeclarationKind.ANNOTATION.isTypeDeclaration() assert not DeclarationKind.METHOD.isTypeDeclaration()