Changeset 3f9a8d0 for src/AST/Type.hpp


Ignore:
Timestamp:
Feb 26, 2024, 8:17:20 AM (19 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
f1149ac
Parents:
1bb76ad (diff), a4da45e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Type.hpp

    r1bb76ad r3f9a8d0  
    362362using EnumInstType = SueInstType<EnumDecl>;
    363363
     364class EnumPosType final : public Type {
     365public:
     366        readonly<EnumInstType> instance;
     367        const Type * accept( Visitor & v ) const override { return v.visit( this ); }
     368        EnumPosType( const EnumInstType * instance ): instance(instance) {}
     369       
     370private:
     371        EnumPosType * clone() const override { return new EnumPosType{ *this }; }
     372        MUTATE_FRIEND
     373};
     374
    364375/// An instance of a trait type.
    365376class TraitInstType final : public BaseInstType {
Note: See TracChangeset for help on using the changeset viewer.