Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r67cf18c rbdd0755  
    194194        };
    195195
    196         TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, Type * init = nullptr );
     196        TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind );
    197197        TypeDecl( const TypeDecl &other );
    198         virtual ~TypeDecl();
    199198
    200199        Kind get_kind() const { return kind; }
    201 
    202         Type * get_init() const { return init; }
    203         TypeDecl * set_init( Type * newValue ) { init = newValue; return this; }
    204200
    205201        bool isComplete() const { return kind == Any || sized; }
     
    213209        virtual void accept( Visitor &v ) { v.visit( this ); }
    214210        virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    215         virtual void print( std::ostream &os, int indent = 0 ) const;
    216 
    217211  private:
    218212        Kind kind;
    219         Type * init;
    220213        bool sized;
    221214};
Note: See TracChangeset for help on using the changeset viewer.