Changeset e39241b for src/SynTree
- Timestamp:
- Apr 17, 2017, 5:43:01 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 7069652
- Parents:
- 4ae83a4b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r4ae83a4b re39241b 167 167 std::list< DeclarationWithType* >& get_assertions() { return assertions; } 168 168 169 virtual std::string typeString() const = 0; 170 169 171 virtual NamedTypeDecl *clone() const = 0; 170 172 virtual void print( std::ostream &os, int indent = 0 ) const; 171 173 virtual void printShort( std::ostream &os, int indent = 0 ) const; 172 174 protected: 173 virtual std::string typeString() const = 0;174 175 private: 175 176 Type *base; … … 202 203 TypeDecl * set_sized( bool newValue ) { sized = newValue; return this; } 203 204 205 virtual std::string typeString() const; 206 204 207 virtual TypeDecl *clone() const { return new TypeDecl( *this ); } 205 208 virtual void accept( Visitor &v ) { v.visit( this ); } 206 209 virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); } 207 210 private: 208 virtual std::string typeString() const;209 211 Kind kind; 210 212 bool sized; … … 217 219 TypedefDecl( const TypedefDecl &other ) : Parent( other ) {} 218 220 221 virtual std::string typeString() const; 222 219 223 virtual TypedefDecl *clone() const { return new TypedefDecl( *this ); } 220 224 virtual void accept( Visitor &v ) { v.visit( this ); } 221 225 virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); } 222 226 private: 223 virtual std::string typeString() const;224 227 }; 225 228
Note: See TracChangeset
for help on using the changeset viewer.