class Ikra::Translator::ParallelSectionInvocationVisitor
This visitor inserts a synthetic method call whenever a parallel section should be invoked, i.e.:
-
The return value of the host section (must be an ArrayCommand-typed expression)
-
When the content of an ArrayCommand-typed expression is accessed
Public Instance Methods
visit_return_node(node)
click to toggle source
# File lib/translator/host_section/parallel_section_invocation_visitor.rb, line 12 def visit_return_node(node) node.replace_child( node.value, AST::SendNode.new(receiver: node.value, selector: :__call__)) end