class Prism::DotVisitor

def visit_or_node(node)

Visit a OrNode node.
def visit_or_node(node)
  table = Table.new("OrNode")
  id = node_id(node)
  # left
  table.field("left", port: true)
  digraph.edge("#{id}:left -> #{node_id(node.left)};")
  # right
  table.field("right", port: true)
  digraph.edge("#{id}:right -> #{node_id(node.right)};")
  # operator_loc
  table.field("operator_loc", location_inspect(node.operator_loc))
  digraph.nodes << <<~DOT
    #{id} [
      label=<#{table.to_dot.gsub(/\n/, "\n  ")}>
    ];
  DOT
  super
end