aboutsummaryrefslogtreecommitdiff
path: root/tests/dump/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dump/driver.cxx')
-rw-r--r--tests/dump/driver.cxx29
1 files changed, 28 insertions, 1 deletions
diff --git a/tests/dump/driver.cxx b/tests/dump/driver.cxx
index cca6249..d9917d3 100644
--- a/tests/dump/driver.cxx
+++ b/tests/dump/driver.cxx
@@ -203,6 +203,11 @@ namespace
wcout << ind << (a.optional () ? "optional" : "required")
<< " attribute " << a.name ();
+ if (a.fixed ())
+ wcout << "==" << a.value ();
+ else if (a.default_ ())
+ wcout << "=" << a.value ();
+
SemanticGraph::Type& t (a.type ());
if (t.named ())
@@ -241,6 +246,11 @@ namespace
{
wcout << "element " << e.name ();
+ if (e.fixed ())
+ wcout << "==" << e.value ();
+ else if (e.default_ ())
+ wcout << "=" << e.value ();
+
SemanticGraph::Type& t (e.type ());
if (t.named ())
@@ -268,7 +278,14 @@ namespace
wcout << ind << "<" << e.annotation ().documentation () << ">"
<< endl;
- wcout << ind << "element " << e.name () << endl;
+ wcout << ind << "element " << e.name ();
+
+ if (e.fixed ())
+ wcout << "==" << e.value ();
+ else if (e.default_ ())
+ wcout << "=" << e.value ();
+
+ wcout << endl;
}
};
@@ -343,6 +360,11 @@ namespace
wcout << ind << "attribute " << a.name ();
+ if (a.fixed ())
+ wcout << "==" << a.value ();
+ else if (a.default_ ())
+ wcout << "=" << a.value ();
+
SemanticGraph::Type& t (a.type ());
if (t.named ())
@@ -372,6 +394,11 @@ namespace
wcout << ind << "element " << e.name ();
+ if (e.fixed ())
+ wcout << "==" << e.value ();
+ else if (e.default_ ())
+ wcout << "=" << e.value ();
+
SemanticGraph::Type& t (e.type ());
if (t.named ())