Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Function_declaration_reader Class Reference

Declaration reader for function args. More...

#include <decl_read.h>

Inheritance diagram for Function_declaration_reader:

Inheritance graph
[legend]
Collaboration diagram for Function_declaration_reader:

Collaboration graph
[legend]
List of all members.

Public Methods

Function_type_makerget_maker ()
 Function_declaration_reader (Abstract_scope *s, Arg_vec *args)
 Constructor. More...

void declare_variable (Type type, Ptree *name, Ptree *initializer, Ptree *bitsize)
void add_ellipsis ()

Private Attributes

Function_type_maker maker
bool had_void_arg
bool had_parameter
Arg_vecargs

Detailed Description

Declaration reader for function args.

This class will add all parameters to a Function_type_maker.

Definition at line 120 of file decl_read.h.


Constructor & Destructor Documentation

Function_declaration_reader::Function_declaration_reader Abstract_scope   s,
Arg_vec   args
 

Constructor.

Parameters:
s  names will be looked up in this scope
b  parameters will be added to this list

Definition at line 325 of file decl_read.cc.


Member Function Documentation

void Function_declaration_reader::add_ellipsis  
 

Definition at line 363 of file decl_read.cc.

References Function_type_maker::add_ellipsis(), compile_error(), and maker.

Referenced by Declaration_reader::parse_declarator_internal().

void Function_declaration_reader::declare_variable Type    type,
Ptree   name,
Ptree   initializer,
Ptree   bitsize
[virtual]
 

Implements Declaration_reader.

Definition at line 334 of file decl_read.cc.

References Function_type_maker::add_parameter(), args, compile_error(), Type::get_unqualified_type(), had_parameter, had_void_arg, and maker.

Function_type_maker& Function_declaration_reader::get_maker   [inline]
 

Definition at line 125 of file decl_read.h.

Referenced by Declaration_reader::parse_declarator_internal().


Member Data Documentation

Arg_vec* Function_declaration_reader::args [private]
 

Definition at line 123 of file decl_read.h.

Referenced by declare_variable().

bool Function_declaration_reader::had_parameter [private]
 

Definition at line 122 of file decl_read.h.

Referenced by declare_variable().

bool Function_declaration_reader::had_void_arg [private]
 

Definition at line 122 of file decl_read.h.

Referenced by declare_variable().

Function_type_maker Function_declaration_reader::maker [private]
 

Definition at line 121 of file decl_read.h.

Referenced by add_ellipsis(), and declare_variable().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:35:37 2003 for VFiasco Semantics Compiler by doxygen1.2.15