Class: SyntaxTree::RBS::Visitor
- Inherits:
-
Object
- Object
- SyntaxTree::RBS::Visitor
- Defined in:
- lib/syntax_tree/rbs.rb
Overview
This is the parent class of any of the visitors that we define in this module. It is used to walk through the tree.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#visit(node) ⇒ Object
15 16 17 |
# File 'lib/syntax_tree/rbs.rb', line 15 def visit(node) node&.accept(self) end |