GCC Middle and Back End API Reference
|
#include <xml.h>
Public Member Functions | |
void | write_as_xml (pretty_printer *pp, int depth, bool indent) const final override |
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 text * | dyn_cast_text () |
virtual element * | dyn_cast_element () |
void | dump (FILE *out) const |
void DEBUG_FUNCTION | dump () const |
Data Fields | |
std::unique_ptr< doctypedecl > | m_doctypedecl |
std::vector< std::unique_ptr< node > > | m_children |
|
inherited |
struct node_with_children : public node.
References gcc_assert, and m_children.
Referenced by add_comment(), xml::printer::add_raw(), add_text(), xml::printer::append(), xml::printer::push_element(), and html_builder::push_nesting_level().
|
inherited |
References add_child().
|
inherited |
References add_child(), and m_children.
Referenced by xml::printer::add_text(), and add_text_from_pp().
|
inherited |
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.
|
inherited |
References m_children.
Referenced by state_diagram::on_xml_node(), and state_diagram::state_diagram().
|
finaloverridevirtual |
struct document : public node_with_children.
Implements xml::node.
References xml::node_with_children::m_children, m_doctypedecl, and pp_string().
|
inherited |
std::unique_ptr<doctypedecl> xml::document::m_doctypedecl |
Referenced by write_as_xml().