class

Syntax::EnumDef

Inherits Syntax::ASTNode < Reference < Object

Constructors

new(name : Syntax::Path, members : Array(Syntax::ASTNode) = [] of ASTNode, base_type : Syntax::ASTNode | Nil = nil)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
base_type
Source
base_type=(base_type : ASTNode | Nil)
Source
clone_without_location
Source
doc

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

Source
doc=(doc : String | Nil)
Source
hash(hasher)

See Object#hash(hasher)

members
Source
members=(members : Array(ASTNode))
Source
name
Source
name=(name : Path)
Source
visibility
Source
visibility=(visibility : Syntax::Visibility)
Source