struct Bindgen::Crystal::Argument
- Bindgen::Crystal::Argument
- Struct
- Value
- Object
Overview
Argument naming logic. This is not a struct
.
Defined in:
bindgen/crystal/argument.crConstructors
Instance Method Summary
-
#myself(klass_type : Parser::Type) : Call::Argument
Returns a
@myself
argument, used in bindings inside superclass wrapper structs. -
#name(name : String, idx) : String
Helper to get a non-colliding argument name.
-
#name(argument : Call::Argument, idx)
Helper to get a non-colliding argument name.
-
#name(argument : Parser::Argument, idx)
Helper to get a non-colliding argument name.
-
#self(klass_type : Parser::Type) : Call::Argument
Returns the
_self_
argument for the method, used in bindings.
Constructor Detail
Instance Method Detail
Returns a @myself
argument, used in bindings inside superclass
wrapper structs.
Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.
Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.
Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.
Returns the _self_
argument for the method, used in bindings.