Class: SyntaxTree::Visitor

Inherits:
BasicVisitor show all
Defined in:
lib/syntax_tree/visitor.rb,
lib/syntax_tree/visitor/json_visitor.rb,
lib/syntax_tree/visitor/field_visitor.rb,
lib/syntax_tree/visitor/match_visitor.rb,
lib/syntax_tree/visitor/pretty_print_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

LanguageServer::InlayHints

Defined Under Namespace

Classes: FieldVisitor, JSONVisitor, MatchVisitor, PrettyPrintVisitor

Method Summary

Methods inherited from BasicVisitor

#visit, #visit_all, #visit_child_nodes, visit_method, visit_methods