Changeset 358e3481 for src/AST


Ignore:
Timestamp:
Jul 11, 2024, 2:30:31 PM (8 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
9c447e2
Parents:
3be81a4
Message:

Visit the else_ children of loops. I don't know how things worked this long, but hopefully it will not matter going forward.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r3be81a4 r358e3481  
    784784                maybe_accept_top( node, &WhileDoStmt::cond  );
    785785                maybe_accept_as_compound( node, &WhileDoStmt::body  );
     786                maybe_accept_as_compound( node, &WhileDoStmt::else_ );
    786787        }
    787788
     
    804805                maybe_accept_top( node, &ForStmt::range_over );
    805806                maybe_accept_as_compound( node, &ForStmt::body  );
     807                maybe_accept_as_compound( node, &ForStmt::else_ );
    806808        }
    807809
Note: See TracChangeset for help on using the changeset viewer.