Changeset 99cad3aa for src/Parser/ParseNode.cc
- Timestamp:
- Aug 18, 2016, 5:00:28 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:
- 5b7a60c8
- Parents:
- 1cb2282
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.cc
r1cb2282 r99cad3aa 10 10 // Created On : Sat May 16 13:26:29 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 16 21:31:47201613 // Update Count : 12 512 // Last Modified On : Wed Aug 17 23:14:16 2016 13 // Update Count : 126 14 14 // 15 15 … … 19 19 int ParseNode::indent_by = 4; 20 20 21 ParseNode::ParseNode() {};22 ParseNode::ParseNode( const string *name ) : name( *name ) { assert( false ); delete name; }23 ParseNode::ParseNode( const string &name ) : name( name ) { assert( false ); }24 25 ParseNode::~ParseNode() {26 delete next;27 };28 29 ParseNode *ParseNode::get_last() {30 ParseNode *current;31 for ( current = this; current->get_next() != 0; current = current->get_next() );32 return current;33 }34 35 ParseNode *ParseNode::set_last( ParseNode *newlast ) {36 if ( newlast != 0 ) get_last()->set_next( newlast );37 return this;38 }39 40 21 // Local Variables: // 41 22 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.