class Prism::DotVisitor
def visit_post_execution_node(node)
def visit_post_execution_node(node) table = Table.new("PostExecutionNode") id = node_id(node) # statements unless (statements = node.statements).nil? table.field("statements", port: true) digraph.edge("#{id}:statements -> #{node_id(statements)};") end # keyword_loc table.field("keyword_loc", location_inspect(node.keyword_loc)) # opening_loc table.field("opening_loc", location_inspect(node.opening_loc)) # closing_loc table.field("closing_loc", location_inspect(node.closing_loc)) digraph.nodes << <<~DOT #{id} [ label=<#{table.to_dot.gsub(/\n/, "\n ")}> ]; DOT super end