GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::anon_fcn_validator Class Reference

#include "anon-fcn-validator.h"

Inheritance diagram for octave::anon_fcn_validator:
Collaboration diagram for octave::anon_fcn_validator:

Public Member Functions

 anon_fcn_validator (const anon_fcn_validator &)=delete
 
 anon_fcn_validator (tree_parameter_list *, tree_expression *expr)
 
 ~anon_fcn_validator (void)=default
 
int column (void) const
 
int line (void) const
 
std::string message (void) const
 
bool ok (void) const
 
anon_fcn_validatoroperator= (const anon_fcn_validator &)=delete
 
virtual void visit_anon_fcn_handle (tree_anon_fcn_handle &)
 
virtual void visit_argument_list (tree_argument_list &)
 
virtual void visit_binary_expression (tree_binary_expression &)
 
virtual void visit_boolean_expression (tree_boolean_expression &)
 
virtual void visit_break_command (tree_break_command &)
 
virtual void visit_cell (tree_cell &)
 
virtual void visit_classdef (tree_classdef &)
 
virtual void visit_classdef_attribute (tree_classdef_attribute &)
 
virtual void visit_classdef_attribute_list (tree_classdef_attribute_list &)
 
virtual void visit_classdef_body (tree_classdef_body &)
 
virtual void visit_classdef_enum (tree_classdef_enum &)
 
virtual void visit_classdef_enum_block (tree_classdef_enum_block &)
 
virtual void visit_classdef_enum_list (tree_classdef_enum_list &)
 
virtual void visit_classdef_event (tree_classdef_event &)
 
virtual void visit_classdef_events_block (tree_classdef_events_block &)
 
virtual void visit_classdef_events_list (tree_classdef_events_list &)
 
virtual void visit_classdef_methods_block (tree_classdef_methods_block &)
 
virtual void visit_classdef_methods_list (tree_classdef_methods_list &)
 
virtual void visit_classdef_properties_block (tree_classdef_properties_block &)
 
virtual void visit_classdef_property (tree_classdef_property &)
 
virtual void visit_classdef_property_list (tree_classdef_property_list &)
 
virtual void visit_classdef_superclass (tree_classdef_superclass &)
 
virtual void visit_classdef_superclass_list (tree_classdef_superclass_list &)
 
virtual void visit_colon_expression (tree_colon_expression &)
 
virtual void visit_complex_for_command (tree_complex_for_command &)
 
virtual void visit_compound_binary_expression (tree_compound_binary_expression &)
 
virtual void visit_constant (tree_constant &)
 
virtual void visit_continue_command (tree_continue_command &)
 
virtual void visit_decl_command (tree_decl_command &)
 
virtual void visit_decl_elt (tree_decl_elt &)
 
virtual void visit_decl_init_list (tree_decl_init_list &)
 
virtual void visit_do_until_command (tree_do_until_command &)
 
virtual void visit_fcn_handle (tree_fcn_handle &)
 
virtual void visit_function_def (tree_function_def &)
 
virtual void visit_identifier (tree_identifier &)
 
virtual void visit_if_clause (tree_if_clause &)
 
virtual void visit_if_command (tree_if_command &)
 
virtual void visit_if_command_list (tree_if_command_list &)
 
virtual void visit_index_expression (tree_index_expression &)
 
virtual void visit_matrix (tree_matrix &)
 
virtual void visit_metaclass_query (tree_metaclass_query &)
 
void visit_multi_assignment (tree_multi_assignment &)
 
virtual void visit_no_op_command (tree_no_op_command &)
 
virtual void visit_octave_user_function (octave_user_function &)
 
virtual void visit_octave_user_script (octave_user_script &)
 
virtual void visit_parameter_list (tree_parameter_list &)
 
void visit_postfix_expression (tree_postfix_expression &)
 
void visit_prefix_expression (tree_prefix_expression &)
 
virtual void visit_return_command (tree_return_command &)
 
void visit_simple_assignment (tree_simple_assignment &)
 
virtual void visit_simple_for_command (tree_simple_for_command &)
 
virtual void visit_statement (tree_statement &)
 
virtual void visit_statement_list (tree_statement_list &)
 
virtual void visit_superclass_ref (tree_superclass_ref &)
 
virtual void visit_switch_case (tree_switch_case &)
 
virtual void visit_switch_case_list (tree_switch_case_list &)
 
virtual void visit_switch_command (tree_switch_command &)
 
virtual void visit_try_catch_command (tree_try_catch_command &)
 
virtual void visit_unwind_protect_command (tree_unwind_protect_command &)
 
virtual void visit_while_command (tree_while_command &)
 

Private Member Functions

void error (tree_expression &expr)
 

Private Attributes

int m_column
 
int m_line
 
std::string m_message
 
bool m_ok
 

Detailed Description

Definition at line 42 of file anon-fcn-validator.h.

Constructor & Destructor Documentation

◆ anon_fcn_validator() [1/2]

octave::anon_fcn_validator::anon_fcn_validator ( tree_parameter_list ,
tree_expression expr 
)

Definition at line 38 of file anon-fcn-validator.cc.

References octave::tree::accept().

◆ anon_fcn_validator() [2/2]

octave::anon_fcn_validator::anon_fcn_validator ( const anon_fcn_validator )
delete

◆ ~anon_fcn_validator()

octave::anon_fcn_validator::~anon_fcn_validator ( void  )
default

Member Function Documentation

◆ column()

int octave::anon_fcn_validator::column ( void  ) const
inline

Definition at line 67 of file anon-fcn-validator.h.

References m_column.

Referenced by octave::base_parser::make_anon_fcn_handle().

◆ error()

◆ line()

int octave::anon_fcn_validator::line ( void  ) const
inline

Definition at line 66 of file anon-fcn-validator.h.

References m_line.

Referenced by octave::base_parser::make_anon_fcn_handle().

◆ message()

std::string octave::anon_fcn_validator::message ( void  ) const
inline

Definition at line 69 of file anon-fcn-validator.h.

References m_message.

Referenced by octave::base_parser::make_anon_fcn_handle().

◆ ok()

bool octave::anon_fcn_validator::ok ( void  ) const
inline

Definition at line 64 of file anon-fcn-validator.h.

References m_ok.

Referenced by octave::base_parser::make_anon_fcn_handle().

◆ operator=()

anon_fcn_validator& octave::anon_fcn_validator::operator= ( const anon_fcn_validator )
delete

◆ visit_anon_fcn_handle()

void octave::tree_walker::visit_anon_fcn_handle ( tree_anon_fcn_handle )
virtualinherited

◆ visit_argument_list()

◆ visit_binary_expression()

◆ visit_boolean_expression()

void octave::tree_walker::visit_boolean_expression ( tree_boolean_expression expr)
virtualinherited

◆ visit_break_command()

void octave::tree_walker::visit_break_command ( tree_break_command )
virtualinherited

◆ visit_cell()

◆ visit_classdef()

void octave::tree_walker::visit_classdef ( tree_classdef )
virtualinherited

Definition at line 606 of file pt-walk.cc.

Referenced by octave::tree_classdef::accept().

◆ visit_classdef_attribute()

void octave::tree_walker::visit_classdef_attribute ( tree_classdef_attribute )
virtualinherited

Definition at line 526 of file pt-walk.cc.

Referenced by octave::tree_classdef_attribute::accept().

◆ visit_classdef_attribute_list()

void octave::tree_walker::visit_classdef_attribute_list ( tree_classdef_attribute_list )
virtualinherited

Definition at line 531 of file pt-walk.cc.

Referenced by octave::tree_classdef_attribute_list::accept().

◆ visit_classdef_body()

void octave::tree_walker::visit_classdef_body ( tree_classdef_body )
virtualinherited

Definition at line 601 of file pt-walk.cc.

Referenced by octave::tree_classdef_body::accept().

◆ visit_classdef_enum()

void octave::tree_walker::visit_classdef_enum ( tree_classdef_enum )
virtualinherited

Definition at line 586 of file pt-walk.cc.

Referenced by octave::tree_classdef_enum::accept().

◆ visit_classdef_enum_block()

void octave::tree_walker::visit_classdef_enum_block ( tree_classdef_enum_block )
virtualinherited

Definition at line 596 of file pt-walk.cc.

Referenced by octave::tree_classdef_enum_block::accept().

◆ visit_classdef_enum_list()

void octave::tree_walker::visit_classdef_enum_list ( tree_classdef_enum_list )
virtualinherited

Definition at line 591 of file pt-walk.cc.

Referenced by octave::tree_classdef_enum_list::accept().

◆ visit_classdef_event()

void octave::tree_walker::visit_classdef_event ( tree_classdef_event )
virtualinherited

Definition at line 571 of file pt-walk.cc.

Referenced by octave::tree_classdef_event::accept().

◆ visit_classdef_events_block()

void octave::tree_walker::visit_classdef_events_block ( tree_classdef_events_block )
virtualinherited

Definition at line 581 of file pt-walk.cc.

Referenced by octave::tree_classdef_events_block::accept().

◆ visit_classdef_events_list()

void octave::tree_walker::visit_classdef_events_list ( tree_classdef_events_list )
virtualinherited

Definition at line 576 of file pt-walk.cc.

Referenced by octave::tree_classdef_events_list::accept().

◆ visit_classdef_methods_block()

void octave::tree_walker::visit_classdef_methods_block ( tree_classdef_methods_block )
virtualinherited

Definition at line 566 of file pt-walk.cc.

Referenced by octave::tree_classdef_methods_block::accept().

◆ visit_classdef_methods_list()

void octave::tree_walker::visit_classdef_methods_list ( tree_classdef_methods_list )
virtualinherited

Definition at line 561 of file pt-walk.cc.

Referenced by octave::tree_classdef_methods_list::accept().

◆ visit_classdef_properties_block()

void octave::tree_walker::visit_classdef_properties_block ( tree_classdef_properties_block )
virtualinherited

Definition at line 556 of file pt-walk.cc.

Referenced by octave::tree_classdef_properties_block::accept().

◆ visit_classdef_property()

void octave::tree_walker::visit_classdef_property ( tree_classdef_property )
virtualinherited

Definition at line 546 of file pt-walk.cc.

Referenced by octave::tree_classdef_property::accept().

◆ visit_classdef_property_list()

void octave::tree_walker::visit_classdef_property_list ( tree_classdef_property_list )
virtualinherited

Definition at line 551 of file pt-walk.cc.

Referenced by octave::tree_classdef_property_list::accept().

◆ visit_classdef_superclass()

void octave::tree_walker::visit_classdef_superclass ( tree_classdef_superclass )
virtualinherited

Definition at line 536 of file pt-walk.cc.

Referenced by octave::tree_classdef_superclass::accept().

◆ visit_classdef_superclass_list()

void octave::tree_walker::visit_classdef_superclass_list ( tree_classdef_superclass_list )
virtualinherited

Definition at line 541 of file pt-walk.cc.

Referenced by octave::tree_classdef_superclass_list::accept().

◆ visit_colon_expression()

◆ visit_complex_for_command()

◆ visit_compound_binary_expression()

void octave::tree_walker::visit_compound_binary_expression ( tree_compound_binary_expression expr)
virtualinherited

◆ visit_constant()

void octave::tree_walker::visit_constant ( tree_constant )
virtualinherited

◆ visit_continue_command()

void octave::tree_walker::visit_continue_command ( tree_continue_command )
virtualinherited

◆ visit_decl_command()

void octave::tree_walker::visit_decl_command ( tree_decl_command cmd)
virtualinherited

◆ visit_decl_elt()

◆ visit_decl_init_list()

void octave::tree_walker::visit_decl_init_list ( tree_decl_init_list lst)
virtualinherited

◆ visit_do_until_command()

◆ visit_fcn_handle()

void octave::tree_walker::visit_fcn_handle ( tree_fcn_handle )
virtualinherited

◆ visit_function_def()

void octave::tree_walker::visit_function_def ( tree_function_def fdef)
virtualinherited

◆ visit_identifier()

void octave::tree_walker::visit_identifier ( tree_identifier )
virtualinherited

◆ visit_if_clause()

◆ visit_if_command()

void octave::tree_walker::visit_if_command ( tree_if_command cmd)
virtualinherited

◆ visit_if_command_list()

◆ visit_index_expression()

◆ visit_matrix()

◆ visit_metaclass_query()

void octave::tree_walker::visit_metaclass_query ( tree_metaclass_query )
virtualinherited

Reimplemented in octave::tree_print_code, and octave::tree_evaluator.

Definition at line 521 of file pt-walk.cc.

Referenced by octave::tree_metaclass_query::accept().

◆ visit_multi_assignment()

void octave::anon_fcn_validator::visit_multi_assignment ( tree_multi_assignment expr)
virtual

Reimplemented from octave::tree_walker.

Definition at line 65 of file anon-fcn-validator.cc.

References error().

◆ visit_no_op_command()

void octave::tree_walker::visit_no_op_command ( tree_no_op_command )
virtualinherited

◆ visit_octave_user_function()

void octave::tree_walker::visit_octave_user_function ( octave_user_function fcn)
virtualinherited

◆ visit_octave_user_script()

void octave::tree_walker::visit_octave_user_script ( octave_user_script fcn)
virtualinherited

◆ visit_parameter_list()

◆ visit_postfix_expression()

void octave::anon_fcn_validator::visit_postfix_expression ( tree_postfix_expression expr)
virtual

◆ visit_prefix_expression()

void octave::anon_fcn_validator::visit_prefix_expression ( tree_prefix_expression expr)
virtual

◆ visit_return_command()

void octave::tree_walker::visit_return_command ( tree_return_command )
virtualinherited

◆ visit_simple_assignment()

void octave::anon_fcn_validator::visit_simple_assignment ( tree_simple_assignment expr)
virtual

Reimplemented from octave::tree_walker.

Definition at line 70 of file anon-fcn-validator.cc.

References error().

◆ visit_simple_for_command()

◆ visit_statement()

◆ visit_statement_list()

void octave::tree_walker::visit_statement_list ( tree_statement_list lst)
virtualinherited

◆ visit_superclass_ref()

void octave::tree_walker::visit_superclass_ref ( tree_superclass_ref )
virtualinherited

◆ visit_switch_case()

◆ visit_switch_case_list()

◆ visit_switch_command()

◆ visit_try_catch_command()

◆ visit_unwind_protect_command()

◆ visit_while_command()

Member Data Documentation

◆ m_column

int octave::anon_fcn_validator::m_column
private

Definition at line 75 of file anon-fcn-validator.h.

Referenced by column(), and error().

◆ m_line

int octave::anon_fcn_validator::m_line
private

Definition at line 74 of file anon-fcn-validator.h.

Referenced by error(), and line().

◆ m_message

std::string octave::anon_fcn_validator::m_message
private

Definition at line 76 of file anon-fcn-validator.h.

Referenced by error(), and message().

◆ m_ok

bool octave::anon_fcn_validator::m_ok
private

Definition at line 73 of file anon-fcn-validator.h.

Referenced by error(), and ok().


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