instance method
Prism::BasicVisitor#visit
visit(node)
lib/prism/visitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/visitor.rb, line 20
def visit(node)
# @type self: _Visitor
node&.accept(self)
end
Calls accept on the given node if it is not nil, which in turn should call back into this visitor by calling the appropriate visit_* method.