#include "pt-check.h"
Private Member Functions | |
OCTAVE_NORETURN void | errmsg (const std::string &msg, int line) |
Private Attributes | |
bool | m_do_lvalue_check |
std::string | m_file_name |
Definition at line 41 of file pt-check.h.
|
inline |
Definition at line 45 of file pt-check.h.
|
delete |
|
default |
|
private |
Definition at line 173 of file pt-check.cc.
References error(), and m_file_name.
Referenced by visit_argument_list(), visit_complex_for_command(), visit_simple_assignment(), visit_simple_for_command(), and visit_try_catch_command().
|
delete |
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, octave::tree_anon_scopes, and octave::ctor_analyzer.
Definition at line 34 of file pt-walk.cc.
Referenced by octave::tree_anon_fcn_handle::accept().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 38 of file pt-check.cc.
References octave::base_list< elt_type >::begin(), octave::base_list< elt_type >::end(), errmsg(), octave::tree::line(), octave::tree_expression::lvalue_ok(), and m_do_lvalue_check.
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 52 of file pt-walk.cc.
References octave::tree::accept(), octave::tree_binary_expression::lhs(), and octave::tree_binary_expression::rhs().
Referenced by octave::tree_binary_expression::accept(), octave::tree_walker::visit_boolean_expression(), and octave::tree_walker::visit_compound_binary_expression().
|
virtualinherited |
Reimplemented in octave::jit_convert, and octave::tree_evaluator.
Definition at line 65 of file pt-walk.cc.
References octave::tree_walker::visit_binary_expression().
Referenced by octave::tree_boolean_expression::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 75 of file pt-walk.cc.
Referenced by octave::tree_break_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 347 of file pt-walk.cc.
References octave::tree_argument_list::accept(), octave::base_list< elt_type >::begin(), and octave::base_list< elt_type >::end().
Referenced by octave::tree_cell::accept().
|
virtualinherited |
Definition at line 606 of file pt-walk.cc.
Referenced by octave::tree_classdef::accept().
|
virtualinherited |
Definition at line 526 of file pt-walk.cc.
Referenced by octave::tree_classdef_attribute::accept().
|
virtualinherited |
Definition at line 531 of file pt-walk.cc.
Referenced by octave::tree_classdef_attribute_list::accept().
|
virtualinherited |
Definition at line 601 of file pt-walk.cc.
Referenced by octave::tree_classdef_body::accept().
|
virtualinherited |
Definition at line 586 of file pt-walk.cc.
Referenced by octave::tree_classdef_enum::accept().
|
virtualinherited |
Definition at line 596 of file pt-walk.cc.
Referenced by octave::tree_classdef_enum_block::accept().
|
virtualinherited |
Definition at line 591 of file pt-walk.cc.
Referenced by octave::tree_classdef_enum_list::accept().
|
virtualinherited |
Definition at line 571 of file pt-walk.cc.
Referenced by octave::tree_classdef_event::accept().
|
virtualinherited |
Definition at line 581 of file pt-walk.cc.
Referenced by octave::tree_classdef_events_block::accept().
|
virtualinherited |
Definition at line 576 of file pt-walk.cc.
Referenced by octave::tree_classdef_events_list::accept().
|
virtualinherited |
Definition at line 566 of file pt-walk.cc.
Referenced by octave::tree_classdef_methods_block::accept().
|
virtualinherited |
Definition at line 561 of file pt-walk.cc.
Referenced by octave::tree_classdef_methods_list::accept().
|
virtualinherited |
Definition at line 556 of file pt-walk.cc.
Referenced by octave::tree_classdef_properties_block::accept().
|
virtualinherited |
Definition at line 546 of file pt-walk.cc.
Referenced by octave::tree_classdef_property::accept().
|
virtualinherited |
Definition at line 551 of file pt-walk.cc.
Referenced by octave::tree_classdef_property_list::accept().
|
virtualinherited |
Definition at line 536 of file pt-walk.cc.
Referenced by octave::tree_classdef_superclass::accept().
|
virtualinherited |
Definition at line 541 of file pt-walk.cc.
Referenced by octave::tree_classdef_superclass_list::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 80 of file pt-walk.cc.
References octave::tree::accept(), octave::tree_colon_expression::base(), octave::tree_colon_expression::increment(), and octave::tree_colon_expression::limit().
Referenced by octave::tree_colon_expression::accept().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 82 of file pt-check.cc.
References octave::tree_argument_list::accept(), octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_complex_for_command::body(), octave::tree_complex_for_command::control_expr(), errmsg(), octave::tree_complex_for_command::left_hand_side(), len, octave::base_list< elt_type >::length(), octave::tree::line(), and m_do_lvalue_check.
|
virtualinherited |
Reimplemented in octave::tree_evaluator.
Definition at line 70 of file pt-walk.cc.
References octave::tree_walker::visit_binary_expression().
Referenced by octave::tree_compound_binary_expression::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 378 of file pt-walk.cc.
Referenced by octave::tree_constant::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 98 of file pt-walk.cc.
Referenced by octave::tree_continue_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 103 of file pt-walk.cc.
References octave::tree_decl_init_list::accept(), and octave::tree_decl_command::initializer_list().
Referenced by octave::tree_decl_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 111 of file pt-walk.cc.
References octave::tree_identifier::accept(), octave::tree::accept(), octave::tree_decl_elt::expression(), and octave::tree_decl_elt::ident().
Referenced by octave::tree_decl_elt::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 124 of file pt-walk.cc.
Referenced by octave::tree_decl_init_list::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 503 of file pt-walk.cc.
References octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_while_command::body(), and octave::tree_while_command::condition().
Referenced by octave::tree_do_until_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 383 of file pt-walk.cc.
Referenced by octave::tree_fcn_handle::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, and octave::ctor_analyzer.
Definition at line 193 of file pt-walk.cc.
References octave::f(), octave::tree_function_def::function(), and octave_value::function_value().
Referenced by octave::tree_function_def::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, octave::tree_anon_scopes, and octave::ctor_analyzer.
Definition at line 203 of file pt-walk.cc.
Referenced by octave::tree_identifier::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 208 of file pt-walk.cc.
References octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_if_clause::commands(), and octave::tree_if_clause::condition().
Referenced by octave::tree_if_clause::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, and octave::ctor_analyzer.
Definition at line 221 of file pt-walk.cc.
References octave::tree_if_command_list::accept(), and octave::tree_if_command::cmd_list().
Referenced by octave::tree_if_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 229 of file pt-walk.cc.
References octave::tree_if_clause::accept(), octave::base_list< elt_type >::begin(), and octave::base_list< elt_type >::end().
Referenced by octave::tree_if_command_list::accept().
|
virtualinherited |
Reimplemented in octave::ctor_analyzer, octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, and octave::tree_breakpoint.
Definition at line 281 of file pt-walk.cc.
References octave::tree_argument_list::accept(), octave::tree::accept(), octave::tree_index_expression::arg_lists(), octave::tree_index_expression::arg_names(), octave::tree_index_expression::dyn_fields(), octave::tree_index_expression::expression(), n, panic_impossible, and octave::tree_index_expression::type_tags().
Referenced by octave::tree_index_expression::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 334 of file pt-walk.cc.
References octave::tree_argument_list::accept(), octave::base_list< elt_type >::begin(), and octave::base_list< elt_type >::end().
Referenced by octave::tree_matrix::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, and octave::tree_evaluator.
Definition at line 521 of file pt-walk.cc.
Referenced by octave::tree_metaclass_query::accept().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 113 of file pt-check.cc.
References octave::tree_argument_list::accept(), octave::tree::accept(), octave::tree_multi_assignment::left_hand_side(), m_do_lvalue_check, and octave::tree_multi_assignment::right_hand_side().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 373 of file pt-walk.cc.
Referenced by octave::tree_no_op_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, and octave::ctor_analyzer.
Definition at line 185 of file pt-walk.cc.
References octave::tree_statement_list::accept(), and octave_user_code::body().
Referenced by octave_user_function::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, and octave::ctor_analyzer.
Definition at line 177 of file pt-walk.cc.
References octave::tree_statement_list::accept(), and octave_user_code::body().
Referenced by octave_user_script::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, octave::tree_anon_scopes, and octave::ctor_analyzer.
Definition at line 388 of file pt-walk.cc.
References octave::tree_decl_elt::accept(), octave::base_list< elt_type >::begin(), and octave::base_list< elt_type >::end().
Referenced by octave::tree_parameter_list::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, octave::anon_fcn_validator, and octave::ctor_analyzer.
Definition at line 401 of file pt-walk.cc.
References octave::tree::accept(), and octave::tree_unary_expression::operand().
Referenced by octave::tree_postfix_expression::accept(), and octave::anon_fcn_validator::visit_postfix_expression().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, octave::anon_fcn_validator, and octave::ctor_analyzer.
Definition at line 409 of file pt-walk.cc.
References octave::tree::accept(), and octave::tree_unary_expression::operand().
Referenced by octave::tree_prefix_expression::accept(), and octave::anon_fcn_validator::visit_prefix_expression().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 417 of file pt-walk.cc.
Referenced by octave::tree_return_command::accept().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 133 of file pt-check.cc.
References octave::tree::accept(), errmsg(), octave::tree_simple_assignment::left_hand_side(), octave::tree::line(), octave::tree_expression::lvalue_ok(), and octave::tree_simple_assignment::right_hand_side().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 55 of file pt-check.cc.
References octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_simple_for_command::body(), octave::tree_simple_for_command::control_expr(), errmsg(), octave::tree_simple_for_command::left_hand_side(), octave::tree::line(), octave::tree_expression::lvalue_ok(), and octave::tree_simple_for_command::maxproc_expr().
|
virtualinherited |
Reimplemented in octave::ctor_analyzer, octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::tree_anon_scopes.
Definition at line 435 of file pt-walk.cc.
References octave::tree::accept(), octave::tree_statement::command(), and octave::tree_statement::expression().
Referenced by octave::tree_statement::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::tree_anon_scopes.
Definition at line 450 of file pt-walk.cc.
Referenced by octave::tree_statement_list::accept().
|
virtualinherited |
Reimplemented in octave::ctor_analyzer, octave::tree_print_code, and octave::tree_evaluator.
Definition at line 516 of file pt-walk.cc.
Referenced by octave::tree_superclass_ref::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 242 of file pt-walk.cc.
References octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_switch_case::case_label(), and octave::tree_switch_case::commands().
Referenced by octave::tree_switch_case::accept().
|
virtualinherited |
Reimplemented in octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 255 of file pt-walk.cc.
References octave::tree_switch_case::accept(), octave::base_list< elt_type >::begin(), and octave::base_list< elt_type >::end().
Referenced by octave::tree_switch_case_list::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 268 of file pt-walk.cc.
References octave::tree_switch_case_list::accept(), octave::tree::accept(), octave::tree_switch_command::case_list(), and octave::tree_switch_command::switch_value().
Referenced by octave::tree_switch_command::accept().
|
virtual |
Reimplemented from octave::tree_walker.
Definition at line 150 of file pt-check.cc.
References octave::tree_statement_list::accept(), octave::tree_try_catch_command::body(), octave::tree_try_catch_command::cleanup(), errmsg(), octave::tree_try_catch_command::identifier(), octave::tree::line(), and octave::tree_identifier::lvalue_ok().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 477 of file pt-walk.cc.
References octave::tree_statement_list::accept(), octave::tree_unwind_protect_command::body(), and octave::tree_unwind_protect_command::cleanup().
Referenced by octave::tree_unwind_protect_command::accept().
|
virtualinherited |
Reimplemented in octave::tree_print_code, octave::jit_convert, octave::tree_evaluator, octave::tree_breakpoint, and octave::ctor_analyzer.
Definition at line 490 of file pt-walk.cc.
References octave::tree_statement_list::accept(), octave::tree::accept(), octave::tree_while_command::body(), and octave::tree_while_command::condition().
Referenced by octave::tree_while_command::accept().
|
private |
Definition at line 70 of file pt-check.h.
Referenced by visit_argument_list(), visit_complex_for_command(), and visit_multi_assignment().
|
private |
Definition at line 72 of file pt-check.h.
Referenced by errmsg().