Changes in src/SynTree/Expression.cc [5d00425:033ff37]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
r5d00425 r033ff37 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Th r Aug 15 13:43:00201913 // Update Count : 6 411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 25 22:21:48 2019 13 // Update Count : 61 14 14 // 15 15 … … 63 63 } 64 64 65 bool Expression::get_lvalue() const {66 assert( !result->get_lvalue() );67 return false;68 }69 70 65 void Expression::print( std::ostream & os, Indenter indent ) const { 71 66 printInferParams( inferParams, os, indent+1, 0 ); … … 139 134 } 140 135 141 bool VariableExpr::get_lvalue() const {142 return result->get_lvalue();143 }144 145 136 VariableExpr * VariableExpr::functionPointer( FunctionDecl * func ) { 146 137 VariableExpr * funcExpr = new VariableExpr( func ); … … 274 265 CastExpr::~CastExpr() { 275 266 delete arg; 276 }277 278 bool CastExpr::get_lvalue() const {279 return result->get_lvalue();280 267 } 281 268 … … 389 376 // don't delete the member declaration, since it points somewhere else in the tree 390 377 delete aggregate; 391 }392 393 bool MemberExpr::get_lvalue() const {394 assert( result->get_lvalue() );395 return true;396 378 } 397 379 … … 446 428 } 447 429 448 bool UntypedExpr::get_lvalue() const {449 return result->get_lvalue();450 }451 430 452 431 void UntypedExpr::print( std::ostream & os, Indenter indent ) const { … … 507 486 delete arg2; 508 487 delete arg3; 509 }510 511 bool ConditionalExpr::get_lvalue() const {512 return result->get_lvalue();513 488 } 514 489 … … 569 544 } 570 545 571 bool ConstructorExpr::get_lvalue() const {572 return result->get_lvalue();573 }574 575 546 void ConstructorExpr::print( std::ostream & os, Indenter indent ) const { 576 547 os << "Constructor Expression: " << std::endl << indent+1; … … 590 561 CompoundLiteralExpr::~CompoundLiteralExpr() { 591 562 delete initializer; 592 }593 594 bool CompoundLiteralExpr::get_lvalue() const {595 assert( result->get_lvalue() );596 return true;597 563 } 598 564 … … 646 612 result = new VoidType( Type::Qualifiers() ); 647 613 } 648 }649 bool StmtExpr::get_lvalue() const {650 return result->get_lvalue();651 614 } 652 615 void StmtExpr::print( std::ostream & os, Indenter indent ) const {
Note:
See TracChangeset
for help on using the changeset viewer.