Changes in src/SynTree/Statement.cc [60089f4:89231bc]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r60089f4 r89231bc 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : T hu Apr 28 13:34:32201612 // Last Modified On : Tue Apr 26 12:33:33 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, ' ' );131 130 condition->print( os, indent + 4 ); 132 131 133 os << string( indent+2, ' ' ) << "... then: " << endl; 134 135 os << string( indent+4, ' ' ); 132 os << string( indent, ' ' ) << ".... and branches: " << endl; 133 136 134 thenPart->print( os, indent + 4 ); 137 135 138 136 if ( elsePart != 0 ) { 139 os << string( indent+2, ' ' ) << "... else: " << endl;140 os << string( indent+4, ' ' );141 137 elsePart->print( os, indent + 4 ); 142 138 } // if
Note:
See TracChangeset
for help on using the changeset viewer.