class RBS::AST::Visitor

The Visitor class implements the Visitor pattern for traversing the RBS Abstract Syntax Tree (AST).

It provides methods to visit each type of node in the AST, allowing for custom processing of each node type.

This class is designed to be subclassed, with specific visit methods overridden to implement custom behavior for different node types.

Example usage:

~~~rb class MyVisitor < RBS::AST::Visitor

def visit_declaration_class(node)
  puts "Visiting class: #{node.name}"

  super # call `super` to run the default visiting behavior
end

end

visitor = MyVisitor.new visitor.visit(ast_node) ~~~