#include "pt-decl.h"
Public Types | |
enum | decl_type { unknown , global , persistent } |
Public Member Functions | |
tree_decl_elt (tree_identifier *i, tree_expression *e=nullptr) | |
~tree_decl_elt () | |
void | accept (tree_walker &tw) |
tree_decl_elt * | dup (symbol_scope &scope) const |
tree_expression * | expression () |
tree_identifier * | ident () |
bool | is_global () const |
bool | is_persistent () const |
octave_lvalue | lvalue (tree_evaluator &tw) |
bool | lvalue_ok () |
void | mark_as_formal_parameter () |
void | mark_global () |
void | mark_persistent () |
std::string | name () const |
tree_decl_elt::tree_decl_elt | ( | tree_identifier * | i, |
tree_expression * | e = nullptr |
||
) |
tree_decl_elt::~tree_decl_elt | ( | ) |
Definition at line 54 of file pt-decl.cc.
|
inline |
Definition at line 92 of file pt-decl.h.
References tree_walker::visit_decl_elt().
Referenced by tree_print_code::visit_decl_init_list(), tree_print_code::visit_parameter_list(), and tree_walker::visit_parameter_list().
tree_decl_elt * tree_decl_elt::dup | ( | symbol_scope & | scope | ) | const |
Definition at line 61 of file pt-decl.cc.
References tree_decl_elt(), tree_identifier::dup(), and tree_expression::dup().
Referenced by tree_parameter_list::dup().
|
inline |
Definition at line 88 of file pt-decl.h.
Referenced by tree_evaluator::eval_decl_elt(), tree_evaluator::visit_decl_elt(), tree_print_code::visit_decl_elt(), and tree_walker::visit_decl_elt().
|
inline |
Definition at line 84 of file pt-decl.h.
Referenced by tree_evaluator::eval_decl_elt(), tree_evaluator::evaluate(), base_parser::validate_param_list(), tree_evaluator::visit_decl_elt(), tree_print_code::visit_decl_elt(), and tree_walker::visit_decl_elt().
|
inline |
Definition at line 79 of file pt-decl.h.
References global.
Referenced by tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 82 of file pt-decl.h.
References persistent.
Referenced by tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 73 of file pt-decl.h.
References tree_identifier::lvalue().
|
inline |
Definition at line 71 of file pt-decl.h.
References tree_identifier::lvalue_ok().
|
inline |
Definition at line 66 of file pt-decl.h.
References tree_identifier::mark_as_formal_parameter().
Referenced by tree_parameter_list::mark_as_formal_parameters().
|
inline |
Definition at line 78 of file pt-decl.h.
References global.
Referenced by tree_decl_init_list::mark_global().
|
inline |
Definition at line 81 of file pt-decl.h.
References persistent.
Referenced by tree_decl_init_list::mark_persistent().
|
inline |
Definition at line 86 of file pt-decl.h.
References tree_identifier::name().
Referenced by tree_decl_init_list::variable_names(), and tree_parameter_list::variable_names().