~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/examples/sync/SyncTransformer.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20080410174052-dbne39zue793jgrh
Tags: upstream-1.0pre4~svn.20080409+dfsg
ImportĀ upstreamĀ versionĀ 1.0pre4~svn.20080409+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
  // with the whole replacement token list. token() returns
118
118
  // the first token referred in a sub-tree.
119
119
  mc.replace(node->Son(0)->token(), node->Son(1)->token(), 
120
 
             (Token*)lock.first(), (Token*)lock.last());
 
120
             (Puma::Token*)lock.first(), (Puma::Token*)lock.last());
121
121
  // Replace the closing bracket. The closing bracket is the 
122
122
  // last token of the statement. end_token() returns the last 
123
123
  // token referred in a sub-tree.
124
124
  mc.replace(node->end_token(), node->end_token(), 
125
 
             (Token*)unlock.first(), (Token*)unlock.last());
 
125
             (Puma::Token*)unlock.first(), (Puma::Token*)unlock.last());
126
126
  
127
127
  // Execute the two manipulations now, together. It is also
128
128
  // possible first to check if the manipulations are valid