class

Syntax::Expressions

Inherits Syntax::ASTNode < Reference < Object

A container for one or many expressions.

Constructors

new(expressions : Array(Syntax::ASTNode) = [] of ASTNode)
Source

Class methods

from(obj : Nil)
Source
from(obj : Array)
Source
from(obj : ASTNode)
Source

Instance methods

==(other : self)

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

[](i)
Source
accept_children(visitor)
Source
clone_without_location
Source
empty?
Source
end_location

The location where this node ends, or nil if the location is not known.

Source
expressions
Source
expressions=(expressions : Array(ASTNode))
Source
hash(hasher)

See Object#hash(hasher)

keyword
Source
keyword=(keyword : Keyword)
Source
last
Source
location

The location where this node starts, or nil if the location is not known.

Source
single_expression?

It yields first node if this holds only one node, or yields nil.

Source

Nested types