Changeset 534d84e for src/SynTree/Statement.cc
- Timestamp:
- Apr 28, 2018, 10:35:51 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- b6dc097
- Parents:
- 9997fee (diff), a0c7d5cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r9997fee r534d84e 453 453 void WaitForStmt::print( std::ostream &os, Indenter indent ) const { 454 454 os << "Waitfor Statement" << endl; 455 os << indent << "... with block:" << endl << indent+1; 456 // block->print( os, indent + 4 ); 455 indent += 1; 456 for( auto & clause : clauses ) { 457 os << indent << "target function :"; 458 if(clause.target.function) { clause.target.function->print(os, indent + 1); } 459 os << endl << indent << "with arguments :" << endl; 460 for( auto & thing : clause.target.arguments) { 461 if(thing) { thing->print(os, indent + 1); } 462 } 463 os << indent << " with statment :" << endl; 464 if(clause.statement) { clause.statement->print(os, indent + 1); } 465 466 os << indent << " with condition :" << endl; 467 if(clause.condition) { clause.condition->print(os, indent + 1); } 468 } 469 470 os << indent << " timeout of :" << endl; 471 if(timeout.time) { timeout.time->print(os, indent + 1); } 472 473 os << indent << " with statment :" << endl; 474 if(timeout.statement) { timeout.statement->print(os, indent + 1); } 475 476 os << indent << " with condition :" << endl; 477 if(timeout.condition) { timeout.condition->print(os, indent + 1); } 478 479 480 os << indent << " else :" << endl; 481 if(orelse.statement) { orelse.statement->print(os, indent + 1); } 482 483 os << indent << " with condition :" << endl; 484 if(orelse.condition) { orelse.condition->print(os, indent + 1); } 457 485 } 458 486
Note: See TracChangeset
for help on using the changeset viewer.