Changeset a61fea9a for src/Parser/ExpressionNode.cc
- Timestamp:
- Jun 4, 2015, 11:35:13 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 9a8930f
- Parents:
- 30651b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r30651b0 ra61fea9a 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat May 16 13:19:35201513 // Update Count : 212 // Last Modified On : Wed Jun 3 11:28:56 2015 13 // Update Count : 7 14 14 // 15 15 … … 633 633 ExpressionNode *exp; 634 634 635 if (( decl = dynamic_cast<DeclarationNode *>( init_)) != 0)635 if (( decl = dynamic_cast<DeclarationNode *>(init_) ) != 0) 636 636 init = new StatementNode( decl ); 637 637 else if (( exp = dynamic_cast<ExpressionNode *>( init_)) != 0) … … 659 659 660 660 void ForCtlExprNode::print( std::ostream &os, int indent ) const{ 661 os << string( indent,' ') << "For Control Expression -- : 662 663 os << "\r" << string( indent + 2,' ') << "initialization: ";664 if ( init != 0 )665 init->print ( os, indent + 4);666 667 os << "\n\r" << string( indent + 2,' ') << "condition: ";668 if ( condition != 0 )669 condition->print( os, indent + 4 );670 os << "\n\r" << string( indent + 2,' ') << "increment: ";671 if ( change != 0 )672 change->print( os, indent + 4 );661 os << string( indent,' ') << "For Control Expression -- :" << endl; 662 663 os << string( indent + 2,' ' ) << "initialization:" << endl; 664 if ( init != 0 ) 665 init->printList( os, indent + 4 ); 666 667 os << string( indent + 2, ' ' ) << "condition: " << endl; 668 if ( condition != 0 ) 669 condition->print( os, indent + 4 ); 670 os << string( indent + 2,' ' ) << "increment: " << endl; 671 if ( change != 0 ) 672 change->print( os, indent + 4 ); 673 673 } 674 674
Note: See TracChangeset
for help on using the changeset viewer.