Changeset 59c8dff for src/AST/Expr.cpp


Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (9 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f988834
Parents:
8b4faf6
Message:

Draft Implementation for enum position pesudo function (posE). EnumPosExpr? is mostly irrelevant for now. It is used in development/code probing and will be removed later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    r8b4faf6 r59c8dff  
    307307}
    308308
     309//
     310
     311// --- EnumPosExpr
     312EnumPosExpr::EnumPosExpr( const CodeLocation & loc, const EnumInstType * ty)
     313: Expr( loc, new BasicType{ BasicType::UnsignedInt }), type( ty ) {
     314        assert( ty );
     315}
     316
     317EnumPosExpr::EnumPosExpr( const CodeLocation & loc, const Expr * expr )
     318: Expr( loc, new BasicType{ BasicType::UnsignedInt }), expr(expr) {
     319        assert( expr );
     320}
     321
     322
    309323// --- LogicalExpr
    310324
Note: See TracChangeset for help on using the changeset viewer.