class Bindgen::Processor::CrystalBinding

Overview

Processor to write lib bindings to the functions created by the CppWrapper processor.

Defined in:

bindgen/processor/crystal_binding.cr

Constant Summary

PLATFORM = Graph::Platform::CrystalBinding
VOID_RESULT = Call::Result.new(type: Parser::Type::VOID, type_name: "Void", reference: false, pointer: 0, conversion: nil, nilable: false)

A Call::Result pointing to a Void result.

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::Processor::Base

process(graph : Graph::Container, doc : Parser::Document) process

Constructor methods inherited from class Bindgen::Processor::Base

new(config : Configuration, db : TypeDatabase) new

Instance methods inherited from module Bindgen::Graph::Visitor

visit_alias(alias_name) visit_alias, visit_children(container : Container) visit_children, visit_class(klass) visit_class, visit_constant(constant) visit_constant, visit_enum(enumeration) visit_enum, visit_library(library) visit_library, visit_method(method) visit_method, visit_namespace(ns) visit_namespace, visit_node(node : Node) visit_node, visit_node?(node : Node) visit_node?, visit_platform_specific(specific) visit_platform_specific, visit_struct(structure) visit_struct

Constructor Detail

def self.new(_config, db) #

[View source]

Instance Method Detail

def process(graph : Graph::Container, _doc : Parser::Document) #
Description copied from class Bindgen::Processor::Base

Runs the processor. You may change graph as you see fit.


[View source]
def visit_class(klass) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::Class. The default implementation calls #visit_children to visit all child nodes.


[View source]
def visit_library(library) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::Library. The default implementation calls #visit_children to visit all child nodes.


[View source]
def visit_method(method) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::Method.


[View source]
def visit_platform_specific(specific) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::PlatformSpecific.


[View source]