class Bindgen::Processor::Inheritance::DiscoverCrystalBody

Overview

Crystal body of the Graph::Class::DISCOVER_METHOD of a class, see #add_discovery_method: returns the Crystal object which constructed the object, see BindgenHelper.crystal_object, if it is one of the class. Else, with a binding fun_name, calls it and wraps the pointer it returns in the class it numbers, one of descendants, or in the class itself.

Defined in:

bindgen/processor/inheritance.cr

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::Call::Body

to_code(call : Call, platform : Graph::Platform) : String to_code

Constructor Detail

def self.new(db : TypeDatabase, fun_name : String | Nil, klass : Graph::Class, descendants : Array(Graph::Class)) #

[View source]

Instance Method Detail

def to_code(call : Call, platform : Graph::Platform) : String #
Description copied from class Bindgen::Call::Body

Will be called by a Generator later on, passing in the call and the target platform.


[View source]