class Prism::DotVisitor

def visit_next_node(node)

Visit a NextNode node.
def visit_next_node(node)
  table = Table.new("NextNode")
  id = node_id(node)
  # arguments
  unless (arguments = node.arguments).nil?
    table.field("arguments", port: true)
    digraph.edge("#{id}:arguments -> #{node_id(arguments)};")
  end
  # keyword_loc
  table.field("keyword_loc", location_inspect(node.keyword_loc))
  digraph.nodes << <<~DOT
    #{id} [
      label=<#{table.to_dot.gsub(/\n/, "\n  ")}>
    ];
  DOT
  super
end