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

Typedef_name_reader Class Reference

Figure out the name of a typedef alias. More...

#include <annotator_i.h>

Inheritance diagram for Typedef_name_reader:

Inheritance graph
[legend]
Collaboration diagram for Typedef_name_reader:

Collaboration graph
[legend]
List of all members.

Public Methods

 Typedef_name_reader (Abstract_scope *scope)
Ptreeget_name () const
void declare_variable (Type type, Ptree *name, Ptree *, Ptree *)

Private Attributes

Ptreename_out

Detailed Description

Figure out the name of a typedef alias.

When defining an alias to an unnamed type, that unnamed type is named by the typedef name (7.1.3p5). We simply plug an "int" into parse_declarator_list, and if we get out an "int" again, we found our type.

Definition at line 53 of file annotator_i.h.


Constructor & Destructor Documentation

Typedef_name_reader::Typedef_name_reader Abstract_scope   scope [inline]
 

Definition at line 56 of file annotator_i.h.


Member Function Documentation

void Typedef_name_reader::declare_variable Type    type,
Ptree   name,
Ptree  ,
Ptree  
[virtual]
 

Implements Declaration_reader.

Definition at line 230 of file annotator.cc.

References name_out.

Ptree* Typedef_name_reader::get_name   const [inline]
 

Definition at line 58 of file annotator_i.h.

Referenced by Annotator::visit_typedef().


Member Data Documentation

Ptree* Typedef_name_reader::name_out [private]
 

Definition at line 54 of file annotator_i.h.

Referenced by declare_variable().


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