Sha256: 7a5f94c116030687a5aabd22858e6d1e50c8372da5d441cd6b9dfa8d495344bf
Contents?: true
Size: 539 Bytes
Versions: 23
Compression:
Stored size: 539 Bytes
Contents
module Johnson module Nodes LIST_NODES = %w{ SourceElements VarStatement LetStatement Comma ObjectLiteral ArrayLiteral New FunctionCall Import Export } # This is an abstract node used for nodes of list type # see SourceElements class List < Node def initialize(line, column, value = []) super end def <<(obj) self.value << obj end end LIST_NODES.each { |ln| const_set(ln.to_sym, Class.new(List)) } end end
Version data entries
23 entries across 23 versions & 5 rubygems