示例#1
0
void PrinterVisitor::beginVisit( LetVarIterator const &i ) {
  thePrinter.startBeginVisit( "LetVarIterator", ++theId );
  if ( i.getVarName() )
    thePrinter.addAttribute( "varname", i.getVarName()->getStringValue().c_str() );
  if ( i.getTargetPos() > numeric_consts<xs_integer>::zero() )
    thePrinter.addAttribute( "targetPos", i.getTargetPos().toString().c_str() );
  printCommons( &i, theId );
  thePrinter.endBeginVisit( theId );
}
示例#2
0
void PrinterVisitor::beginVisit( LetVarIterator const &i ) {
  thePrinter.startBeginVisit( "LetVarIterator", ++theId );
#ifndef NDEBUG
  if ( !Properties::instance().getNoTreeIDs() &&
       Properties::instance().getStableIteratorIDs() )
    thePrinter.addIntAttribute( "varreference", i.getId() );
#endif
  if ( i.getVarName() )
    thePrinter.addAttribute( "varname", i.getVarName()->getStringValue().c_str() );
  if ( i.getTargetPos() > numeric_consts<xs_integer>::zero() )
    thePrinter.addIntAttribute( "targetPos", i.getTargetPos() );
  printCommons( &i, theId );
  thePrinter.endBeginVisit( theId );
}