Changeset 60089f4 for src/SynTree/Statement.cc
- Timestamp:
- May 2, 2016, 3:12:59 PM (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, with_gc
- Children:
- 9243a501, d7903b1
- Parents:
- 89231bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r89231bc r60089f4 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : T ue Apr 26 12:33:33201612 // Last Modified On : Thu Apr 28 13:34:32 2016 13 13 // Update Count : 54 14 14 // … … 128 128 void IfStmt::print( std::ostream &os, int indent ) const { 129 129 os << "If on condition: " << endl ; 130 os << string( indent+4, ' ' ); 130 131 condition->print( os, indent + 4 ); 131 132 132 os << string( indent, ' ' ) << ".... and branches: " << endl; 133 133 os << string( indent+2, ' ' ) << "... then: " << endl; 134 135 os << string( indent+4, ' ' ); 134 136 thenPart->print( os, indent + 4 ); 135 137 136 138 if ( elsePart != 0 ) { 139 os << string( indent+2, ' ' ) << "... else: " << endl; 140 os << string( indent+4, ' ' ); 137 141 elsePart->print( os, indent + 4 ); 138 142 } // if
Note: See TracChangeset
for help on using the changeset viewer.