Parameter

A struct capturing all the properties of a function parameter.

Members

Functions

mixture
string mixture()
Undocumented in source. Be warned that the author may not have intended to support it.
setName
immutable(Parameter) setName(string value)

Set the parameter name.

setStorage
immutable(Parameter) setStorage(immutable(string)[] value)

Return a new Parameter object with the storage attribute set to value.

setType
immutable(Parameter) setType(string value)

Return a new Parameter object with the type attribute set to value.

setUdas
immutable(Parameter) setUdas(immutable(string)[] value)

Return a new Parameter object with the udas attribute set to value.

Variables

name
string name;

Parameter name. Initial value: _i, where i is the position of the parameter.

storage
string[] storage;

Parameter storage classes. Initial value: [__traits(getParameterStorageClasses, fun, i)], where where fun is the refracted function and i is the position of the parameter.

type
string type;

Parameter type. Initial value: std.traits.Parameter!fun[i], where fun is the refracted function and i is the position of the parameter.

udas
string[] udas;

Parameter UDAs. Initial value: [@(bolts.experimental.refraction.ParameterAttribute!(fun,i, j...))], where where fun is the refracted function, i is the position of the parameter, and j... are the positions of the UDAs.

Meta