Changeset 59c8dff for src/AST/Print.cpp


Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (5 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/Print.cpp

    r8b4faf6 r59c8dff  
    11831183        }
    11841184
     1185        virtual const ast::Expr * visit( const ast::EnumPosExpr * node ) override final {
     1186                os << "Enum Position Expression on: ";
     1187                ++indent;
     1188                safe_print( node->type );
     1189                --indent;
     1190                postprint( node );
     1191                return node;
     1192        }
     1193
    11851194        virtual const ast::Expr * visit( const ast::LogicalExpr * node ) override final {
    11861195                os << "Short-circuited operation (" << (node->isAnd ? "and" : "or") << ") on: ";
Note: See TracChangeset for help on using the changeset viewer.