Changes in src/SynTree/Statement.cc [bb8ea30:60089f4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
rbb8ea30 r60089f4 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu May 12 13:33:18201612 // Last Modified On : Thu Apr 28 13:34:32 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 + 2, ' ' );45 os << "Expression Statement:" << endl << std::string( indent, ' ' ); 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, ' ' );293 292 (*it)->print( os, indent + 4 ); 294 293 } 295 294 296 295 os << "\n" << string( indent + 2, ' ' ) << "condition: \n"; 297 if ( condition != 0 ) { 298 os << string( indent + 4, ' ' ); 296 if ( condition != 0 ) 299 297 condition->print( os, indent + 4 ); 300 }301 298 302 299 os << "\n" << string( indent + 2, ' ' ) << "increment: \n"; 303 if ( increment != 0 ) { 304 os << string( indent + 4, ' ' ); 300 if ( increment != 0 ) 305 301 increment->print( os, indent + 4 ); 306 }307 302 308 303 os << "\n" << string( indent + 2, ' ' ) << "statement block: \n"; 309 if ( body != 0 ) { 310 os << string( indent + 4, ' ' ); 304 if ( body != 0 ) 311 305 body->print( os, indent + 4 ); 312 }313 306 314 307 os << endl;
Note:
See TracChangeset
for help on using the changeset viewer.