Function

Undocumented in source.

Members

Functions

argumentMixture
string argumentMixture()

Return the argument list as a string.

argumentMixtureArray
const(string)[] argumentMixtureArray()

Return the argument list as an array of strings.

attributeMixture
string attributeMixture()

Return the attribute list as a string.

attributeMixtureArray
string[] attributeMixtureArray()

Return the attribute list as an array of strings.

insertParameters
Function insertParameters(uint index, immutable(Parameter)[] inserted)

Return a new Function object with a parameter attribute containing the same parameters, with new parameters inserted parameters at the specified index.

mixture
string mixture()

Return a string representing the entire function definition or declaration.

parameterListMixtureArray
string[] parameterListMixtureArray()
Undocumented in source. Be warned that the author may not have intended to support it.
setAttributes
immutable(Function) setAttributes(uint value)

Set attributes. Return this.

setBody
immutable(Function) setBody(string value)

Return a new Function object with the body_ attribute set to value.

setIndex
immutable(Function) setIndex(uint value)

Return a new Function object with the index attribute set to value.

setName
immutable(Function) setName(string value)

Return a new Function object with the name attribute set to value.

setParameters
immutable(Function) setParameters(immutable(Parameter)[] value)

Return a new Function object with the parameters attribute set to value.

setReturnType
immutable(Function) setReturnType(string value)

Return a new Function object with the returnType attribute set to value.

setStatic
immutable(Function) setStatic(bool value)

Return a new Function object with the static_ attribute set to value.

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

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

Variables

attributes
ulong attributes;

Function attributes. Initial value: __traits(getAttributes, fun).

body_
string body_;

Function body. Initial value: ;.

index
uint index;

Index of function in a set of overloads. Valid only if Function represents a function (not a function pointer), and was refracted from a module.

localSymbol
string localSymbol;

A string that evaluates to a function symbol.

name
string name;

Function name. Initial value: __traits(identifier, fun).

parameters
Parameter[] parameters;

Function parameters. Initial value: from the refracted function.

returnType
string returnType;

Return type. Initial value: std.traits.ReturnType!fun.

static_
bool static_;

If true, prefix generated function with static. Initial value: true if the refracted function is a static *member* function.

udas
string[] udas;

User defined attributes. Initial value: bolts.experimental.refraction.ParameterAttribute!(fun, parameterIndex..., attributeIndex...).

Meta