Changes in src/SynTree/Statement.cc [145f1fc:2871210]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r145f1fc r2871210 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Jul 15 14:57:40 201513 // Update Count : 2 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 29 17:37:10 2015 13 // Update Count : 22 14 14 // 15 15 … … 192 192 } 193 193 194 ForStmt::ForStmt( std::list<Label> labels, std::list<Statement *>initialization_, Expression *condition_, Expression *increment_, Statement *body_ ):194 ForStmt::ForStmt( std::list<Label> labels, Statement *initialization_, Expression *condition_, Expression *increment_, Statement *body_ ): 195 195 Statement( labels ), initialization( initialization_ ), condition( condition_ ), increment( increment_ ), body( body_ ) { 196 196 } 197 197 198 198 ForStmt::~ForStmt() { 199 delete All( initialization );199 delete initialization; 200 200 delete condition; 201 201 delete increment; … … 213 213 214 214 os << string( indent + 2, ' ' ) << "initialization: \n"; 215 for ( std::list<Statement *>::const_iterator it = initialization.begin(); it != initialization.end(); ++it ) { 216 (*it)->print( os, indent + 4 ); 217 } 215 if ( initialization != 0 ) 216 initialization->print( os, indent + 4 ); 218 217 219 218 os << "\n" << string( indent + 2, ' ' ) << "condition: \n";
Note:
See TracChangeset
for help on using the changeset viewer.