Changes in src/SynTree/Declaration.h [e39241b:409433da]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
re39241b r409433da 167 167 std::list< DeclarationWithType* >& get_assertions() { return assertions; } 168 168 169 virtual NamedTypeDecl *clone() const = 0; 170 virtual void print( std::ostream &os, int indent = 0 ) const; 171 virtual void printShort( std::ostream &os, int indent = 0 ) const; 172 protected: 169 173 virtual std::string typeString() const = 0; 170 171 virtual NamedTypeDecl *clone() const = 0;172 virtual void print( std::ostream &os, int indent = 0 ) const;173 virtual void printShort( std::ostream &os, int indent = 0 ) const;174 protected:175 174 private: 176 175 Type *base; … … 203 202 TypeDecl * set_sized( bool newValue ) { sized = newValue; return this; } 204 203 205 virtual std::string typeString() const;206 207 204 virtual TypeDecl *clone() const { return new TypeDecl( *this ); } 208 205 virtual void accept( Visitor &v ) { v.visit( this ); } 209 206 virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); } 210 207 private: 208 virtual std::string typeString() const; 211 209 Kind kind; 212 210 bool sized; … … 219 217 TypedefDecl( const TypedefDecl &other ) : Parent( other ) {} 220 218 221 virtual std::string typeString() const;222 223 219 virtual TypedefDecl *clone() const { return new TypedefDecl( *this ); } 224 220 virtual void accept( Visitor &v ) { v.visit( this ); } 225 221 virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); } 226 222 private: 223 virtual std::string typeString() const; 227 224 }; 228 225
Note: See TracChangeset
for help on using the changeset viewer.