Bindgen::Graph::Visitor
A Graph::Node visitor module. Use #visit_node as entry-point, and
override the remaining #visit_X methods as you require.
Instance methods
visit_class(klass)
Visits a Graph::Class. The default implementation calls
#visit_children to visit all child nodes.
visit_library(library)
Visits a Graph::Library. The default implementation calls
#visit_children to visit all child nodes.
visit_namespace(ns)
Visits a Graph::Namespace. The default implementation calls
#visit_children to visit all child nodes.
visit_node(node : Node)
Visits node, calling out to the correct handler method. Certain nodes
can be ignored by overriding #visit_node? and returning false from
there.
visit_node?(node : Node)
Checks if node shall be visited. Can be overriden in the host class to only visit specific nodes.
See Generator::Base#visit_node? for an example.