Changeset 28f8f15 for src/SynTree
- Timestamp:
- Apr 27, 2023, 3:13:24 PM (2 years ago)
- Branches:
- ADT
- Children:
- 561354f
- Parents:
- b110bcc
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/AggregateDecl.cc
rb110bcc r28f8f15 29 29 30 30 // These must harmonize with the corresponding AggregateDecl::Aggregate enumerations. 31 static const char * aggregateNames[] = { "struct", "union", "enum", "exception", "trait", "generator", "coroutine", "monitor", "thread", "NoAggregateName" };31 static const char * aggregateNames[] = { "struct", "union", "enum", "exception", "trait", "generator", "coroutine", "monitor", "thread", "NoAggregateName", "data" }; 32 32 33 33 const char * AggregateDecl::aggrString( AggregateDecl::Aggregate aggr ) { -
src/SynTree/Declaration.h
rb110bcc r28f8f15 268 268 typedef Declaration Parent; 269 269 public: 270 enum Aggregate { Struct, Union, Enum, Exception, Trait, Generator, Coroutine, Monitor, Thread, NoAggregate };270 enum Aggregate { Struct, Union, Enum, Exception, Trait, Generator, Coroutine, Monitor, Thread, NoAggregate, ADT }; 271 271 static const char * aggrString( Aggregate aggr ); 272 272 … … 341 341 Type * base; 342 342 enum EnumHiding { Visible, Hide } hide; 343 344 std::list<StructDecl*> data_constructors; 345 UnionDecl * data_union; 346 EnumDecl * tags; 347 StructDecl * tag_union; 343 348 344 349 EnumDecl( const std::string & name,
Note:
See TracChangeset
for help on using the changeset viewer.