Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r409433da rddfd945  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 17 16:05:08 2017
    13 // Update Count     : 121
     12// Last Modified On : Thu Mar 16 08:34:11 2017
     13// Update Count     : 118
    1414//
    1515
     
    255255        typedef AggregateDecl Parent;
    256256  public:
    257         StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ), kind( kind ) {}
     257        StructDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {}
    258258        StructDecl( const StructDecl &other ) : Parent( other ) {}
    259259
    260         bool is_coroutine() { return kind == DeclarationNode::Coroutine; }
    261         bool is_monitor() { return kind == DeclarationNode::Monitor; }
    262         bool is_thread() { return kind == DeclarationNode::Thread; }
    263 
    264260        virtual StructDecl *clone() const { return new StructDecl( *this ); }
    265261        virtual void accept( Visitor &v ) { v.visit( this ); }
    266262        virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); }
    267263  private:
    268         DeclarationNode::Aggregate kind;
    269264        virtual std::string typeString() const;
    270265};
Note: See TracChangeset for help on using the changeset viewer.