#include "pt-stmt.h"
Private Attributes | |
std::string * | m_bp_cond |
int | m_column_num |
tree_command * | m_command |
comment_list * | m_comment_list |
tree_expression * | m_expression |
int | m_line_num |
|
inline |
|
inline |
|
delete |
tree_statement::~tree_statement | ( | void | ) |
Definition at line 56 of file pt-stmt.cc.
|
inlinevirtual |
Implements tree.
Definition at line 122 of file pt-stmt.h.
References tree_walker::visit_statement().
Referenced by echo_code(), tree_anon_scopes::visit_statement_list(), and tree_evaluator::visit_statement_list().
std::string tree_statement::bp_cond | ( | void | ) | const |
Definition at line 111 of file pt-stmt.cc.
References tree::bp_cond(), m_command, and m_expression.
Referenced by tree_breakpoint::take_action().
|
inlineinherited |
Definition at line 66 of file pt.h.
References tree::m_column_num.
|
virtual |
Reimplemented from tree.
Definition at line 127 of file pt-stmt.cc.
References tree::column(), m_command, and m_expression.
Referenced by tree_evaluator::execute_user_function(), base_parser::maybe_warn_missing_semi(), base_parser::start_function(), and tree_evaluator::visit_statement().
|
inline |
Definition at line 99 of file pt-stmt.h.
References m_command.
Referenced by tree_anon_scopes::visit_statement(), tree_breakpoint::visit_statement(), tree_evaluator::visit_statement(), tree_print_code::visit_statement(), and tree_walker::visit_statement().
|
inline |
Definition at line 103 of file pt-stmt.h.
References m_comment_list.
Referenced by tree_print_code::visit_statement().
|
virtual |
Reimplemented from tree.
Definition at line 86 of file pt-stmt.cc.
References tree::delete_breakpoint(), m_command, and m_expression.
Referenced by tree_breakpoint::take_action().
void tree_statement::echo_code | ( | const std::string & | prefix | ) |
Definition at line 144 of file pt-stmt.cc.
References accept(), and octave_stdout.
|
inline |
Definition at line 101 of file pt-stmt.h.
References m_expression.
Referenced by bp_table::condition_valid(), tree_evaluator::eval_string(), tree_evaluator::execute_user_function(), base_parser::make_try_command(), base_anonymous_fcn_handle::print_raw(), tree_anon_scopes::visit_statement(), tree_evaluator::visit_statement(), tree_print_code::visit_statement(), tree_walker::visit_statement(), and ctor_analyzer::visit_statement().
bool tree_statement::is_active_breakpoint | ( | tree_evaluator & | tw | ) | const |
Definition at line 103 of file pt-stmt.cc.
References tree::is_active_breakpoint(), m_command, and m_expression.
Referenced by tree_evaluator::do_breakpoint().
bool tree_statement::is_breakpoint | ( | void | ) | const |
Definition at line 95 of file pt-stmt.cc.
References tree::is_breakpoint(), m_command, and m_expression.
Referenced by tree_breakpoint::take_action().
|
inline |
Definition at line 78 of file pt-stmt.h.
References m_command.
Referenced by tree_breakpoint::visit_statement().
bool tree_statement::is_end_of_fcn_or_script | ( | void | ) | const |
Definition at line 152 of file pt-stmt.cc.
References tree_no_op_command::is_end_of_fcn_or_script(), and m_command.
Referenced by tree_evaluator::do_breakpoint().
bool tree_statement::is_end_of_file | ( | void | ) | const |
Definition at line 169 of file pt-stmt.cc.
References tree_no_op_command::is_end_of_file(), and m_command.
|
inline |
Definition at line 80 of file pt-stmt.h.
References m_expression.
Referenced by bp_table::condition_valid(), tree_evaluator::eval_string(), base_parser::maybe_warn_missing_semi(), base_anonymous_fcn_handle::print_raw(), and ctor_analyzer::visit_statement().
|
inline |
Definition at line 105 of file pt-stmt.h.
References m_command, m_comment_list, and m_expression.
Referenced by base_parser::set_stmt_print_flag().
|
inlineinherited |
Definition at line 64 of file pt.h.
References tree::m_line_num.
|
virtual |
Reimplemented from tree.
Definition at line 119 of file pt-stmt.cc.
References tree::line(), m_command, and m_expression.
Referenced by tree_evaluator::execute_user_function(), base_parser::maybe_warn_missing_semi(), base_parser::start_function(), tree_breakpoint::take_action(), tree_breakpoint::visit_statement(), and tree_evaluator::visit_statement().
|
inherited |
Definition at line 62 of file pt.cc.
References tree_evaluator::eval_string(), tree_evaluator::get_interpreter(), interpreter_try(), tree::m_bp_cond, interpreter::recover_from_exception(), and warning().
Referenced by tree::is_active_breakpoint().
|
delete |
bool tree_statement::print_result | ( | void | ) |
Definition at line 71 of file pt-stmt.cc.
References m_expression, and tree_expression::print_result().
Referenced by tree_print_code::visit_statement().
|
virtual |
Reimplemented from tree.
Definition at line 77 of file pt-stmt.cc.
References m_command, m_expression, and tree::set_breakpoint().
Referenced by tree_breakpoint::take_action().
|
inline |
|
inline |
Definition at line 120 of file pt-stmt.h.
References m_expression.
Referenced by base_parser::make_try_command().
void tree_statement::set_location | ( | int | l, |
int | c | ||
) |
Definition at line 135 of file pt-stmt.cc.
References m_command, m_expression, and tree::set_location().
void tree_statement::set_print_flag | ( | bool | print_flag | ) |
Definition at line 64 of file pt-stmt.cc.
References m_expression, and tree_expression::set_print_flag().
Referenced by base_parser::set_stmt_print_flag().
|
inherited |
Definition at line 46 of file pt.cc.
References tree::accept().
Referenced by tree_argument_list::get_arg_names().
|
privateinherited |
Definition at line 123 of file pt.h.
Referenced by tree::bp_cond(), tree::delete_breakpoint(), tree::is_active_breakpoint(), tree::is_breakpoint(), tree::meets_bp_condition(), and tree::set_breakpoint().
|
privateinherited |
Definition at line 120 of file pt.h.
Referenced by tree::column(), and tree::set_location().
|
private |
Definition at line 132 of file pt-stmt.h.
Referenced by bp_cond(), column(), command(), delete_breakpoint(), is_active_breakpoint(), is_breakpoint(), is_command(), is_end_of_fcn_or_script(), is_end_of_file(), is_null_statement(), line(), set_breakpoint(), set_command(), and set_location().
|
private |
Definition at line 138 of file pt-stmt.h.
Referenced by comment_text(), and is_null_statement().
|
private |
Definition at line 135 of file pt-stmt.h.
Referenced by bp_cond(), column(), delete_breakpoint(), expression(), is_active_breakpoint(), is_breakpoint(), is_expression(), is_null_statement(), line(), print_result(), set_breakpoint(), set_expression(), set_location(), and set_print_flag().
|
privateinherited |
Definition at line 119 of file pt.h.
Referenced by tree::line(), and tree::set_location().