Class: SyntaxTree::Visitor
- Inherits:
-
BasicVisitor
- Object
- BasicVisitor
- SyntaxTree::Visitor
- Defined in:
- lib/syntax_tree/visitor.rb
Overview
Visitor is a parent class that provides the ability to walk down the tree and handle a subset of nodes. By defining your own subclass, you can explicitly handle a node type by defining a visit_* method.
Direct Known Subclasses
Index::ParserBackend::ConstantNameVisitor, Index::ParserBackend::IndexVisitor, LanguageServer::InlayHints, Parser::PinVisitor
Method Summary
Methods inherited from BasicVisitor
valid_visit_methods, #visit, #visit_all, #visit_child_nodes, visit_method, visit_methods