class Prism::DotVisitor

def visit_constant_path_node(node)

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