GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_parameter_list Class Reference

#include "pt-misc.h"

Inheritance diagram for tree_parameter_list:

Public Types

enum  in_or_out { in = 1 , out = 2 }
 

Public Member Functions

 tree_parameter_list (in_or_out io)
 
 tree_parameter_list (in_or_out io, tree_decl_elt *t)
 
 tree_parameter_list (in_or_out io, tree_identifier *id)
 
 ~tree_parameter_list ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
tree_parameter_listdup (symbol_scope &scope) const
 
filepos end_pos () const
 
bool is_input_list () const
 
bool is_output_list () const
 
void mark_as_formal_parameters ()
 
tree_parameter_listmark_in_delims (const token &open_delim, const token &close_delim)
 
void mark_varargs ()
 
void mark_varargs_only ()
 
bool takes_varargs () const
 
bool varargs_only ()
 
std::string varargs_symbol_name () const
 
std::list< std::string > variable_names () const
 

Detailed Description

Definition at line 46 of file pt-misc.h.

Member Enumeration Documentation

◆ in_or_out

Enumerator
in 
out 

Definition at line 50 of file pt-misc.h.

Constructor & Destructor Documentation

◆ tree_parameter_list() [1/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io)
inline

Definition at line 56 of file pt-misc.h.

◆ tree_parameter_list() [2/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_decl_elt t 
)
inline

Definition at line 60 of file pt-misc.h.

◆ tree_parameter_list() [3/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_identifier id 
)
inline

Definition at line 66 of file pt-misc.h.

◆ ~tree_parameter_list()

tree_parameter_list::~tree_parameter_list ( )

Definition at line 37 of file pt-misc.cc.

Member Function Documentation

◆ accept()

◆ beg_pos()

filepos tree_parameter_list::beg_pos ( ) const
inline

Definition at line 84 of file pt-misc.h.

References token::beg_pos().

◆ dup()

tree_parameter_list * tree_parameter_list::dup ( symbol_scope scope) const

◆ end_pos()

filepos tree_parameter_list::end_pos ( ) const
inline

Definition at line 85 of file pt-misc.h.

References token::end_pos().

◆ is_input_list()

bool tree_parameter_list::is_input_list ( ) const
inline

Definition at line 97 of file pt-misc.h.

References in.

Referenced by tree_print_code::visit_parameter_list().

◆ is_output_list()

bool tree_parameter_list::is_output_list ( ) const
inline

Definition at line 99 of file pt-misc.h.

References out.

◆ mark_as_formal_parameters()

void tree_parameter_list::mark_as_formal_parameters ( )

Definition at line 48 of file pt-misc.cc.

Referenced by base_parser::finish_function().

◆ mark_in_delims()

tree_parameter_list * tree_parameter_list::mark_in_delims ( const token open_delim,
const token close_delim 
)
inline

Definition at line 76 of file pt-misc.h.

Referenced by octave_push_parse().

◆ mark_varargs()

void tree_parameter_list::mark_varargs ( )
inline

Definition at line 89 of file pt-misc.h.

Referenced by base_parser::validate_param_list().

◆ mark_varargs_only()

void tree_parameter_list::mark_varargs_only ( )
inline

Definition at line 91 of file pt-misc.h.

Referenced by base_parser::validate_param_list().

◆ takes_varargs()

bool tree_parameter_list::takes_varargs ( ) const
inline

◆ varargs_only()

bool tree_parameter_list::varargs_only ( )
inline

Definition at line 95 of file pt-misc.h.

Referenced by tree_evaluator::define_parameter_list_from_arg_vector().

◆ varargs_symbol_name()

std::string tree_parameter_list::varargs_symbol_name ( ) const
inline

Definition at line 103 of file pt-misc.h.

References in.

Referenced by variable_names(), and tree_print_code::visit_parameter_list().

◆ variable_names()

std::list< std::string > tree_parameter_list::variable_names ( ) const

Definition at line 55 of file pt-misc.cc.

References varargs_symbol_name().

Referenced by tree_anon_scopes::visit_anon_fcn_handle().


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