Class: Riml::Compiler::DictGetDotNodeVisitor

Inherits:
Visitor
  • Object
show all
Defined in:
lib/compiler.rb

Instance Method Summary collapse

Methods inherited from Visitor

#initialize, #visit

Constructor Details

This class inherits a constructor from Riml::Compiler::Visitor

Instance Method Details

#compile(node) ⇒ Object



721
722
723
724
725
726
727
728
# File 'lib/compiler.rb', line 721

def compile(node)
  node.dict.parent_node = node
  node.dict.accept(visitor_for_node(node.dict))
  node.keys.each do |key|
    node.compiled_output << ".#{key}"
  end
  node.compiled_output
end