struct Bindgen::Crystal::Typename
- Bindgen::Crystal::Typename
- Struct
- Value
- Object
Overview
Functionality to get typenames of a Parser::Type
in Crystal wrapper and
binding code.
Defined in:
bindgen/crystal/typename.crConstructors
Class Method Summary
Instance Method Summary
-
#binding(type : Parser::Type)
The type-name of type for use in a binding.
-
#full(result : Call::Expression)
Returns the full Crystal type-name of result.
- #logger
-
#qualified(type_name : String, in_lib : Bool) : String
Returns the qualified type-name of type_name from the output module.
-
#wrapper(type : Parser::Type)
The type-name of type for use in a wrapper.
Constructor Detail
Class Method Detail
Instance Method Detail
def qualified(type_name : String, in_lib : Bool) : String
#
Returns the qualified type-name of type_name from the output module.
If in_lib is true
, the type_name is stored in lib Binding
. Else
it can is defined outside Binding, and thus doesn't need this prefix.
def wrapper(type : Parser::Type)
#
The type-name of type for use in a wrapper.
The returned tuple contains the name first, and secondly, if the
type shall be looked-up in the lib Binding
(= true
), or not.