diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-08 14:04:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-08 14:04:58 +0200 |
commit | 448760cbdb8f1ee1f3eb3559c7b05e7a61e37a88 (patch) | |
tree | 02c404a950281d7af209ee3f786e8abe13d4565f /tests/dump/driver.cxx | |
parent | 4bbabb3f78ab943c1fecbed08b1920db9609bc34 (diff) |
Resolve namespace for default/fixed values of QName type
Diffstat (limited to 'tests/dump/driver.cxx')
-rw-r--r-- | tests/dump/driver.cxx | 29 |
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 ()) |