Changeset 28f8f15 for src/SynTree


Ignore:
Timestamp:
Apr 27, 2023, 3:13:24 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT
Children:
561354f
Parents:
b110bcc
Message:

Save progress

Location:
src/SynTree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    rb110bcc r28f8f15  
    2929
    3030// These must harmonize with the corresponding AggregateDecl::Aggregate enumerations.
    31 static const char * aggregateNames[] = { "struct", "union", "enum", "exception", "trait", "generator", "coroutine", "monitor", "thread", "NoAggregateName" };
     31static const char * aggregateNames[] = { "struct", "union", "enum", "exception", "trait", "generator", "coroutine", "monitor", "thread", "NoAggregateName", "data" };
    3232
    3333const char * AggregateDecl::aggrString( AggregateDecl::Aggregate aggr ) {
  • src/SynTree/Declaration.h

    rb110bcc r28f8f15  
    268268        typedef Declaration Parent;
    269269  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 };
    271271        static const char * aggrString( Aggregate aggr );
    272272
     
    341341        Type * base;
    342342        enum EnumHiding { Visible, Hide } hide;
     343
     344        std::list<StructDecl*> data_constructors;
     345        UnionDecl * data_union;
     346        EnumDecl * tags;
     347        StructDecl * tag_union;
    343348
    344349        EnumDecl( const std::string & name,
Note: See TracChangeset for help on using the changeset viewer.