Bindgen::Crystal::Argument
Argument naming logic. This is not a struct.
Constructors
new(db : TypeDatabase)
SourceInstance methods
myself(klass_type : Parser::Type) : Call::Argument
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.
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.
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.
self(klass_type : Parser::Type) : Call::Argument
Returns the _self_ argument for the method, used in bindings.