class

DoisC::ASTData::MapLiteral

Inherits DoisC::ASTData::LiteralCollection < DoisC::ASTData::Literal < DoisC::ASTData::Expression < DoisC::ASTData::Node < Reference < Object

Container for Map literal, i.e. `{"x" => 1, "y" => 2}

Constructors

new(mappings : Hash(Expression, Expression), source_location : SourceLocation)
Source

Instance methods

literal_type
Source
mappings

FIXME Most compilers represent map literals as: Array({Expression, Expression}) instead of Hash

Source