Changes in src/SynTree/CommaExpr.cc [bf4b4cf:ea6332d]
- File:
-
- 1 edited
-
src/SynTree/CommaExpr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CommaExpr.cc
rbf4b4cf rea6332d 21 21 #include "Type.h" // for Type 22 22 23 CommaExpr::CommaExpr( Expression *arg1, Expression *arg2 )24 : Expression( ), arg1( arg1 ), arg2( arg2 ) {23 CommaExpr::CommaExpr( Expression *arg1, Expression *arg2, Expression *_aname ) 24 : Expression( _aname ), arg1( arg1 ), arg2( arg2 ) { 25 25 // xxx - result of a comma expression is never an lvalue, so should set lvalue 26 26 // to false on all result types. Actually doing this causes some strange things … … 39 39 } 40 40 41 void CommaExpr::print( std::ostream &os, Indenterindent ) const {41 void CommaExpr::print( std::ostream &os, int indent ) const { 42 42 os << "Comma Expression:" << std::endl; 43 os << (indent+1);44 arg1->print( os, indent+ 1);43 os << std::string( indent+2, ' ' ); 44 arg1->print( os, indent+2 ); 45 45 os << std::endl; 46 os << (indent+1);47 arg2->print( os, indent+ 1);46 os << std::string( indent+2, ' ' ); 47 arg2->print( os, indent+2 ); 48 48 Expression::print( os, indent ); 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.