abstract class Bindgen::Call::Expression
- Bindgen::Call::Expression
- Reference
- Object
Overview
Base-class for Result and Argument.
Direct Known Subclasses
Defined in:
bindgen/call.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#nilable? : Bool
Is this expression nil-able? A type is only nil-able if the wrapped type is an object-type (
Referencein Crystal), and the C++-world accepts this pointer beingnullptr. -
#pointer : Int32
Pointer depth, without the reference "pointer"
-
#reference : Bool
Pass in as reference?
-
#type : Parser::Type
The data this expression originated in.
-
#type_name : String
Type to use for passing
Constructor Detail
def self.new(type : Bindgen::Parser::Type, reference : Bool, pointer : Int32, type_name : String, nilable : Bool)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
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.