summaryrefslogtreecommitdiff
path: root/libxsd-frontend/xsd-frontend/traversal/attribute.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libxsd-frontend/xsd-frontend/traversal/attribute.cxx')
-rw-r--r--libxsd-frontend/xsd-frontend/traversal/attribute.cxx48
1 files changed, 48 insertions, 0 deletions
diff --git a/libxsd-frontend/xsd-frontend/traversal/attribute.cxx b/libxsd-frontend/xsd-frontend/traversal/attribute.cxx
new file mode 100644
index 0000000..c051667
--- /dev/null
+++ b/libxsd-frontend/xsd-frontend/traversal/attribute.cxx
@@ -0,0 +1,48 @@
+// file : xsd-frontend/traversal/attribute.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#include <xsd-frontend/traversal/attribute.hxx>
+
+namespace XSDFrontend
+{
+ namespace Traversal
+ {
+ Void Attribute::
+ traverse (Type& a)
+ {
+ pre (a);
+ belongs (a);
+ name (a);
+ post (a);
+ }
+
+ Void Attribute::
+ pre (Type&)
+ {
+ }
+
+ Void Attribute::
+ belongs (Type& a, EdgeDispatcherBase& d)
+ {
+ d.dispatch (a.belongs ());
+ }
+
+ Void Attribute::
+ belongs (Type& a)
+ {
+ belongs (a, *this);
+ }
+
+ Void Attribute::
+ name (Type&)
+ {
+ }
+
+ Void Attribute::
+ post (Type&)
+ {
+ }
+ }
+}