GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_decl_elt Class Reference

#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_eltdup (symbol_scope &scope) const
 
tree_expressionexpression ()
 
tree_identifierident ()
 
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
 

Detailed Description

Definition at line 49 of file pt-decl.h.

Member Enumeration Documentation

◆ decl_type

Enumerator
unknown 
global 
persistent 

Definition at line 53 of file pt-decl.h.

Constructor & Destructor Documentation

◆ tree_decl_elt()

tree_decl_elt::tree_decl_elt ( tree_identifier i,
tree_expression e = nullptr 
)

Definition at line 47 of file pt-decl.cc.

References error().

Referenced by dup().

◆ ~tree_decl_elt()

tree_decl_elt::~tree_decl_elt ( )

Definition at line 54 of file pt-decl.cc.

Member Function Documentation

◆ accept()

void tree_decl_elt::accept ( tree_walker tw)
inline

◆ dup()

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().

◆ expression()

◆ ident()

◆ is_global()

bool tree_decl_elt::is_global ( ) const
inline

Definition at line 79 of file pt-decl.h.

References global.

Referenced by tree_evaluator::visit_decl_elt().

◆ is_persistent()

bool tree_decl_elt::is_persistent ( ) const
inline

Definition at line 82 of file pt-decl.h.

References persistent.

Referenced by tree_evaluator::visit_decl_elt().

◆ lvalue()

octave_lvalue tree_decl_elt::lvalue ( tree_evaluator tw)
inline

Definition at line 73 of file pt-decl.h.

References tree_identifier::lvalue().

◆ lvalue_ok()

bool tree_decl_elt::lvalue_ok ( )
inline

Definition at line 71 of file pt-decl.h.

References tree_identifier::lvalue_ok().

◆ mark_as_formal_parameter()

void tree_decl_elt::mark_as_formal_parameter ( )
inline

◆ mark_global()

void tree_decl_elt::mark_global ( )
inline

Definition at line 78 of file pt-decl.h.

References global.

Referenced by tree_decl_init_list::mark_global().

◆ mark_persistent()

void tree_decl_elt::mark_persistent ( )
inline

Definition at line 81 of file pt-decl.h.

References persistent.

Referenced by tree_decl_init_list::mark_persistent().

◆ name()

std::string tree_decl_elt::name ( ) const
inline

The documentation for this class was generated from the following files: