class DeepCover::Node::Block

Public Instance Methods

children_nodes_in_flow_order() click to toggle source
# File lib/deep_cover/node/block.rb, line 45
def children_nodes_in_flow_order
  [call] # Similarly to a def, the body (and Args) are actually not part of the flow of this node...
end
execution_count() click to toggle source
# File lib/deep_cover/node/block.rb, line 41
def execution_count
  call.execution_count
end
rewrite() click to toggle source
# File lib/deep_cover/node/block.rb, line 50
def rewrite
  if call.is_a?(Csend)
    rewrite_for_completion.gsub('%{node}', Csend::REWRITE_SUFFIX_IN_BLOCK)
  else
    rewrite_for_completion
  end
end
Also aliased as: rewrite_for_completion
rewrite_for_completion()
Alias for: rewrite