~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/src/Semantic.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "Puma/CAttributeInfo.h"
43
43
#include "Puma/CEnumeratorInfo.h"
44
44
#include "Puma/CMemberAliasInfo.h"
45
 
#include "Puma/CClassDatabase.h"
 
45
#include "Puma/CSemDatabase.h"
46
46
 
47
47
#include <stdio.h>
48
48
#include <assert.h>
65
65
    decl_end ();
66
66
}
67
67
 
68
 
void Semantic::init (CClassDatabase &db, Unit &unit) {
 
68
void Semantic::init (CSemDatabase &db, Unit &unit) {
69
69
  _db = &db;
70
70
  _Anonymous = 0;
71
71
  _sem_decl_specs.reset ();
139
139
}
140
140
 
141
141
void Semantic::common_settings (CObjectInfo *info, CTree *tree) {
142
 
  info->ClassDB (_db);
 
142
  info->SemDB (_db);
143
143
  info->SourceInfo ()->FileInfo (_file);
144
144
  info->SourceInfo ()->StartToken (tree->token_node ());
145
145
  info->Tree (tree);
224
224
void Semantic::enter_local_scope () { 
225
225
  // create and enter new local (block) scope
226
226
  CLocalScope *info = new CLocalScope;
227
 
  info->ClassDB (_db);
 
227
  info->SemDB (_db);
228
228
  enter_scope (info);
229
229
}
230
230
 
231
231
void Semantic::enter_param_decl_clause () { 
232
232
  // create and enter new function prototype scope
233
233
  CFunctionInfo *info = new CFunctionInfo;
234
 
  info->ClassDB (_db);
 
234
  info->SemDB (_db);
235
235
  enter_scope (info);
236
236
  _in_param_decl_clause.push (true);
237
237
}