Parameter

Constructors

this
this(StorageClass storageClass, Type type, Identifier ident, Expression defaultArg)
Undocumented in source.

Members

Aliases

ForeachDg
alias ForeachDg = int delegate(size_t paramidx, Parameter param)
Undocumented in source.

Functions

accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
dyncast
int dyncast()
Undocumented in source. Be warned that the author may not have intended to support it.
isLazyArray
Type isLazyArray()

Determine if parameter is a lazy array of delegates. If so, return the return type of those delegates. If not, return NULL.

syntaxCopy
Parameter syntaxCopy()
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

_foreach
int _foreach(Parameters* parameters, ForeachDg dg, size_t* pn)

Expands tuples in args in depth first order. Calls dg(void *ctx, size_t argidx, Parameter *arg) for each Parameter. If dg returns !=0, stops and returns that value else returns 0. Use this function to avoid the O(N + N^2/2) complexity of calculating dim and calling N times getNth.

arraySyntaxCopy
Parameters* arraySyntaxCopy(Parameters* parameters)
Undocumented in source. Be warned that the author may not have intended to support it.
create
Parameter create(StorageClass storageClass, Type type, Identifier ident, Expression defaultArg)
Undocumented in source. Be warned that the author may not have intended to support it.
dim
size_t dim(Parameters* parameters)

Determine number of arguments, folding in tuples.

getNth
Parameter getNth(Parameters* parameters, size_t nth, size_t* pn)

Get nth Parameter, folding in tuples.

isTPL
int isTPL(Parameters* parameters)

Determine if parameter list is really a template parameter list (i.e. it has auto or alias parameters)

Variables

defaultArg
Expression defaultArg;
Undocumented in source.
ident
Identifier ident;
Undocumented in source.
storageClass
StorageClass storageClass;
Undocumented in source.
type
Type type;
Undocumented in source.

Inherited Members

From RootObject

equals
bool equals(RootObject o)
Undocumented in source. Be warned that the author may not have intended to support it.
compare
int compare(RootObject )
Undocumented in source. Be warned that the author may not have intended to support it.
print
void print()
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.
toBuffer
void toBuffer(OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
dyncast
int dyncast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta