#include "symscope.h"
Public Member Functions | |
symbol_scope (const std::shared_ptr< symbol_scope_rep > new_rep=nullptr) | |
symbol_scope (const std::string &name) | |
symbol_scope (const symbol_scope &)=default | |
~symbol_scope (void)=default | |
void | cache_dir_name (const std::string &name) |
void | cache_fcn_file_name (const std::string &name) |
void | cache_fcn_name (const std::string &name) |
void | cache_name (const std::string &name) |
std::string | dir_name (void) const |
octave_value | dump (void) const |
symbol_scope | dup (void) const |
void | erase_subfunctions (void) |
std::string | fcn_file_name (void) const |
std::string | fcn_name (void) const |
octave_value | find_subfunction (const std::string &name) const |
symbol_record | find_symbol (const std::string &name) |
std::shared_ptr< symbol_scope_rep > | get_rep (void) const |
bool | has_subfunctions (void) const |
symbol_record | insert (const std::string &name) |
symbol_record | insert_local (const std::string &name) |
void | insert_symbol_record (symbol_record &sr) |
void | install_nestfunction (const std::string &name, const octave_value &fval, const symbol_scope &fcn_scope) |
void | install_subfunction (const std::string &name, const octave_value &fval) |
bool | is_nested (void) const |
bool | is_parent (void) const |
bool | is_primary_fcn_scope (void) const |
bool | is_relative (const symbol_scope &scope) const |
bool | is_static (void) const |
bool | is_valid (void) const |
bool | is_variable (const std::string &nm) const |
std::list< octave_value > | localfunctions (void) const |
void | lock_subfunctions (void) |
bool | look_nonlocal (const std::string &name, std::size_t offset, symbol_record &result) |
symbol_record | lookup_symbol (const std::string &name) const |
void | mark_as_variable (const std::string &nm) |
void | mark_as_variables (const std::list< std::string > &lst) |
void | mark_primary_fcn_scope (void) |
void | mark_static (void) |
void | mark_subfunctions_in_scope_as_private (const std::string &class_name) |
std::string | name (void) const |
std::size_t | nesting_depth (void) const |
std::size_t | num_symbols (void) const |
operator bool () const | |
symbol_scope & | operator= (const symbol_scope &)=default |
std::list< std::string > | parent_fcn_names (void) const |
std::shared_ptr< symbol_scope_rep > | parent_scope (void) const |
octave_value & | persistent_varref (std::size_t data_offset) |
octave_value | persistent_varval (std::size_t data_offset) const |
std::shared_ptr< symbol_scope_rep > | primary_parent_scope (void) const |
void | rename (const std::string &old_name, const std::string &new_name) |
void | set_nesting_depth (std::size_t depth) |
void | set_parent (const symbol_scope &p) |
void | set_primary_parent (const symbol_scope &p) |
void | set_user_code (octave_user_code *code) |
void | stash_subfunction_names (const std::list< std::string > &names) |
std::list< std::string > | subfunction_names (void) const |
std::map< std::string, octave_value > | subfunctions (void) const |
std::list< symbol_record > | symbol_list (void) const |
std::map< std::string, symbol_record > & | symbols (void) |
const std::map< std::string, symbol_record > & | symbols (void) const |
void | unlock_subfunctions (void) |
void | update_nest (void) |
octave_user_code * | user_code (void) const |
Private Attributes | |
std::shared_ptr< symbol_scope_rep > | m_rep |
Friends | |
bool | operator!= (const symbol_scope &a, const symbol_scope &b) |
bool | operator== (const symbol_scope &a, const symbol_scope &b) |
Definition at line 374 of file symscope.h.
|
inline |
Definition at line 379 of file symscope.h.
Referenced by dup().
|
inline |
Definition at line 385 of file symscope.h.
|
default |
|
default |
|
inline |
Definition at line 627 of file symscope.h.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), base_parser::finish_function(), and base_parser::make_script().
|
inline |
Definition at line 621 of file symscope.h.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), base_parser::finish_function(), and base_parser::make_script().
|
inline |
Definition at line 587 of file symscope.h.
Referenced by base_parser::finish_function().
|
inline |
Definition at line 576 of file symscope.h.
Referenced by base_parser::finish_function(), base_parser::make_anon_fcn_handle(), base_parser::make_fcn_name(), base_parser::make_script(), and base_anonymous_fcn_handle::parse().
|
inline |
Definition at line 638 of file symscope.h.
References m_rep.
Referenced by fcn_info::fcn_info_rep::find_scoped_function(), and fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 566 of file symscope.h.
References m_rep, and octave_value().
|
inline |
Definition at line 457 of file symscope.h.
References symbol_scope(), and m_rep.
Referenced by tree_anon_fcn_handle::dup(), and tree_evaluator::evaluate_anon_fcn_handle().
|
inline |
Definition at line 535 of file symscope.h.
References m_rep.
|
inline |
Definition at line 633 of file symscope.h.
References m_rep.
Referenced by fcn_info::fcn_info_rep::find_scoped_function(), parse_tree_validator::visit_index_expression(), and fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 582 of file symscope.h.
References m_rep.
Referenced by parse_tree_validator::visit_index_expression().
|
inline |
Definition at line 511 of file symscope.h.
References m_rep, name(), and octave_value().
Referenced by fcn_info::fcn_info_rep::find_scoped_function(), stack_frame::find_subfunction(), and fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 474 of file symscope.h.
Referenced by tree_identifier::dup(), script_stack_frame::insert_symbol(), user_fcn_stack_frame::insert_symbol(), and scope_stack_frame::insert_symbol().
|
inline |
Definition at line 688 of file symscope.h.
References m_rep.
Referenced by is_relative(), set_parent(), and set_primary_parent().
|
inline |
Definition at line 547 of file symscope.h.
References m_rep.
|
inline |
Definition at line 485 of file symscope.h.
Referenced by base_parser::make_identifier(), and script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 404 of file symscope.h.
|
inline |
Definition at line 409 of file symscope.h.
References m_rep.
|
inline |
Definition at line 503 of file symscope.h.
Referenced by base_parser::finish_function().
|
inline |
Definition at line 496 of file symscope.h.
Referenced by base_parser::finish_function().
|
inline |
Definition at line 415 of file symscope.h.
References m_rep.
Referenced by user_fcn_stack_frame::get_access_link(), script_stack_frame::get_val_offsets_internal(), and script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 420 of file symscope.h.
References m_rep.
|
inline |
|
inline |
Definition at line 654 of file symscope.h.
|
inline |
Definition at line 436 of file symscope.h.
References m_rep.
|
inline |
Definition at line 395 of file symscope.h.
References m_rep.
Referenced by tree_anon_fcn_handle::has_parent_scope().
|
inline |
Definition at line 671 of file symscope.h.
References m_rep.
Referenced by parse_tree_validator::visit_index_expression().
std::list< octave_value > symbol_scope::localfunctions | ( | void | ) | const |
Definition at line 373 of file symscope.cc.
References is_primary_fcn_scope(), and m_rep.
|
inline |
Definition at line 516 of file symscope.h.
References m_rep.
|
inline |
Definition at line 682 of file symscope.h.
|
inline |
Definition at line 480 of file symscope.h.
Referenced by script_stack_frame::insert_symbol(), user_fcn_stack_frame::insert_symbol(), scope_stack_frame::insert_symbol(), script_stack_frame::lookup_symbol(), user_fcn_stack_frame::lookup_symbol(), and scope_stack_frame::lookup_symbol().
|
inline |
Definition at line 659 of file symscope.h.
References m_rep.
Referenced by lexical_feedback::mark_as_variable().
|
inline |
Definition at line 665 of file symscope.h.
References m_rep.
Referenced by lexical_feedback::mark_as_variables().
|
inline |
Definition at line 643 of file symscope.h.
References m_rep.
Referenced by base_parser::push_fcn_symtab().
|
inline |
Definition at line 441 of file symscope.h.
References m_rep.
Referenced by base_parser::make_anon_fcn_handle().
|
inline |
Definition at line 541 of file symscope.h.
References m_rep.
|
inline |
Definition at line 571 of file symscope.h.
References m_rep.
Referenced by symbol_info_accumulator::append_list(), cache_dir_name(), cache_fcn_file_name(), cache_fcn_name(), cache_name(), display_scope(), find_subfunction(), find_symbol(), insert(), insert_local(), install_nestfunction(), install_subfunction(), look_nonlocal(), and lookup_symbol().
|
inline |
Definition at line 431 of file symscope.h.
References m_rep.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and user_fcn_stack_frame::get_access_link().
|
inline |
Definition at line 399 of file symscope.h.
References m_rep.
Referenced by display_scope(), user_fcn_stack_frame::get_num_symbols(), script_stack_frame::get_num_symbols(), and script_stack_frame::set_script_offsets().
|
inlineexplicit |
Definition at line 397 of file symscope.h.
References m_rep.
|
default |
|
inline |
Definition at line 593 of file symscope.h.
References m_rep.
Referenced by symbol_scope_rep::localfunctions().
|
inline |
Definition at line 447 of file symscope.h.
References m_rep.
Referenced by script_stack_frame::get_val_offsets_internal(), and script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 462 of file symscope.h.
References m_rep.
Referenced by script_stack_frame::varref(), user_fcn_stack_frame::varref(), and scope_stack_frame::varref().
|
inline |
Definition at line 469 of file symscope.h.
References m_rep, and octave_value().
Referenced by script_stack_frame::varval(), user_fcn_stack_frame::varval(), and scope_stack_frame::varval().
|
inline |
Definition at line 452 of file symscope.h.
References m_rep.
|
inline |
Definition at line 490 of file symscope.h.
References m_rep.
Referenced by base_qobject::workspace_widget().
|
inline |
Definition at line 425 of file symscope.h.
References m_rep.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 609 of file symscope.h.
References get_rep(), and m_rep.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 615 of file symscope.h.
References get_rep(), and m_rep.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 603 of file symscope.h.
References m_rep.
|
inline |
Definition at line 552 of file symscope.h.
References m_rep.
|
inline |
Definition at line 558 of file symscope.h.
References m_rep.
|
inline |
Definition at line 528 of file symscope.h.
References m_rep.
|
inline |
Definition at line 717 of file symscope.h.
References m_rep.
Referenced by symbol_info_accumulator::append_list(), symbol_cleaner::clean_frame(), user_fcn_stack_frame::clear_values(), and display_scope().
|
inline |
Definition at line 710 of file symscope.h.
References m_rep.
|
inline |
Definition at line 703 of file symscope.h.
References m_rep.
Referenced by script_stack_frame::get_val_offsets_internal(), script_stack_frame::set_script_offsets(), script_stack_frame::set_script_offsets_internal(), and stack_frame::variable_names().
|
inline |
Definition at line 522 of file symscope.h.
References m_rep.
|
inline |
Definition at line 676 of file symscope.h.
References m_rep.
Referenced by base_parser::finish_function().
|
inline |
|
friend |
Definition at line 698 of file symscope.h.
|
friend |
Definition at line 693 of file symscope.h.
|
private |
Definition at line 726 of file symscope.h.
Referenced by cache_dir_name(), cache_fcn_file_name(), cache_fcn_name(), cache_name(), dir_name(), dump(), dup(), erase_subfunctions(), fcn_file_name(), fcn_name(), find_subfunction(), find_symbol(), get_rep(), has_subfunctions(), insert(), insert_local(), insert_symbol_record(), install_nestfunction(), install_subfunction(), is_nested(), is_parent(), is_primary_fcn_scope(), is_relative(), is_static(), is_valid(), is_variable(), localfunctions(), lock_subfunctions(), look_nonlocal(), lookup_symbol(), mark_as_variable(), mark_as_variables(), mark_primary_fcn_scope(), mark_static(), mark_subfunctions_in_scope_as_private(), name(), nesting_depth(), num_symbols(), operator bool(), parent_fcn_names(), parent_scope(), persistent_varref(), persistent_varval(), primary_parent_scope(), rename(), set_nesting_depth(), set_parent(), set_primary_parent(), set_user_code(), stash_subfunction_names(), subfunction_names(), subfunctions(), symbol_list(), symbols(), unlock_subfunctions(), update_nest(), and user_code().