Changeset 873ffb7 for src/SynTree/Declaration.h
- Timestamp:
- Jul 16, 2016, 9:19:33 AM (9 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:
- 20340c2, 7a2c5391
- Parents:
- cb2e8ce (diff), 5d125e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rcb2e8ce r873ffb7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Jun 30 21:17:24201613 // Update Count : 3 812 // Last Modified On : Tue Jul 12 21:03:17 2016 13 // Update Count : 39 14 14 // 15 15 … … 210 210 std::list<TypeDecl*>& get_parameters() { return parameters; } 211 211 212 bool has_body() const { return body; } 213 AggregateDecl * set_body( bool body ) { AggregateDecl::body = body; return this; } 214 212 215 virtual void print( std::ostream &os, int indent = 0 ) const; 213 216 virtual void printShort( std::ostream &os, int indent = 0 ) const; … … 218 221 std::list<Declaration*> members; 219 222 std::list<TypeDecl*> parameters; 223 bool body; 220 224 }; 221 225 … … 229 233 virtual void accept( Visitor &v ) { v.visit( this ); } 230 234 virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); } 231 232 235 private: 233 236 virtual std::string typeString() const;
Note:
See TracChangeset
for help on using the changeset viewer.