#include "pt-stmt.h"
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_type > | breakpoints_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) |
|
inline |
|
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().
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().
|
inline |
Definition at line 165 of file pt-stmt.h.
References tree_statement::beg_pos().
std::list< bp_type > tree_statement_list::breakpoints_and_conds | ( | ) |
Definition at line 264 of file pt-stmt.cc.
References accept(), tree_breakpoint::get_cond_list(), tree_breakpoint::get_list(), octave_value_list::length(), and tree_breakpoint::list.
Referenced by bp_table::get_breakpoint_list().
void tree_statement_list::delete_breakpoint | ( | int | line | ) |
Definition at line 232 of file pt-stmt.cc.
References accept(), tree_breakpoint::clear, len, octave_value_list::length(), and list_breakpoints().
Referenced by remove_all_breakpoints(), and bp_table::remove_breakpoints_from_function().
|
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().
|
inline |
|
inline |
comment_list tree_statement_list::leading_comments | ( | ) | const |
Definition at line 205 of file pt-stmt.cc.
References tree_statement::leading_comments().
Referenced by base_parser::make_function(), and base_parser::make_script().
octave_value_list tree_statement_list::list_breakpoints | ( | ) |
Definition at line 254 of file pt-stmt.cc.
References accept(), tree_breakpoint::get_list(), and tree_breakpoint::list.
Referenced by delete_breakpoint(), remove_all_breakpoints(), and bp_table::remove_breakpoints_from_function().
|
inline |
|
inline |
bp_table::bp_lines tree_statement_list::remove_all_breakpoints | ( | event_manager & | evmgr, |
const std::string & | file | ||
) |
Definition at line 312 of file pt-stmt.cc.
References delete_breakpoint(), octave_value_list::length(), list_breakpoints(), and event_manager::update_breakpoint().
Referenced by bp_table::remove_all_breakpoints_from_function().
Definition at line 223 of file pt-stmt.cc.
References accept(), tree_breakpoint::get_line(), and tree_breakpoint::set.
Referenced by add_breakpoint().