Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/CommaExpr.cc

    rbf4b4cf rea6332d  
    2121#include "Type.h"            // for Type
    2222
    23 CommaExpr::CommaExpr( Expression *arg1, Expression *arg2 )
    24                 : Expression(), arg1( arg1 ), arg2( arg2 ) {
     23CommaExpr::CommaExpr( Expression *arg1, Expression *arg2, Expression *_aname )
     24                : Expression( _aname ), arg1( arg1 ), arg2( arg2 ) {
    2525        // xxx - result of a comma expression is never an lvalue, so should set lvalue
    2626        // to false on all result types. Actually doing this causes some strange things
     
    3939}
    4040
    41 void CommaExpr::print( std::ostream &os, Indenter indent ) const {
     41void CommaExpr::print( std::ostream &os, int indent ) const {
    4242        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 );
    4545        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 );
    4848        Expression::print( os, indent );
    4949}
Note: See TracChangeset for help on using the changeset viewer.