class Crystal::EnumDef inherits Crystal::ASTNode ¶ Class methods¶ .new(name, members = [] of ASTNode, base_type = nil) ¶ View source Methods¶ #==(other : self) ¶ Returns true if this reference is the same as other. Invokes same?. #accept_children(visitor) ¶ View source #base_type : ASTNode? ¶ View source #base_type=(base_type : ASTNode?) ¶ View source #clone_without_location ¶ View source #doc : String? ¶ Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil. View source #doc=(doc : String?) ¶ View source #hash(hasher) ¶ See Object#hash(hasher) #members : Array(ASTNode) ¶ View source #members=(members : Array(ASTNode)) ¶ View source #name : Path ¶ View source #name=(name : Path) ¶ View source #resolved_type : EnumType ¶ #resolved_type=(resolved_type : EnumType) ¶ View source #resolved_type? : EnumType? ¶ #visibility : Crystal::Visibility ¶ View source #visibility=(visibility) ¶ View source