PostorderStatementVisitor

A Statement tree walker that will visit each Statement s in the tree, in depth-first evaluation order, and call fp(s,param) on it. fp() signals whether the walking continues with its return value:

Constructors

this
this(StoppableVisitor v)
Undocumented in source.

Members

Aliases

visit
alias visit = typeof(super).visit
Undocumented in source.

Functions

applyTo
bool applyTo(Statement s)
Undocumented in source. Be warned that the author may not have intended to support it.
doCond
bool doCond(Statement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(Statement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(PeelStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(CompoundStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(UnrolledLoopStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ScopeStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(WhileStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(DoStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ForStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ForeachStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ForeachRangeStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(IfStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(PragmaStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(SwitchStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(CaseStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(DefaultStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(SynchronizedStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(WithStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TryCatchStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(TryFinallyStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(ScopeGuardStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(DebugStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.
visit
void visit(LabelStatement s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

v
StoppableVisitor v;
Undocumented in source.

Inherited Members

From StoppableVisitor

visit
alias visit = Visitor.visit
Undocumented in source.
stop
bool stop;
Undocumented in source.

Return Value

0 continue 1 done It's a bit slower than using virtual functions, but more encapsulated and less brittle. Creating an iterator for this would be much more complex.

Meta