Esempio n. 1
0
void PrinterVisitor::beginVisit( CtxVarDeclareIterator const &i ) {
  thePrinter.startBeginVisit( "CtxVarDeclareIterator", ++theId );
  thePrinter.addAttribute( "varid", i.getVarId() );
  thePrinter.addAttribute( "varname", i.getVarName()->getStringValue().str() );
  printCommons( &i, theId );
  thePrinter.endBeginVisit( theId );
}
Esempio n. 2
0
void PrinterVisitor::beginVisit( CtxVarDeclareIterator const &i ) {
  thePrinter.startBeginVisit( "CtxVarDeclareIterator", ++theId );
  thePrinter.addIntAttribute( "varid", i.getVarId() );
#ifndef NDEBUG
  if ( !Properties::instance().getNoTreeIDs() &&
       Properties::instance().getStableIteratorIDs() )
    thePrinter.addIntAttribute( "varreference", i.getId() );
#endif
  thePrinter.addAttribute( "varname", i.getVarName()->getStringValue().str() );
  printCommons( &i, theId );
  thePrinter.endBeginVisit( theId );
}