diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-08 14:51:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-27 11:38:53 +0300 |
commit | 720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch) | |
tree | 9725f3d1f42ec90fde84520f49647edea013ce5e /cli/cli/traversal/class.hxx | |
parent | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff) |
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration
variable.
Diffstat (limited to 'cli/cli/traversal/class.hxx')
-rw-r--r-- | cli/cli/traversal/class.hxx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cli/cli/traversal/class.hxx b/cli/cli/traversal/class.hxx new file mode 100644 index 0000000..38cbefc --- /dev/null +++ b/cli/cli/traversal/class.hxx @@ -0,0 +1,41 @@ +// file : cli/traversal/class.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_TRAVERSAL_CLASS_HXX +#define CLI_TRAVERSAL_CLASS_HXX + +#include <cli/traversal/elements.hxx> +#include <cli/semantics/class.hxx> + +namespace traversal +{ + struct inherits: edge<semantics::inherits> + { + inherits () {} + inherits (node_dispatcher& n) {node_traverser (n);} + + virtual void + traverse (type&); + }; + + struct class_: scope_template<semantics::class_> + { + virtual void + traverse (type&); + + virtual void + pre (type&); + + virtual void + inherits (type&); + + virtual void + inherits (type&, edge_dispatcher&); + + virtual void + post (type&); + }; +} + +#endif // CLI_TRAVERSAL_CLASS_HXX |