class Prism::DotVisitor

def visit_program_node(node)

Visit a ProgramNode node.
def visit_program_node(node)
  table = Table.new("ProgramNode")
  id = node_id(node)
  # locals
  table.field("locals", node.locals.inspect)
  # statements
  table.field("statements", port: true)
  digraph.edge("#{id}:statements -> #{node_id(node.statements)};")
  digraph.nodes << <<~DOT
    #{id} [
      label=<#{table.to_dot.gsub(/\n/, "\n  ")}>
    ];
  DOT
  super
end