summaryrefslogtreecommitdiff
path: root/cli/traversal/class.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-05 16:29:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-05 16:29:23 +0200
commit4974b4763bd60eb875f93a71dbe2fe82ecfed9fc (patch)
tree9353fb3fec3fa5f77f1faaf6da8185e3d006e7ba /cli/traversal/class.cxx
parente2299f6d95ba3264072d6ddc49f153ad73fd9d24 (diff)
Add semantic graph and traversal mechanism
The parser now builds the semantic graph.
Diffstat (limited to 'cli/traversal/class.cxx')
-rw-r--r--cli/traversal/class.cxx27
1 files changed, 27 insertions, 0 deletions
diff --git a/cli/traversal/class.cxx b/cli/traversal/class.cxx
new file mode 100644
index 0000000..54af3e1
--- /dev/null
+++ b/cli/traversal/class.cxx
@@ -0,0 +1,27 @@
+// file : cli/traversal/class.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include <traversal/class.hxx>
+
+namespace traversal
+{
+ void class_::
+ traverse (type& c)
+ {
+ pre (c);
+ names (c);
+ post (c);
+ }
+
+ void class_::
+ pre (type&)
+ {
+ }
+
+ void class_::
+ post (type&)
+ {
+ }
+}