Struct Parameter
A struct capturing all the properties of a function parameter.
struct Parameter
;
Fields
Name | Type | Description |
---|---|---|
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 , 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
Name | Description |
---|---|
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 .
|