class Prism::DotVisitor

def visit_assoc_node(node)

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