Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    re39241b r409433d  
    167167        std::list< DeclarationWithType* >& get_assertions() { return assertions; }
    168168
     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:
    169173        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:
    175174  private:
    176175        Type *base;
     
    203202        TypeDecl * set_sized( bool newValue ) { sized = newValue; return this; }
    204203
    205         virtual std::string typeString() const;
    206 
    207204        virtual TypeDecl *clone() const { return new TypeDecl( *this ); }
    208205        virtual void accept( Visitor &v ) { v.visit( this ); }
    209206        virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    210207  private:
     208        virtual std::string typeString() const;
    211209        Kind kind;
    212210        bool sized;
     
    219217        TypedefDecl( const TypedefDecl &other ) : Parent( other ) {}
    220218
    221         virtual std::string typeString() const;
    222 
    223219        virtual TypedefDecl *clone() const { return new TypedefDecl( *this ); }
    224220        virtual void accept( Visitor &v ) { v.visit( this ); }
    225221        virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    226222  private:
     223        virtual std::string typeString() const;
    227224};
    228225
Note: See TracChangeset for help on using the changeset viewer.