class Prism::DotVisitor
def visit_string_node(node)
def visit_string_node(node) table = Table.new("StringNode") id = node_id(node) # flags table.field("flags", string_flags_inspect(node)) # opening_loc unless (opening_loc = node.opening_loc).nil? table.field("opening_loc", location_inspect(opening_loc)) end # content_loc table.field("content_loc", location_inspect(node.content_loc)) # closing_loc unless (closing_loc = node.closing_loc).nil? table.field("closing_loc", location_inspect(closing_loc)) end # unescaped table.field("unescaped", node.unescaped.inspect) digraph.nodes << <<~DOT #{id} [ label=<#{table.to_dot.gsub(/\n/, "\n ")}> ]; DOT super end