Class: Riml::Compiler::GetVariableByScopeAndDictNameNodeVisitor
- Defined in:
- lib/compiler.rb
Instance Method Summary collapse
Methods inherited from Visitor
Constructor Details
This class inherits a constructor from Riml::Compiler::Visitor
Instance Method Details
#compile(node) ⇒ Object
732 733 734 735 736 737 738 739 740 741 742 |
# File 'lib/compiler.rb', line 732 def compile(node) node.scope_modifier.parent = node node.scope_modifier.accept(visitor_for_node(node.scope_modifier)) node.keys.each do |key| key.parent = node node.compiled_output << '[' key.accept(visitor_for_node(key)) node.compiled_output << ']' end node.compiled_output end |