Synopsis - Synopsis/SymbolFactory.hh Details

# Synopsis/SymbolFactory.hh

source code

## Includes from this file:

- include Synopsis/SymbolLookup/Scope.hh

## Declarations in this file:

### Classes in Synopsis

SymbolFactory

SymbolFactory populates a symbol table.

### Classes in Synopsis::SymbolLookup

PrototypeScope
TemplateParameterScope

### Data members in Synopsis::SymbolFactory

my_language
my_prototype

When parsing a function definition the declarator is seen first, and thus a prototype is created to hold the parameters.

my_scopes
my_template_parameters

When parsing a class or function template the template-parameter-list is seen first.

### Enums in Synopsis::SymbolFactory

Language

### Member functions in Synopsis::SymbolFactory

SymbolFactory(Language)

Create a symbol lookup table for the given language.

current_scope()
declare(const PTree::Declaration*)
declare(const PTree::EnumSpec*)

declare the enumeration as a new TYPE as well as all the enumerators as CONST

declare(const PTree::ParameterDeclaration*)
declare(const PTree::TypeParameter*)
declare(const PTree::Typedef*)
declare(const PTree::UsingDeclaration*)
declare(const PTree::UsingDirective*)
enter_scope(const PTree::Block*)
enter_scope(const PTree::ClassSpec*)
enter_scope(const PTree::FunctionDefinition*)
enter_scope(const PTree::NamespaceSpec*)
enter_scope(const PTree::Node*)
enter_scope(const PTree::TemplateDecl*)
lookup_scope_of_qname(PTree::Encoding&,const PTree::Node*)

Lookup the scope of a qualified name.

### Typedefs in Synopsis::SymbolFactory

Scopes