Changeset 6a45bd78 for src/SynTree
- Timestamp:
- Dec 10, 2020, 3:59:41 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 3e3f236
- Parents:
- d4e338f
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rd4e338f r6a45bd78 181 181 public: 182 182 Type * base; 183 std::list< TypeDecl * > parameters;184 183 std::list< DeclarationWithType * > assertions; 185 184 … … 190 189 Type * get_base() const { return base; } 191 190 void set_base( Type * newValue ) { base = newValue; } 192 std::list< TypeDecl* > & get_parameters() { return parameters; }193 191 std::list< DeclarationWithType * >& get_assertions() { return assertions; } 194 192 -
src/SynTree/NamedTypeDecl.cc
rd4e338f r6a45bd78 29 29 NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other ) 30 30 : Parent( other ), base( maybeClone( other.base ) ) { 31 cloneAll( other.parameters, parameters );32 31 cloneAll( other.assertions, assertions ); 33 32 } … … 35 34 NamedTypeDecl::~NamedTypeDecl() { 36 35 delete base; 37 deleteAll( parameters );38 36 deleteAll( assertions ); 39 37 } … … 56 54 base->print( os, indent+1 ); 57 55 } // if 58 if ( ! parameters.empty() ) {59 os << endl << indent << "... with parameters" << endl;60 printAll( parameters, os, indent+1 );61 } // if62 56 if ( ! assertions.empty() ) { 63 57 os << endl << indent << "... with assertions" << endl; … … 76 70 base->print( os, indent+1 ); 77 71 } // if 78 if ( ! parameters.empty() ) {79 os << endl << indent << "... with parameters" << endl;80 printAll( parameters, os, indent+1 );81 } // if82 72 } 83 73
Note: See TracChangeset
for help on using the changeset viewer.