#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 |
octave::tree_decl_elt::tree_decl_elt | ( | tree_identifier * | i, |
tree_expression * | e = nullptr |
||
) |
|
delete |
octave::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 octave::tree_walker::visit_decl_elt().
Referenced by octave::tree_print_code::visit_decl_init_list(), octave::tree_print_code::visit_parameter_list(), and octave::tree_walker::visit_parameter_list().
tree_decl_elt * octave::tree_decl_elt::dup | ( | symbol_scope & | scope | ) | const |
Definition at line 61 of file pt-decl.cc.
References tree_decl_elt(), octave::tree_identifier::dup(), octave::tree_expression::dup(), m_expr, and m_id.
Referenced by octave::tree_parameter_list::dup().
|
inline |
Definition at line 92 of file pt-decl.h.
References m_expr.
Referenced by octave::tree_evaluator::eval_decl_elt(), octave::tree_evaluator::visit_decl_elt(), octave::tree_print_code::visit_decl_elt(), and octave::tree_walker::visit_decl_elt().
|
inline |
Definition at line 88 of file pt-decl.h.
References m_id.
Referenced by octave::tree_evaluator::eval_decl_elt(), octave::tree_evaluator::evaluate(), octave_user_function::subsasgn_optimization_ok(), octave::base_parser::validate_param_list(), octave::tree_evaluator::visit_decl_elt(), octave::tree_print_code::visit_decl_elt(), and octave::tree_walker::visit_decl_elt().
|
inline |
Definition at line 83 of file pt-decl.h.
Referenced by octave::tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 86 of file pt-decl.h.
References persistent, and type.
Referenced by octave::tree_evaluator::visit_decl_elt().
|
inline |
Definition at line 77 of file pt-decl.h.
References octave::tree_identifier::lvalue(), and m_id.
|
inline |
Definition at line 75 of file pt-decl.h.
References octave::tree_identifier::lvalue_ok(), and m_id.
|
inline |
Definition at line 70 of file pt-decl.h.
References m_id, and octave::tree_identifier::mark_as_formal_parameter().
Referenced by octave::tree_parameter_list::mark_as_formal_parameters().
|
inline |
Definition at line 82 of file pt-decl.h.
Referenced by octave::tree_decl_init_list::mark_global().
|
inline |
Definition at line 85 of file pt-decl.h.
References persistent, and type.
Referenced by octave::tree_decl_init_list::mark_persistent().
|
inline |
Definition at line 90 of file pt-decl.h.
References m_id, and octave::tree_identifier::name().
Referenced by octave::jit_convert::jit_convert(), octave::jit_convert_llvm::convert_function(), octave::cdef_class::cdef_class_rep::install_method(), octave_classdef_superclass_ref::is_constructed_object(), octave::tree_decl_init_list::variable_names(), and octave::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(), ~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().