struct

Bindgen::Crystal::Argument

Inherits Struct < Value < Object

Argument naming logic. This is not a struct.

Constructors

new(db : TypeDatabase)
Source

Instance methods

myself(klass_type : Parser::Type) : Call::Argument

Returns a @myself argument, used in bindings inside superclass wrapper structs.

Source
name(name : String, idx) : String

Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.

Source
name(argument : Call::Argument, idx)

Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.

Source
name(argument : Parser::Argument, idx)

Helper to get a non-colliding argument name. Makes sure that the name doesn't collide with a Crystal keyword.

Source
self(klass_type : Parser::Type) : Call::Argument

Returns the _self_ argument for the method, used in bindings.

Source