abstract class Bindgen::Call::Expression

Overview

Base-class for Result and Argument.

Direct Known Subclasses

Defined in:

bindgen/call.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def nilable? : Bool #

Is this expression nil-able? A type is only nil-able if the wrapped type is an object-type (Reference in Crystal), and the C++-world accepts this pointer being nullptr.


[View source]
def pointer : Int32 #

Pointer depth, without the reference "pointer"


[View source]
def reference : Bool #

Pass in as reference?


[View source]
def type : Parser::Type #

The data this expression originated in.


[View source]
def type_name : String #

Type to use for passing


[View source]