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.crConstructors
Instance Method Summary
-
#to_code(call : Call, platform : Graph::Platform) : String
Will be called by a
Generatorlater on, passing in the call and the target platform.
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))
#
Instance Method Detail
Description copied from class Bindgen::Call::Body
Will be called by a Generator later on, passing in the call and the
target platform.