Changeset f19339e


Ignore:
Timestamp:
Jul 18, 2017, 4:37:18 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
4fbdfae0
Parents:
242a902
Message:

Add arg list to ApplicationExpr? constructor

Location:
src/SynTree
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ApplicationExpr.cc

    r242a902 rf19339e  
    4444}
    4545
    46 ApplicationExpr::ApplicationExpr( Expression *funcExpr ) : function( funcExpr ) {
     46ApplicationExpr::ApplicationExpr( Expression *funcExpr, const std::list<Expression *> & args ) : function( funcExpr ), args( args ) {
    4747        PointerType *pointer = safe_dynamic_cast< PointerType* >( funcExpr->get_result() );
    4848        FunctionType *function = safe_dynamic_cast< FunctionType* >( pointer->get_base() );
  • src/SynTree/Expression.cc

    r242a902 rf19339e  
    152152
    153153void AlignofExpr::print( std::ostream &os, int indent) const {
    154         os << std::string( indent, ' ' ) << "Alignof Expression on: ";
     154        os << "Alignof Expression on: ";
    155155
    156156        if (isType)
     
    261261
    262262void AttrExpr::print( std::ostream &os, int indent) const {
    263         os << std::string( indent, ' ' ) << "Attr ";
     263        os << "Attr ";
    264264        attr->print( os, indent + 2 );
    265265        if ( isType || expr ) {
     
    467467
    468468void 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: ";
    470470        arg1->print(os);
    471471        os << " and ";
  • src/SynTree/Expression.h

    r242a902 rf19339e  
    8080class ApplicationExpr : public Expression {
    8181  public:
    82         ApplicationExpr( Expression * function );
     82        ApplicationExpr( Expression * function, const std::list<Expression *> & args = std::list<Expression *>() );
    8383        ApplicationExpr( const ApplicationExpr & other );
    8484        virtual ~ApplicationExpr();
Note: See TracChangeset for help on using the changeset viewer.