Changeset 00c32e9
- Timestamp:
- Aug 4, 2016, 1:10:04 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- cf37a8e
- Parents:
- bee4283
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
rbee4283 r00c32e9 83 83 } 84 84 85 CommaExprNode *ExpressionNode::add_to_list( ExpressionNode *exp ) {86 return new CommaExprNode( this, exp );87 }85 // CommaExprNode *ExpressionNode::add_to_list( ExpressionNode *exp ) { 86 // return new CommaExprNode( this, exp ); 87 // } 88 88 89 89 //############################################################################## … … 616 616 } 617 617 618 CommaExprNode *CommaExprNode::add_to_list( ExpressionNode *exp ) {619 add_arg( exp );620 621 return this;622 }618 // CommaExprNode *CommaExprNode::add_to_list( ExpressionNode *exp ) { 619 // add_arg( exp ); 620 // 621 // return this; 622 // } 623 623 624 624 CommaExprNode::CommaExprNode( const CommaExprNode &other ) : CompositeExprNode( other ) { -
src/Parser/ParseNode.h
rbee4283 r00c32e9 77 77 virtual ExpressionNode *clone() const = 0; 78 78 79 virtual CommaExprNode *add_to_list( ExpressionNode * );79 // virtual CommaExprNode *add_to_list( ExpressionNode * ); 80 80 81 81 ExpressionNode *get_argName() const { return argName; } … … 299 299 CommaExprNode( const CommaExprNode &other ); 300 300 301 virtual CommaExprNode *add_to_list( ExpressionNode * );301 // virtual CommaExprNode *add_to_list( ExpressionNode * ); 302 302 virtual CommaExprNode *clone() const { return new CommaExprNode( *this ); } 303 303 }; … … 485 485 std::string get_target() const; 486 486 487 StatementNode *add_controlexp( ExpressionNode * );487 // StatementNode *add_controlexp( ExpressionNode * ); 488 488 StatementNode *append_block( StatementNode * ); 489 489 StatementNode *append_last_case( StatementNode * ); -
src/Parser/StatementNode.cc
rbee4283 r00c32e9 107 107 } 108 108 109 StatementNode *StatementNode::add_controlexp( ExpressionNode *e ) {110 if ( control && e )111 control->add_to_list( e ); // xxx - check this112 return this;113 }109 // StatementNode *StatementNode::add_controlexp( ExpressionNode *e ) { 110 // if ( control && e ) 111 // control->add_to_list( e ); // xxx - check this 112 // return this; 113 // } 114 114 115 115 StatementNode *StatementNode::append_block( StatementNode *stmt ) {
Note: See TracChangeset
for help on using the changeset viewer.