GCC Middle and Back End API Reference
|
#include <xml.h>
Public Member Functions | |
void | add_child (std::unique_ptr< node > node) |
void | add_text (std::string str) |
void | add_text_from_pp (pretty_printer &pp) |
void | add_comment (std::string str) |
element * | find_child_element (std::string kind) const |
virtual void | write_as_xml (pretty_printer *pp, int depth, bool indent) const =0 |
virtual text * | dyn_cast_text () |
virtual element * | dyn_cast_element () |
void | dump (FILE *out) const |
void DEBUG_FUNCTION | dump () const |
Data Fields | |
std::vector< std::unique_ptr< node > > | m_children |
void xml::node_with_children::add_child | ( | std::unique_ptr< node > | node | ) |
struct node_with_children : public node.
References gcc_assert, and m_children.
Referenced by add_comment(), diagnostics::html_builder::add_graph(), xml::printer::add_raw(), add_text(), xml::printer::append(), xml::printer::push_element(), and diagnostics::html_builder::push_nesting_level().
void xml::node_with_children::add_comment | ( | std::string | str | ) |
References add_child().
void xml::node_with_children::add_text | ( | std::string | str | ) |
References add_child(), and m_children.
Referenced by xml::printer::add_text(), and add_text_from_pp().
void xml::node_with_children::add_text_from_pp | ( | pretty_printer & | pp | ) |
References add_text(), and pp_formatted_text().
Referenced by xml::printer::add_text_from_pp().
|
inlineinherited |
References DEBUG_FUNCTION, and dump().
Referenced by dump().
|
inherited |
struct node.
References pp_flush(), pretty_printer::set_output_stream(), and write_as_xml().
|
inlinevirtualinherited |
Reimplemented in xml::element.
element * xml::node_with_children::find_child_element | ( | std::string | kind | ) | const |
References m_children.
|
pure virtualinherited |
Implemented in diagnostics::html_doctypedecl, xml::comment, xml::document, xml::element, xml::raw, and xml::text.
Referenced by dump().
std::vector<std::unique_ptr<node> > xml::node_with_children::m_children |
Referenced by add_child(), add_text(), find_child_element(), xml::document::write_as_xml(), and xml::element::write_as_xml().