class Prism::DotVisitor

def visit_global_variable_write_node(node)

Visit a GlobalVariableWriteNode node.
def visit_global_variable_write_node(node)
  table = Table.new("GlobalVariableWriteNode")
  id = node_id(node)
  # name
  table.field("name", node.name.inspect)
  # name_loc
  table.field("name_loc", location_inspect(node.name_loc))
  # value
  table.field("value", port: true)
  digraph.edge("#{id}:value -> #{node_id(node.value)};")
  # 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