class Bindgen::Call::Result

Overview

Call result type configuration.

Direct Known Subclasses

Defined in:

bindgen/call.cr

Constructors

Instance Method Summary

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

==(other : self) ==, hash(hasher) hash, nilable? : Bool nilable?, pointer : Int32 pointer, reference : Bool reference, type : Parser::Type type, type_name : String type_name

Constructor methods inherited from class Bindgen::Call::Expression

new(type : Bindgen::Parser::Type, reference : Bool, pointer : Int32, type_name : String, nilable : Bool) new

Constructor Detail

def self.new(type, type_name, reference, pointer, conversion : Bindgen::Template::Base = Template::None.new, nilable = false) #

[View source]

Instance Method Detail

def apply_conversion(code : String) : String #

Applies the result's conversion template to a piece of code.


[View source]
def conversion : Template::Base #

Conversion template to get the data out of the method, ready to be returned back.


[View source]
def to_argument(name : String, default = nil) : Argument #

Converts the result into an argument of name.


[View source]