Changes in src/SynTree/Statement.cc [60089f4:bb8ea30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r60089f4 rbb8ea30 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Apr 28 13:34:32201612 // Last Modified On : Thu May 12 13:33:18 2016 13 13 // Update Count : 54 14 14 // … … 43 43 44 44 void ExprStmt::print( std::ostream &os, int indent ) const { 45 os << "Expression Statement:" << endl << std::string( indent , ' ' );45 os << "Expression Statement:" << endl << std::string( indent + 2, ' ' ); 46 46 expr->print( os, indent + 2 ); 47 47 } … … 290 290 os << string( indent + 2, ' ' ) << "initialization: \n"; 291 291 for ( std::list<Statement *>::const_iterator it = initialization.begin(); it != initialization.end(); ++it ) { 292 os << string( indent + 4, ' ' ); 292 293 (*it)->print( os, indent + 4 ); 293 294 } 294 295 295 296 os << "\n" << string( indent + 2, ' ' ) << "condition: \n"; 296 if ( condition != 0 ) 297 if ( condition != 0 ) { 298 os << string( indent + 4, ' ' ); 297 299 condition->print( os, indent + 4 ); 300 } 298 301 299 302 os << "\n" << string( indent + 2, ' ' ) << "increment: \n"; 300 if ( increment != 0 ) 303 if ( increment != 0 ) { 304 os << string( indent + 4, ' ' ); 301 305 increment->print( os, indent + 4 ); 306 } 302 307 303 308 os << "\n" << string( indent + 2, ' ' ) << "statement block: \n"; 304 if ( body != 0 ) 309 if ( body != 0 ) { 310 os << string( indent + 4, ' ' ); 305 311 body->print( os, indent + 4 ); 312 } 306 313 307 314 os << endl;
Note:
See TracChangeset
for help on using the changeset viewer.