Changes in src/SynTree/Expression.cc [14388c1:2d80111]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
r14388c1 r2d80111 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Aug 13 11:31:00 201913 // Update Count : 6 312 // Last Modified On : Wed Aug 7 17:03:00 2019 13 // Update Count : 62 14 14 // 15 15 … … 64 64 65 65 bool Expression::get_lvalue() const { 66 assert( !result->get_lvalue() ); 67 return false; 66 return result->get_lvalue(); 68 67 } 69 68 … … 139 138 } 140 139 141 bool VariableExpr::get_lvalue() const {142 return result->get_lvalue();143 }144 145 140 VariableExpr * VariableExpr::functionPointer( FunctionDecl * func ) { 146 141 VariableExpr * funcExpr = new VariableExpr( func ); … … 274 269 CastExpr::~CastExpr() { 275 270 delete arg; 276 }277 278 bool CastExpr::get_lvalue() const {279 return result->get_lvalue();280 271 } 281 272 … … 389 380 // don't delete the member declaration, since it points somewhere else in the tree 390 381 delete aggregate; 391 }392 393 bool MemberExpr::get_lvalue() const {394 assert( result->get_lvalue() );395 return true;396 382 } 397 383 … … 446 432 } 447 433 448 bool UntypedExpr::get_lvalue() const {449 return result->get_lvalue();450 }451 434 452 435 void UntypedExpr::print( std::ostream & os, Indenter indent ) const { … … 507 490 delete arg2; 508 491 delete arg3; 509 }510 511 bool ConditionalExpr::get_lvalue() const {512 return result->get_lvalue();513 492 } 514 493 … … 569 548 } 570 549 571 bool ConstructorExpr::get_lvalue() const {572 return result->get_lvalue();573 }574 575 550 void ConstructorExpr::print( std::ostream & os, Indenter indent ) const { 576 551 os << "Constructor Expression: " << std::endl << indent+1; … … 590 565 CompoundLiteralExpr::~CompoundLiteralExpr() { 591 566 delete initializer; 592 }593 594 bool CompoundLiteralExpr::get_lvalue() const {595 assert( result->get_lvalue() );596 return true;597 567 } 598 568
Note:
See TracChangeset
for help on using the changeset viewer.