Changes in src/SynTree/Statement.cc [89231bc:60089f4]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (2 diffs)
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.