Ignore:
Timestamp:
Jul 3, 2024, 5:32:06 PM (2 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
39cf5cc
Parents:
597f284
Message:

Change (enum) range loop so that it works on any type that define succ() and upperBound()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cpp

    r597f284 r6d2b3dc  
    216216                return new ast::ForStmt( location,
    217217                        std::move( astinit ),
    218                         range_over, forctl->kind == OperKinds::LThan,
     218                        range_over, forctl->kind == OperKinds::LEThan,
    219219                        buildMoveSingle( stmt ),
    220220                        buildMoveOptional( else_ )
Note: See TracChangeset for help on using the changeset viewer.