dmd.foreachvar
Utility to visit every variable in an expression.
License
Source: foreachvar.d
Documentation: https://dlang.org/phobos/dmd_foreachvar.html
-
Declaration
void
foreachVar
(Expressione
, void delegate(VarDeclaration)dgVar
);Visit each Expression in
e
, and calldgVar
() on each variable declared in it.Parameters
Expression
e
expression tree to visit
void delegate(VarDeclaration)
dgVar
call when a variable is declared
-
Declaration
void
foreachExpAndVar
(Statements
, void delegate(Expression)dgExp
, void delegate(VarDeclaration)dgVar
);Transitively walk Statement
s
, pass Expressions todgExp
(), VarDeclarations todgVar
().Parameters
Statement
s
Statement to traverse
void delegate(Expression)
dgExp
delegate to pass found Expressions to
void delegate(VarDeclaration)
dgVar
delegate to pass found VarDeclarations to