Bindgen::Generator::Crystal
Inherits Bindgen::Graph::Visitor < Bindgen::Generator::Base < Reference < Object
Generator for Crystal wrapper and binding code.
Constants
PLATFORM = Graph::Platform::Crystal
Constructors
new(*args)
SourceInstance methods
code_block(*header, &)
Sourcevisit_children(container : Graph::Container)
Visits all children of container. After each child, writes the deferred classes inside container which became writable.
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.
write(node : Graph::Container)
Writes the node to the output file(s). Make sure to call
#begin_section before writing any data.