Changes in src/SynTree/Statement.cc [f1b1e4c:bb8ea30]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
rf1b1e4c rbb8ea30 358 358 359 359 void CatchStmt::print( std::ostream &os, int indent ) const { 360 os << "Catch Statement" << endl;360 os << string( indent, ' ' ) << "Catch Statement" << endl; 361 361 362 362 os << string( indent, ' ' ) << "... catching" << endl; … … 383 383 384 384 void FinallyStmt::print( std::ostream &os, int indent ) const { 385 os << "Finally Statement" << endl;385 os << string( indent, ' ' ) << "Finally Statement" << endl; 386 386 os << string( indent + 2, ' ' ) << "with block: " << endl; 387 387 block->print( os, indent + 4 ); … … 393 393 void NullStmt::print( std::ostream &os, int indent ) const { 394 394 os << "Null Statement" << endl ; 395 }396 397 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( Statement * callStmt ) : Statement( std::list<Label>() ), callStmt( callStmt ) {398 assert( callStmt );399 }400 401 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ) : Statement( other ), callStmt( other.callStmt ) {402 }403 404 ImplicitCtorDtorStmt::~ImplicitCtorDtorStmt() {405 }406 407 void ImplicitCtorDtorStmt::print( std::ostream &os, int indent ) const {408 os << "Implicit Ctor Dtor Statement" << endl;409 os << string( indent + 2, ' ' ) << "with Ctor/Dtor: ";410 callStmt->print( os, indent + 2);411 os << endl;412 395 } 413 396
Note:
See TracChangeset
for help on using the changeset viewer.