diff options
Diffstat (limited to 'cli/traversal/unit.cxx')
-rw-r--r-- | cli/traversal/unit.cxx | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cli/traversal/unit.cxx b/cli/traversal/unit.cxx new file mode 100644 index 0000000..32b2e0d --- /dev/null +++ b/cli/traversal/unit.cxx @@ -0,0 +1,47 @@ +// file : cli/traversal/unit.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include <traversal/unit.hxx> + +namespace traversal +{ + // cxx_includes + // + void cxx_includes:: + traverse (type& e) + { + dispatch (e.includee ()); + } + + // cli_includes + // + void cli_includes:: + traverse (type& e) + { + dispatch (e.includee ()); + } + + // cli_unit + // + void cli_unit:: + traverse (type& u) + { + pre (u); + iterate_and_dispatch ( + u.includes_begin (), u.includes_end (), edge_traverser ()); + names (u); + post (u); + } + + void cli_unit:: + pre (type&) + { + } + + void cli_unit:: + post (type&) + { + } +} |