W3cubDocs

/D

dmd.sapply

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
sparse.d
Documentation
https://dlang.org/phobos/dmd_sapply.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/sapply.d
class PostorderStatementVisitor: dmd.visitor.StoppableVisitor;

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:

Returns:
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.

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_sapply.html