Changeset f19339e
- Timestamp:
- Jul 18, 2017, 4:37:18 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 4fbdfae0
- Parents:
- 242a902
- Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
r242a902 rf19339e 44 44 } 45 45 46 ApplicationExpr::ApplicationExpr( Expression *funcExpr ) : function( funcExpr) {46 ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list<Expression *> & args ) : function( funcExpr ), args( args ) { 47 47 PointerType *pointer = safe_dynamic_cast< PointerType* >( funcExpr->get_result() ); 48 48 FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() ); -
src/SynTree/Expression.cc
r242a902 rf19339e 152 152 153 153 void AlignofExpr::print( std::ostream &os, int indent) const { 154 os << std::string( indent, ' ' ) <<"Alignof Expression on: ";154 os << "Alignof Expression on: "; 155 155 156 156 if (isType) … … 261 261 262 262 void AttrExpr::print( std::ostream &os, int indent) const { 263 os << std::string( indent, ' ' ) <<"Attr ";263 os << "Attr "; 264 264 attr->print( os, indent + 2 ); 265 265 if ( isType || expr ) { … … 467 467 468 468 void LogicalExpr::print( std::ostream &os, int indent )const { 469 os << std::string( indent, ' ' ) <<"Short-circuited operation (" << (isAnd?"and":"or") << ") on: ";469 os << "Short-circuited operation (" << (isAnd?"and":"or") << ") on: "; 470 470 arg1->print(os); 471 471 os << " and "; -
src/SynTree/Expression.h
r242a902 rf19339e 80 80 class ApplicationExpr : public Expression { 81 81 public: 82 ApplicationExpr( Expression * function );82 ApplicationExpr( Expression * function, const std::list<Expression *> & args = std::list<Expression *>() ); 83 83 ApplicationExpr( const ApplicationExpr & other ); 84 84 virtual ~ApplicationExpr();
Note: See TracChangeset
for help on using the changeset viewer.