Class: Riml::Compiler::ExplicitCallNodeVisitor

Inherits:
CallNodeVisitor show all
Defined in:
lib/riml/compiler.rb

Instance Method Summary collapse

Methods inherited from CallNodeVisitor

#compile_arguments

Methods inherited from Visitor

#initialize, #visit

Constructor Details

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

Instance Method Details

#compile(node) ⇒ Object



587
588
589
590
591
592
593
594
595
# File 'lib/riml/compiler.rb', line 587

def compile(node)
  if node.scope_modifier || node.name
    node.compiled_output = "call " << super
  else
    node.compiled_output = "call"
    compile_arguments(node)
  end
  node.compiled_output
end