#include "pt-stmt.h"
Public Member Functions | |
tree_statement () | |
tree_statement (tree_command *c, comment_list *cl) | |
tree_statement (tree_expression *e, comment_list *cl) | |
~tree_statement () | |
void | accept (tree_walker &tw) |
std::string | bp_cond () const |
int | column () const |
tree_command * | command () |
comment_list * | comment_text () |
void | delete_breakpoint () |
void | echo_code (const std::string &prefix) |
tree_expression * | expression () |
bool | is_active_breakpoint (tree_evaluator &tw) const |
bool | is_breakpoint () const |
bool | is_command () const |
bool | is_end_of_fcn_or_script () const |
bool | is_end_of_file () const |
bool | is_expression () const |
bool | is_null_statement () const |
int | line () const |
bool | print_result () |
void | set_breakpoint (const std::string &condition) |
void | set_command (tree_command *c) |
void | set_expression (tree_expression *e) |
void | set_location (int l, int c) |
void | set_print_flag (bool print_flag) |
Public Member Functions inherited from tree | |
tree (int l=-1, int c=-1) | |
virtual | ~tree ()=default |
const std::string | bp_cond () const |
void | column (int c) |
bool | is_active_breakpoint (tree_evaluator &tw) const |
bool | is_breakpoint () const |
void | line (int l) |
bool | meets_bp_condition (tree_evaluator &tw) const |
void | set_location (int l, int c) |
std::string | str_print_code () |
|
inline |
|
inline |
tree_statement::~tree_statement | ( | ) |
Definition at line 56 of file pt-stmt.cc.
|
inlinevirtual |
Implements tree.
Definition at line 118 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 | ( | ) | const |
Definition at line 111 of file pt-stmt.cc.
References tree::bp_cond().
|
virtual |
Reimplemented from tree.
Definition at line 127 of file pt-stmt.cc.
References tree::column().
Referenced by base_parser::start_function(), and tree_evaluator::visit_statement().
|
inline |
Definition at line 95 of file pt-stmt.h.
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 99 of file pt-stmt.h.
Referenced by base_parser::make_script(), and tree_print_code::visit_statement().
|
virtual |
Reimplemented from tree.
Definition at line 86 of file pt-stmt.cc.
References tree::delete_breakpoint().
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 97 of file pt-stmt.h.
Referenced by bp_table::condition_valid(), tree_evaluator::eval_string(), base_parser::make_try_command(), tree_anon_scopes::visit_statement(), tree_evaluator::visit_statement(), tree_print_code::visit_statement(), and tree_walker::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().
bool tree_statement::is_breakpoint | ( | ) | const |
Definition at line 95 of file pt-stmt.cc.
References tree::is_breakpoint().
|
inline |
Definition at line 74 of file pt-stmt.h.
Referenced by tree_breakpoint::visit_statement().
bool tree_statement::is_end_of_fcn_or_script | ( | ) | const |
Definition at line 152 of file pt-stmt.cc.
References tree_no_op_command::is_end_of_fcn_or_script().
bool tree_statement::is_end_of_file | ( | ) | const |
Definition at line 169 of file pt-stmt.cc.
References tree_no_op_command::is_end_of_file().
|
inline |
Definition at line 76 of file pt-stmt.h.
Referenced by bp_table::condition_valid(), and tree_evaluator::eval_string().
|
inline |
Definition at line 101 of file pt-stmt.h.
Referenced by base_parser::set_stmt_print_flag().
|
virtual |
Reimplemented from tree.
Definition at line 119 of file pt-stmt.cc.
References tree::line().
Referenced by base_parser::start_function(), tree_breakpoint::visit_statement(), and tree_evaluator::visit_statement().
bool tree_statement::print_result | ( | ) |
Definition at line 71 of file pt-stmt.cc.
References 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 tree::set_breakpoint().
|
inline |
|
inline |
Definition at line 116 of file pt-stmt.h.
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 tree::set_location().
void tree_statement::set_print_flag | ( | bool | print_flag | ) |
Definition at line 64 of file pt-stmt.cc.
References tree_expression::set_print_flag().
Referenced by base_parser::set_stmt_print_flag().