summaryrefslogtreecommitdiff
path: root/cli/traversal/option.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-08 14:51:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:38:53 +0300
commit720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch)
tree9725f3d1f42ec90fde84520f49647edea013ce5e /cli/traversal/option.hxx
parent3183f3bb927a90783ae0aeaf190a0919377aabe4 (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/traversal/option.hxx')
-rw-r--r--cli/traversal/option.hxx74
1 files changed, 0 insertions, 74 deletions
diff --git a/cli/traversal/option.hxx b/cli/traversal/option.hxx
deleted file mode 100644
index e11fa21..0000000
--- a/cli/traversal/option.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-// file : cli/traversal/option.hxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CLI_TRAVERSAL_OPTION_HXX
-#define CLI_TRAVERSAL_OPTION_HXX
-
-#include <cli/traversal/elements.hxx>
-#include <cli/semantics/option.hxx>
-
-namespace traversal
-{
- struct belongs: edge<semantics::belongs>
- {
- belongs ()
- {
- }
-
- belongs (node_dispatcher& n)
- {
- node_traverser (n);
- }
-
- virtual void
- traverse (type&);
- };
-
- struct initialized: edge<semantics::initialized>
- {
- initialized ()
- {
- }
-
- initialized (node_dispatcher& n)
- {
- node_traverser (n);
- }
-
- virtual void
- traverse (type&);
- };
-
- struct option: node<semantics::option>
- {
- virtual void
- traverse (type&);
-
- virtual void
- pre (type&);
-
- virtual void
- belongs (type&);
-
- virtual void
- initialized (type&);
-
- virtual void
- post (type&);
-
- void
- belongs (type& o, edge_dispatcher& d)
- {
- d.dispatch (o.belongs ());
- }
-
- void
- initialized (type& o, edge_dispatcher& d)
- {
- d.dispatch (o.initialized ());
- }
- };
-}
-
-#endif // CLI_TRAVERSAL_OPTION_HXX