dmd.foreachvar

Utility to visit every variable in an expression.

Members

Functions

foreachExpAndVar
void foreachExpAndVar(Statement s, void delegate(Expression) dgExp, void delegate(VarDeclaration) dgVar)

Transitively walk Statement s, pass Expressions to dgExp(), VarDeclarations to dgVar().

foreachVar
void foreachVar(Expression e, void delegate(VarDeclaration) dgVar)

Visit each Expression in e, and call dgVar() on each variable declared in it.

Meta

Suggestion Box / Bug Report