Changes in src/SynTree/Expression.cc [fbcde64:64ac636]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
rfbcde64 r64ac636 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 30 16:41:13 201713 // Update Count : 5212 // Last Modified On : Fri Aug 5 14:23:56 2016 13 // Update Count : 49 14 14 // 15 15 … … 77 77 assert( var->get_type() ); 78 78 Type * type = var->get_type()->clone(); 79 type->set_ lvalue( true );79 type->set_isLvalue( true ); 80 80 set_result( type ); 81 81 } … … 352 352 sub.apply( res ); 353 353 set_result( res ); 354 get_result()->set_ lvalue( true );354 get_result()->set_isLvalue( true ); 355 355 } 356 356 … … 571 571 572 572 573 CompoundLiteralExpr::CompoundLiteralExpr( Type * type, Initializer * initializer ) : initializer( initializer ) {573 CompoundLiteralExpr::CompoundLiteralExpr( Type * type, Initializer * initializer ) : type( type ), initializer( initializer ) { 574 574 assert( type && initializer ); 575 set_result( type );576 } 577 578 CompoundLiteralExpr::CompoundLiteralExpr( const CompoundLiteralExpr &other ) : Expression( other ), initializer( other.initializer->clone() ) {}575 set_result( type->clone() ); 576 } 577 578 CompoundLiteralExpr::CompoundLiteralExpr( const CompoundLiteralExpr &other ) : Expression( other ), type( other.type->clone() ), initializer( other.initializer->clone() ) {} 579 579 580 580 CompoundLiteralExpr::~CompoundLiteralExpr() { 581 581 delete initializer; 582 delete type; 582 583 } 583 584 … … 585 586 os << "Compound Literal Expression: " << std::endl; 586 587 os << std::string( indent+2, ' ' ); 587 get_result()->print( os, indent + 2 );588 type->print( os, indent + 2 ); 588 589 os << std::string( indent+2, ' ' ); 589 590 initializer->print( os, indent + 2 );
Note:
See TracChangeset
for help on using the changeset viewer.