#include "pt-decl.h"
Public Types | |
enum | decl_type { unknown , global , persistent } |
Public Member Functions | |
tree_decl_elt (const tree_decl_elt &)=delete | |
tree_decl_elt (tree_identifier *i, tree_expression *e=nullptr) | |
~tree_decl_elt (void) | |
void | accept (tree_walker &tw) |
tree_decl_elt * | dup (symbol_scope &scope) const |
tree_expression * | expression (void) |
tree_identifier * | ident (void) |
bool | is_global (void) const |
bool | is_persistent (void) const |
octave_lvalue | lvalue (tree_evaluator &tw) |
bool | lvalue_ok (void) |
void | mark_as_formal_parameter (void) |
void | mark_global (void) |
void | mark_persistent (void) |
std::string | name (void) const |
tree_decl_elt & | operator= (const tree_decl_elt &)=delete |
Private Attributes | |
tree_expression * | m_expr |
tree_identifier * | m_id |
decl_type | type |
tree_decl_elt::tree_decl_elt | ( | tree_identifier * | i, |
tree_expression * | e = nullptr |
||
) |
|
delete |
tree_decl_elt::~tree_decl_elt | ( | void | ) |
Definition at line 54 of file pt-decl.cc.
|
inline |
Definition at line 96 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(), tree_expression::dup(), m_expr, and m_id.
Referenced by tree_parameter_list::dup().
|
inline |
Definition at line 92 of file pt-decl.h.
References m_expr.
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 88 of file pt-decl.h.
References m_id.
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 83 of file pt-decl.h.
Referenced by tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 86 of file pt-decl.h.
References persistent, and type.
Referenced by tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 77 of file pt-decl.h.
References tree_identifier::lvalue(), and m_id.
|
inline |
Definition at line 75 of file pt-decl.h.
References tree_identifier::lvalue_ok(), and m_id.
|
inline |
Definition at line 70 of file pt-decl.h.
References m_id, and tree_identifier::mark_as_formal_parameter().
Referenced by tree_parameter_list::mark_as_formal_parameters().
|
inline |
Definition at line 82 of file pt-decl.h.
Referenced by tree_decl_init_list::mark_global().
|
inline |
Definition at line 85 of file pt-decl.h.
References persistent, and type.
Referenced by tree_decl_init_list::mark_persistent().
|
inline |
Definition at line 90 of file pt-decl.h.
References m_id, and tree_identifier::name().
Referenced by cdef_class::cdef_class_rep::install_method(), tree_decl_init_list::variable_names(), and tree_parameter_list::variable_names().
|
delete |
|
private |
Definition at line 109 of file pt-decl.h.
Referenced by ~tree_decl_elt(), dup(), and expression().
|
private |
Definition at line 106 of file pt-decl.h.
Referenced by ~tree_decl_elt(), dup(), ident(), lvalue(), lvalue_ok(), mark_as_formal_parameter(), and name().
|
private |
Definition at line 103 of file pt-decl.h.
Referenced by is_global(), is_persistent(), mark_global(), and mark_persistent().