getKind abstract method
Returns the TypeKind of this type, indicating whether it is a class, enum, mixin, etc.
This is useful when performing conditional logic based on what kind of type it is.
if (identity.getKind() == TypeKind.classType) {
print("This is a class.");
}
Implementation
TypeKind getKind();