Changes in src/SynTree/Declaration.h [6a45bd78:07de76b]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r6a45bd78 r07de76b 181 181 public: 182 182 Type * base; 183 std::list< TypeDecl * > parameters; 183 184 std::list< DeclarationWithType * > assertions; 184 185 … … 189 190 Type * get_base() const { return base; } 190 191 void set_base( Type * newValue ) { base = newValue; } 192 std::list< TypeDecl* > & get_parameters() { return parameters; } 191 193 std::list< DeclarationWithType * >& get_assertions() { return assertions; } 192 194 … … 300 302 301 303 bool is_coroutine() { return kind == Coroutine; } 302 bool is_generator() { return kind == Generator; } 303 bool is_monitor () { return kind == Monitor ; } 304 bool is_thread () { return kind == Thread ; } 305 306 // Make a type instance of this declaration. 307 StructInstType * makeInst( std::list< Expression * > const & parameters ); 308 StructInstType * makeInst( std::list< Expression * > && parameters ); 304 bool is_monitor() { return kind == Monitor; } 305 bool is_thread() { return kind == Thread; } 309 306 310 307 virtual StructDecl * clone() const override { return new StructDecl( *this ); }
Note:
See TracChangeset
for help on using the changeset viewer.