diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-30 10:18:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-30 10:18:53 +0200 |
commit | 5005d4d4bd444eed25e3d60bef6ced160a84bb5b (patch) | |
tree | 99d73f8d5d65d5e421390d4bf5240873e300dc40 /xsd-frontend/parser.cxx | |
parent | d3f5ac5a3a504a08d91da884edbc28b3e5204429 (diff) |
Support for abstract complex types
Diffstat (limited to 'xsd-frontend/parser.cxx')
-rw-r--r-- | xsd-frontend/parser.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xsd-frontend/parser.cxx b/xsd-frontend/parser.cxx index 6b582ab..6a37475 100644 --- a/xsd-frontend/parser.cxx +++ b/xsd-frontend/parser.cxx @@ -3148,7 +3148,10 @@ namespace XSDFrontend pop_scope (); else { - Complex& node (s_->new_node<Complex> (file (), t.line (), t.column ())); + // Really a simple type so not abstract/mixed checks. + // + Complex& node (s_->new_node<Complex> ( + file (), t.line (), t.column (), false)); if (base_type) restricts = &s_->new_edge<Restricts> (node, *base_type); @@ -3202,7 +3205,11 @@ namespace XSDFrontend { Type* r (0); - Complex& node (s_->new_node<Complex> (file (), t.line (), t.column ())); + String abs_s (trim (t["abstract"])); + bool abs (abs_s == L"true" || abs_s == L"1"); + + Complex& node (s_->new_node<Complex> ( + file (), t.line (), t.column (), abs)); if (String m = trim (t["mixed"])) node.mixed_p (m == L"true" || m == L"1"); |