Changes in src/SynTree/Expression.cc [2f86ddf:07ec1a2]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
r2f86ddf r07ec1a2 376 376 os << "Untyped Member Expression, with field: " << std::endl << indent+1; 377 377 member->print(os, indent+1 ); 378 os << indent << "... from aggregate: " << std::endl << indent+1;378 os << indent << "... from aggregate:" << std::endl << indent+1; 379 379 aggregate->print(os, indent+1); 380 380 Expression::print( os, indent ); … … 405 405 406 406 void MemberExpr::print( std::ostream &os, Indenter indent ) const { 407 os << "Member Expression, with field: " << std::endl;407 os << "Member Expression, with field:" << std::endl; 408 408 os << indent+1; 409 409 member->print( os, indent+1 ); 410 os << std::endl << indent << "... from aggregate: " << std::endl << indent+1;410 os << std::endl << indent << "... from aggregate:" << std::endl << indent+1; 411 411 aggregate->print(os, indent + 1); 412 412 Expression::print( os, indent ); … … 456 456 457 457 void UntypedExpr::print( std::ostream &os, Indenter indent ) const { 458 os << "Applying untyped: " << std::endl;458 os << "Applying untyped:" << std::endl; 459 459 os << indent+1; 460 460 function->print(os, indent+1); 461 os << std::endl << indent << "...to: " << std::endl;461 os << std::endl << indent << "...to:" << std::endl; 462 462 printAll(args, os, indent+1); 463 463 Expression::print( os, indent ); … … 538 538 assert( callExpr ); 539 539 assert( callExpr->result ); 540 set_result( callExpr-> result->clone() );540 set_result( callExpr->get_result()->clone() ); 541 541 } 542 542 543 543 ImplicitCopyCtorExpr::ImplicitCopyCtorExpr( const ImplicitCopyCtorExpr & other ) : Expression( other ), callExpr( maybeClone( other.callExpr ) ) { 544 cloneAll( other.tempDecls, tempDecls ); 545 cloneAll( other.returnDecls, returnDecls ); 546 cloneAll( other.dtors, dtors ); 544 547 } 545 548 … … 547 550 set_env( nullptr ); // ImplicitCopyCtorExpr does not take ownership of an environment 548 551 delete callExpr; 552 deleteAll( tempDecls ); 553 deleteAll( returnDecls ); 554 deleteAll( dtors ); 549 555 } 550 556 … … 552 558 os << "Implicit Copy Constructor Expression: " << std::endl << indent+1; 553 559 callExpr->print( os, indent+1 ); 560 os << std::endl << indent << "... with temporaries:" << std::endl; 561 printAll( tempDecls, os, indent+1 ); 562 os << std::endl << indent << "... with return temporaries:" << std::endl; 563 printAll( returnDecls, os, indent+1 ); 564 Expression::print( os, indent ); 554 565 } 555 566
Note:
See TracChangeset
for help on using the changeset viewer.