Struct Parameter

A struct capturing all the properties of a function parameter.

struct Parameter ;

Fields

NameTypeDescription
name immutable(char[])Parameter name. Initial value: _i, where i is the position of the parameter.
storageClasses immutable(char[][])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 immutable(char[])Parameter type. Initial value: std.traits.Parameter!fun[i], where fun is the refracted function and i is the position of the parameter.
udas immutable(char[][])Parameter UDAs. Initial value: [@(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.

Methods

NameDescription
withName (value) Return a new Parameter object with the name attribute set to value.
withStorageClasses (value) Return a new Parameter object with the storageClasses attribute set to value.
withType (value) Return a new Parameter object with the type attribute set to value.
withUdas (value) Return a new Parameter object with the udas attribute set to value.