diff options
Diffstat (limited to 'gcc/xml.h')
-rw-r--r-- | gcc/xml.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -29,6 +29,7 @@ struct node; struct node_with_children; struct document; struct element; + struct doctypedecl; struct node { @@ -64,6 +65,7 @@ struct node_with_children : public node { void add_child (std::unique_ptr<node> node); void add_text (std::string str); + void add_text_from_pp (pretty_printer &pp); std::vector<std::unique_ptr<node>> m_children; }; @@ -72,6 +74,13 @@ struct document : public node_with_children { void write_as_xml (pretty_printer *pp, int depth, bool indent) const final override; + + std::unique_ptr<doctypedecl> m_doctypedecl; +}; + +struct doctypedecl : public node +{ + // still abstract }; struct element : public node_with_children |