#include <visitor.h>
|
virtual void | preDispatch (const Erased &, int) |
|
auto | dispatch (position_t &i) |
|
auto | dispatch (const_position_t &i) |
|
auto | dispatch (Erased *n) |
|
auto | dispatch (const Erased &n) |
|
auto | walk (const Erased &root) |
|
auto | walk (Erased *root) |
|
|
static const Order | order_ = order |
|
template<typename Result, typename Dispatcher, typename Erased, Order order>
class hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
AST visitor.
- Template Parameters
-
Result | type the dispatch methods (and hence the visitor) returns |
Dispatcher | class definining dispatch methods |
Erased | type-erased class to dispatch on |
order | order of iteration |
◆ dispatch() [1/4]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Execute matching dispatch methods for a single node.
◆ dispatch() [2/4]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Execute matching dispatch methods for a single node.
◆ dispatch() [3/4]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Execute matching dispatch methods for a single node.
This method takes just the node itself and operates as it were the root of an AST.
◆ dispatch() [4/4]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Execute matching dispatch methods for a single node.
This method takes just the node itself and operates as it were the root of an AST.
◆ walk() [1/2]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Iterate over AST and Execute matching dispatch methods for each node.
This method operates on a constant AST, and the dispatcher cannot modify any nodes.
- Note
- The returned view operates on referneces to the the AST passed in, so make sure that stays around as long as necessary.
◆ walk() [2/2]
template<typename Result, typename Dispatcher, typename Erased, Order order>
Iterate over AST and Execute matching dispatch methods for each node.
This method operates on a non-constant AST, and the dispatcher may modify nodes.
- Note
- The returned view operates on referneces to the the AST passed in, so make sure that stays around as long as necessary.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/spicy-docs/checkouts/v1.2.1/hilti/toolchain/include/base/visitor.h