Changeset 1d4580a for src/Parser/ParseNode.cc
- Timestamp:
- Aug 14, 2016, 8:36:29 AM (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:
- 777bfcf
- Parents:
- 46b4259
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.cc
r46b4259 r1d4580a 10 10 // Created On : Sat May 16 13:26:29 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Aug 7 23:32:47201613 // Update Count : 9 412 // Last Modified On : Sat Aug 13 18:55:35 2016 13 // Update Count : 98 14 14 // 15 15 … … 31 31 ParseNode *current = this; 32 32 33 while ( current->get_link() != 0 ) 34 current = current->get_link(); 35 33 while ( current->get_next() != 0 ) 34 current = current->get_next(); 36 35 return current; 37 36 } 38 37 39 ParseNode *ParseNode::set_l ink( ParseNode *next_ ) {38 ParseNode *ParseNode::set_last( ParseNode *next_ ) { 40 39 if ( next_ != 0 ) get_last()->next = next_; 41 40 return this; … … 54 53 55 54 ParseNode &ParseNode::operator,( ParseNode &p ) { 56 set_link( &p ); 57 55 set_last( &p ); 58 56 return *this; 59 57 }
Note: See TracChangeset
for help on using the changeset viewer.