class

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)
Source

Class methods

map(values, of = nil, &)
Source
map_with_index(values, &)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
clone_without_location
Source
elements
Source
elements=(elements : Array(ASTNode))
Source
hash(hasher)

See Object#hash(hasher)

name
Source
name=(name : ASTNode | Nil)
Source
of=(of : ASTNode | Nil)
Source