Changes in src/SynTree/Declaration.h [409433da:ddfd945]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r409433da rddfd945 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 16:05:08201713 // Update Count : 1 2112 // Last Modified On : Thu Mar 16 08:34:11 2017 13 // Update Count : 118 14 14 // 15 15 … … 255 255 typedef AggregateDecl Parent; 256 256 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 ) {} 258 258 StructDecl( const StructDecl &other ) : Parent( other ) {} 259 259 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 264 260 virtual StructDecl *clone() const { return new StructDecl( *this ); } 265 261 virtual void accept( Visitor &v ) { v.visit( this ); } 266 262 virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); } 267 263 private: 268 DeclarationNode::Aggregate kind;269 264 virtual std::string typeString() const; 270 265 };
Note: See TracChangeset
for help on using the changeset viewer.