Skip to content

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)

#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=(visibility)

View source