GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_statement_list Class Reference

#include "pt-stmt.h"

Inheritance diagram for tree_statement_list:

Public Member Functions

 tree_statement_list ()
 
 tree_statement_list (tree_statement *s)
 
 ~tree_statement_list ()
 
void accept (tree_walker &tw)
 
bp_table::bp_lines add_breakpoint (event_manager &evmgr, const std::string &file, const bp_table::bp_lines &lines, const std::string &condition)
 
filepos beg_pos () const
 
std::list< bp_typebreakpoints_and_conds ()
 
void delete_breakpoint (int line)
 
filepos end_pos () const
 
bool is_anon_function_body () const
 
bool is_function_body () const
 
bool is_script_body () const
 
comment_list leading_comments () const
 
octave_value_list list_breakpoints ()
 
void mark_as_anon_function_body ()
 
void mark_as_function_body ()
 
void mark_as_script_body ()
 
bp_table::bp_lines remove_all_breakpoints (event_manager &evmgr, const std::string &file)
 
int set_breakpoint (int line, const std::string &condition)
 

Detailed Description

Definition at line 141 of file pt-stmt.h.

Constructor & Destructor Documentation

◆ tree_statement_list() [1/2]

tree_statement_list::tree_statement_list ( )
inline

Definition at line 145 of file pt-stmt.h.

◆ tree_statement_list() [2/2]

tree_statement_list::tree_statement_list ( tree_statement s)
inline

Definition at line 149 of file pt-stmt.h.

◆ ~tree_statement_list()

tree_statement_list::~tree_statement_list ( )
inline

Definition at line 155 of file pt-stmt.h.

Member Function Documentation

◆ accept()

void tree_statement_list::accept ( tree_walker tw)
inline

Definition at line 213 of file pt-stmt.h.

References tree_walker::visit_statement_list().

Referenced by breakpoints_and_conds(), delete_breakpoint(), tree_evaluator::do_unwind_protect_cleanup_code(), tree_evaluator::execute_user_function(), tree_evaluator::execute_user_script(), base_parser::finish_input(), list_breakpoints(), set_breakpoint(), tree_breakpoint::visit_complex_for_command(), tree_checker::visit_complex_for_command(), tree_evaluator::visit_complex_for_command(), tree_print_code::visit_complex_for_command(), tree_walker::visit_complex_for_command(), tree_breakpoint::visit_do_until_command(), tree_evaluator::visit_do_until_command(), tree_print_code::visit_do_until_command(), tree_walker::visit_do_until_command(), tree_print_code::visit_if_clause(), tree_walker::visit_if_clause(), tree_breakpoint::visit_if_command_list(), tree_evaluator::visit_if_command_list(), tree_print_code::visit_octave_user_function(), tree_walker::visit_octave_user_function(), tree_print_code::visit_octave_user_script(), tree_walker::visit_octave_user_script(), tree_breakpoint::visit_simple_for_command(), tree_checker::visit_simple_for_command(), tree_evaluator::visit_simple_for_command(), tree_print_code::visit_simple_for_command(), tree_walker::visit_simple_for_command(), tree_evaluator::visit_spmd_command(), tree_print_code::visit_spmd_command(), tree_walker::visit_spmd_command(), tree_print_code::visit_switch_case(), tree_walker::visit_switch_case(), tree_breakpoint::visit_switch_case_list(), tree_evaluator::visit_switch_command(), tree_breakpoint::visit_try_catch_command(), tree_checker::visit_try_catch_command(), tree_evaluator::visit_try_catch_command(), tree_print_code::visit_try_catch_command(), tree_walker::visit_try_catch_command(), tree_breakpoint::visit_unwind_protect_command(), tree_evaluator::visit_unwind_protect_command(), tree_print_code::visit_unwind_protect_command(), tree_walker::visit_unwind_protect_command(), tree_breakpoint::visit_while_command(), tree_evaluator::visit_while_command(), tree_print_code::visit_while_command(), and tree_walker::visit_while_command().

◆ add_breakpoint()

bp_table::bp_lines tree_statement_list::add_breakpoint ( event_manager evmgr,
const std::string &  file,
const bp_table::bp_lines lines,
const std::string &  condition 
)

Definition at line 288 of file pt-stmt.cc.

References set_breakpoint(), and event_manager::update_breakpoint().

◆ beg_pos()

filepos tree_statement_list::beg_pos ( ) const
inline

Definition at line 165 of file pt-stmt.h.

References tree_statement::beg_pos().

◆ breakpoints_and_conds()

std::list< bp_type > tree_statement_list::breakpoints_and_conds ( )

◆ delete_breakpoint()

void tree_statement_list::delete_breakpoint ( int  line)

◆ end_pos()

filepos tree_statement_list::end_pos ( ) const
inline

Definition at line 174 of file pt-stmt.h.

References tree_statement::end_pos().

Referenced by tree_if_clause::end_pos(), and tree_switch_case::end_pos().

◆ is_anon_function_body()

bool tree_statement_list::is_anon_function_body ( ) const
inline

Definition at line 191 of file pt-stmt.h.

◆ is_function_body()

bool tree_statement_list::is_function_body ( ) const
inline

Definition at line 189 of file pt-stmt.h.

◆ is_script_body()

bool tree_statement_list::is_script_body ( ) const
inline

Definition at line 193 of file pt-stmt.h.

◆ leading_comments()

comment_list tree_statement_list::leading_comments ( ) const

◆ list_breakpoints()

octave_value_list tree_statement_list::list_breakpoints ( )

◆ mark_as_anon_function_body()

void tree_statement_list::mark_as_anon_function_body ( )
inline

Definition at line 185 of file pt-stmt.h.

◆ mark_as_function_body()

void tree_statement_list::mark_as_function_body ( )
inline

Definition at line 183 of file pt-stmt.h.

◆ mark_as_script_body()

void tree_statement_list::mark_as_script_body ( )
inline

Definition at line 187 of file pt-stmt.h.

◆ remove_all_breakpoints()

bp_table::bp_lines tree_statement_list::remove_all_breakpoints ( event_manager evmgr,
const std::string &  file 
)

◆ set_breakpoint()

int tree_statement_list::set_breakpoint ( int  line,
const std::string &  condition 
)

Definition at line 223 of file pt-stmt.cc.

References accept(), tree_breakpoint::get_line(), and tree_breakpoint::set.

Referenced by add_breakpoint().


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