#include "pt-check.h"
Definition at line 32 of file pt-check.h.
tree_checker::tree_checker | ( | void | ) | [inline] |
Definition at line 37 of file pt-check.h.
tree_checker::~tree_checker | ( | void | ) | [inline] |
Definition at line 40 of file pt-check.h.
tree_checker::tree_checker | ( | const tree_checker & | ) | [private] |
void tree_checker::do_decl_command | ( | tree_decl_command & | cmd | ) | [private] |
Definition at line 93 of file pt-check.cc.
References tree_decl_init_list::accept(), and tree_decl_command::initializer_list().
Referenced by visit_global_command(), and visit_static_command().
void tree_checker::gripe | ( | const std::string & | msg, | |
int | line | |||
) | [private] |
Definition at line 555 of file pt-check.cc.
References curr_fcn_file_name, and error().
Referenced by visit_argument_list(), visit_complex_for_command(), visit_simple_assignment(), and visit_simple_for_command().
tree_checker& tree_checker::operator= | ( | const tree_checker & | ) | [private] |
void tree_checker::visit_anon_fcn_handle | ( | tree_anon_fcn_handle & | ) | [virtual] |
Implements tree_walker.
Definition at line 345 of file pt-check.cc.
void tree_checker::visit_argument_list | ( | tree_argument_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 33 of file pt-check.cc.
References octave_base_list< elt_type >::begin(), do_lvalue_check, octave_base_list< elt_type >::end(), gripe(), tree::line(), and tree_expression::lvalue_ok().
void tree_checker::visit_binary_expression | ( | tree_binary_expression & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 50 of file pt-check.cc.
References tree::accept(), tree_binary_expression::lhs(), and tree_binary_expression::rhs().
void tree_checker::visit_break_command | ( | tree_break_command & | ) | [virtual] |
Implements tree_walker.
Definition at line 64 of file pt-check.cc.
void tree_checker::visit_cell | ( | tree_cell & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 306 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_colon_expression | ( | tree_colon_expression & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 69 of file pt-check.cc.
References tree::accept(), tree_colon_expression::base(), tree_colon_expression::increment(), and tree_colon_expression::limit().
void tree_checker::visit_complex_for_command | ( | tree_complex_for_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 169 of file pt-check.cc.
References tree_statement_list::accept(), tree::accept(), tree_argument_list::accept(), tree_complex_for_command::body(), tree_complex_for_command::control_expr(), do_lvalue_check, gripe(), tree_complex_for_command::left_hand_side(), octave_base_list< elt_type >::length(), and tree::line().
void tree_checker::visit_constant | ( | tree_constant & | ) | [virtual] |
Implements tree_walker.
Definition at line 350 of file pt-check.cc.
void tree_checker::visit_continue_command | ( | tree_continue_command & | ) | [virtual] |
Implements tree_walker.
Definition at line 88 of file pt-check.cc.
void tree_checker::visit_decl_elt | ( | tree_decl_elt & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 114 of file pt-check.cc.
References tree::accept(), tree_identifier::accept(), tree_decl_elt::expression(), and tree_decl_elt::ident().
void tree_checker::visit_decl_init_list | ( | tree_decl_init_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 128 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_do_until_command | ( | tree_do_until_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 541 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_while_command::body(), and tree_while_command::condition().
void tree_checker::visit_fcn_handle | ( | tree_fcn_handle & | ) | [virtual] |
Implements tree_walker.
Definition at line 355 of file pt-check.cc.
void tree_checker::visit_function_def | ( | tree_function_def & | fdef | ) | [virtual] |
Implements tree_walker.
Definition at line 218 of file pt-check.cc.
References octave_function::accept(), f, tree_function_def::function(), and octave_value::function_value().
void tree_checker::visit_global_command | ( | tree_global_command & | cmd | ) | [virtual] |
void tree_checker::visit_identifier | ( | tree_identifier & | ) | [virtual] |
Implements tree_walker.
Definition at line 229 of file pt-check.cc.
void tree_checker::visit_if_clause | ( | tree_if_clause & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 234 of file pt-check.cc.
References tree_statement_list::accept(), tree::accept(), tree_if_clause::commands(), and tree_if_clause::condition().
void tree_checker::visit_if_command | ( | tree_if_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 248 of file pt-check.cc.
References tree_if_command_list::accept(), and tree_if_command::cmd_list().
void tree_checker::visit_if_command_list | ( | tree_if_command_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 257 of file pt-check.cc.
References tree_if_clause::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_index_expression | ( | tree_index_expression & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 271 of file pt-check.cc.
References tree_argument_list::accept(), tree::accept(), tree_index_expression::arg_lists(), and tree_index_expression::expression().
void tree_checker::visit_matrix | ( | tree_matrix & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 292 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_multi_assignment | ( | tree_multi_assignment & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 320 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), do_lvalue_check, tree_multi_assignment::left_hand_side(), and tree_multi_assignment::right_hand_side().
void tree_checker::visit_no_op_command | ( | tree_no_op_command & | ) | [virtual] |
Implements tree_walker.
Definition at line 340 of file pt-check.cc.
void tree_checker::visit_octave_user_function | ( | octave_user_function & | fcn | ) | [virtual] |
Implements tree_walker.
Definition at line 209 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_function::body().
void tree_checker::visit_octave_user_script | ( | octave_user_script & | fcn | ) | [virtual] |
Implements tree_walker.
Definition at line 200 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_script::body().
void tree_checker::visit_parameter_list | ( | tree_parameter_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 360 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_postfix_expression | ( | tree_postfix_expression & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 374 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
void tree_checker::visit_prefix_expression | ( | tree_prefix_expression & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 383 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
void tree_checker::visit_return_command | ( | tree_return_command & | ) | [virtual] |
Implements tree_walker.
Definition at line 392 of file pt-check.cc.
void tree_checker::visit_return_list | ( | tree_return_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 397 of file pt-check.cc.
References tree_index_expression::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_simple_assignment | ( | tree_simple_assignment & | expr | ) | [virtual] |
Implements tree_walker.
Definition at line 411 of file pt-check.cc.
References tree::accept(), gripe(), tree_simple_assignment::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_assignment::right_hand_side().
void tree_checker::visit_simple_for_command | ( | tree_simple_for_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 142 of file pt-check.cc.
References tree_statement_list::accept(), tree::accept(), tree_simple_for_command::body(), tree_simple_for_command::control_expr(), gripe(), tree_simple_for_command::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_for_command::maxproc_expr().
void tree_checker::visit_statement | ( | tree_statement & | stmt | ) | [virtual] |
Implements tree_walker.
Definition at line 428 of file pt-check.cc.
References tree::accept(), tree_statement::command(), and tree_statement::expression().
void tree_checker::visit_statement_list | ( | tree_statement_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 444 of file pt-check.cc.
References tree_statement::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_static_command | ( | tree_static_command & | cmd | ) | [virtual] |
void tree_checker::visit_switch_case | ( | tree_switch_case & | cs | ) | [virtual] |
Implements tree_walker.
Definition at line 456 of file pt-check.cc.
References tree_statement_list::accept(), tree::accept(), tree_switch_case::case_label(), and tree_switch_case::commands().
void tree_checker::visit_switch_case_list | ( | tree_switch_case_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 470 of file pt-check.cc.
References tree_switch_case::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
void tree_checker::visit_switch_command | ( | tree_switch_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 484 of file pt-check.cc.
References tree_switch_case_list::accept(), tree::accept(), tree_switch_command::case_list(), and tree_switch_command::switch_value().
void tree_checker::visit_try_catch_command | ( | tree_try_catch_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 498 of file pt-check.cc.
References tree_statement_list::accept(), tree_try_catch_command::body(), and tree_try_catch_command::cleanup().
void tree_checker::visit_unwind_protect_command | ( | tree_unwind_protect_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 513 of file pt-check.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), and tree_unwind_protect_command::cleanup().
void tree_checker::visit_while_command | ( | tree_while_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 527 of file pt-check.cc.
References tree_statement_list::accept(), tree::accept(), tree_while_command::body(), and tree_while_command::condition().
bool tree_checker::do_lvalue_check [private] |
Definition at line 126 of file pt-check.h.
Referenced by visit_argument_list(), visit_complex_for_command(), and visit_multi_assignment().