class

Myst::MapLiteral

Inherits Myst::Literal / Myst::Node / Reference / Object

A Map literal. Maps are always delimited by curly braces, and may contain any number of entries, delimited from each other by commas.

'{' [ entry [ ',' entry ]* ] '}'

Entries are dual values separated by a colon. The first value (the key) may be either a name or a value interpolation (defined later).

name ':' expression | interpolation ':' expression

Constructors

new(entries : Array(Myst::MapLiteral::Entry) = [] of Entry)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
entries
Source
entries=(entries : Array(Entry))
Source
hash(hasher)

See Object#hash(hasher)

Nested types