Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Prism::BasicVisitor#visit

visit(node)

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.

See also #visit_all #visit_child_nodes also in 4.0 · 3.4