Class: RLSL::Prism::IR::ArrayLiteral

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

Constructor Details

#initialize(elements, type = nil) ⇒ ArrayLiteral

Returns a new instance of ArrayLiteral.



176
177
178
179
180
# File 'lib/rlsl/prism/ir/expressions.rb', line 176

def initialize(elements, type = nil)
  super()
  @elements = elements
  @type = type
end

Instance Attribute Details

#elementsObject (readonly)

Returns the value of attribute elements.



172
173
174
# File 'lib/rlsl/prism/ir/expressions.rb', line 172

def elements
  @elements
end