Syntax::ArrayLiteral
Inherits Syntax::ASTNode < Reference < Object
An array literal.
'[' [ expression [ ',' expression ]* ] ']'
Constructors
new(elements : Array(Syntax::ASTNode) = [] of ASTNode, of : Syntax::ASTNode | Nil = nil, name : Syntax::ASTNode | Nil = nil)
SourceClass methods
map(values, of = nil, &)
Sourcemap_with_index(values, &)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourceclone_without_location
Sourceelements
Sourcehash(hasher)
See Object#hash(hasher)
name
Sourcename=(name : ASTNode | Nil)
Sourceof
Sourceof=(of : ASTNode | Nil)
Source