module Melbourne module AST # A value of a splat (*some) as in: # # *1 # the value of the splat is 1 # class SplatValue < Node # The actual value # attr_accessor :value def initialize(line, value) #:nodoc: @line = line @value = value end end # TODO: document! class ConcatArgs < Node #:nodoc: attr_accessor :array, :rest, :size def initialize(line, array, rest) @line = line @array = array @size = array.body.size @rest = rest end end # TODO: document! class SValue < Node #:nodoc: attr_accessor :value def initialize(line, value) @line = line @value = value end end # TODO: document! class ToArray < Node #:nodoc: attr_accessor :value def initialize(line, value) @line = line @value = value end end # TODO: document! class ToString < Node #:nodoc: attr_accessor :value def initialize(line, value) @line = line @value = value end end end end