#include "pt-decl.h"
Public Member Functions | |
tree_decl_elt (tree_identifier *i=0, tree_expression *e=0) | |
~tree_decl_elt (void) | |
void | accept (tree_walker &tw) |
tree_decl_elt * | dup (symbol_table::scope_id scope, symbol_table::context_id context) const |
bool | eval (void) |
tree_expression * | expression (void) |
tree_identifier * | ident (void) |
bool | is_defined (void) |
bool | is_variable (void) |
octave_lvalue | lvalue (void) |
bool | lvalue_ok (void) |
void | mark_as_formal_parameter (void) |
octave_value_list | rvalue (int nargout) |
octave_value | rvalue1 (int nargout=1) |
Private Member Functions | |
tree_decl_elt (const tree_decl_elt &) | |
tree_decl_elt & | operator= (const tree_decl_elt &) |
Private Attributes | |
tree_expression * | expr |
tree_identifier * | id |
Definition at line 41 of file pt-decl.h.
tree_decl_elt::tree_decl_elt | ( | tree_identifier * | i = 0 , |
|
tree_expression * | e = 0 | |||
) | [inline] |
tree_decl_elt::~tree_decl_elt | ( | void | ) |
Definition at line 42 of file pt-decl.cc.
tree_decl_elt::tree_decl_elt | ( | const tree_decl_elt & | ) | [private] |
void tree_decl_elt::accept | ( | tree_walker & | tw | ) |
Definition at line 79 of file pt-decl.cc.
References tree_walker::visit_decl_elt().
Referenced by tree_print_code::visit_decl_init_list(), tree_checker::visit_decl_init_list(), tree_print_code::visit_parameter_list(), and tree_checker::visit_parameter_list().
tree_decl_elt * tree_decl_elt::dup | ( | symbol_table::scope_id | scope, | |
symbol_table::context_id | context | |||
) | const |
Definition at line 71 of file pt-decl.cc.
References tree_expression::dup(), tree_identifier::dup(), expr, id, and tree_decl_elt().
Referenced by tree_parameter_list::dup(), and tree_decl_init_list::dup().
bool tree_decl_elt::eval | ( | void | ) |
Definition at line 49 of file pt-decl.cc.
References octave_lvalue::assign(), error_state, expr, octave_value::op_asn_eq, and tree_expression::rvalue1().
Referenced by tree_parameter_list::define_from_arg_vector().
tree_expression* tree_decl_elt::expression | ( | void | ) | [inline] |
Definition at line 87 of file pt-decl.h.
Referenced by do_global_init(), do_static_init(), tree_print_code::visit_decl_elt(), and tree_checker::visit_decl_elt().
tree_identifier* tree_decl_elt::ident | ( | void | ) | [inline] |
Definition at line 85 of file pt-decl.h.
Referenced by do_global_init(), do_static_init(), octave_fcn_binder::maybe_binder(), octave_user_function::subsasgn_optimization_ok(), tree_parameter_list::validate(), tree_print_code::visit_decl_elt(), and tree_checker::visit_decl_elt().
bool tree_decl_elt::is_defined | ( | void | ) | [inline] |
Definition at line 53 of file pt-decl.h.
Referenced by tree_parameter_list::convert_to_const_vector().
bool tree_decl_elt::is_variable | ( | void | ) | [inline] |
Definition at line 55 of file pt-decl.h.
Referenced by tree_parameter_list::initialize_undefined_elements(), and tree_parameter_list::is_defined().
octave_lvalue tree_decl_elt::lvalue | ( | void | ) | [inline] |
Definition at line 83 of file pt-decl.h.
Referenced by tree_parameter_list::define_from_arg_vector(), tree_parameter_list::initialize_undefined_elements(), and tree_parameter_list::undefine().
void tree_decl_elt::mark_as_formal_parameter | ( | void | ) | [inline] |
Definition at line 57 of file pt-decl.h.
Referenced by tree_parameter_list::mark_as_formal_parameters().
tree_decl_elt& tree_decl_elt::operator= | ( | const tree_decl_elt & | ) | [private] |
octave_value_list tree_decl_elt::rvalue | ( | int | nargout | ) | [inline] |
octave_value tree_decl_elt::rvalue1 | ( | int | nargout = 1 |
) | [inline] |
Definition at line 66 of file pt-decl.h.
References octave_value().
Referenced by tree_parameter_list::convert_to_const_vector().
tree_expression* tree_decl_elt::expr [private] |
Definition at line 100 of file pt-decl.h.
Referenced by dup(), eval(), and ~tree_decl_elt().
tree_identifier* tree_decl_elt::id [private] |
Definition at line 97 of file pt-decl.h.
Referenced by dup(), and ~tree_decl_elt().