GCC Middle and Back End API Reference
dot::stmt_list Struct Reference

#include <graphviz.h>

Inheritance diagram for dot::stmt_list:
Collaboration diagram for dot::stmt_list:

Public Member Functions

void print (writer &w) const final override
void add_stmt (std::unique_ptr< stmt > s)
void add_edge (node_id src_id, node_id dst_id)
void add_attr (id key, id value)
void dump () const

Data Fields

std::vector< std::unique_ptr< stmt > > m_stmts

Detailed Description

stmt_list : [ stmt [ ';' ] stmt_list ]

Member Function Documentation

◆ add_attr()

void dot::stmt_list::add_attr ( id key,
id value )

References add_stmt().

◆ add_edge()

void dot::stmt_list::add_edge ( node_id src_id,
node_id dst_id )

References m_stmts.

◆ add_stmt()

void dot::stmt_list::add_stmt ( std::unique_ptr< stmt > s)
inline

References m_stmts, and dot::s.

Referenced by add_attr(), and state_diagram::on_input_state_node().

◆ dump()

void dot::ast_node::dump ( ) const
inherited

◆ print()

void dot::stmt_list::print ( writer & w) const
finaloverridevirtual

Implements dot::ast_node.

References m_stmts, dot::stmt::print(), and dot::w.

Field Documentation

◆ m_stmts

std::vector<std::unique_ptr<stmt> > dot::stmt_list::m_stmts

Referenced by add_edge(), add_stmt(), and print().


The documentation for this struct was generated from the following files: