Ignore:
Timestamp:
Sep 23, 2024, 11:14:56 AM (5 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
738a9b4
Parents:
b723b63
Message:

Added ForeachStmt? (felt better than ForEachStmt?). This new node is a bit optimistic in that currently it is covering a very narrow case, but with improvements to it and RangeExpr?, it could handle many more kind of loops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Visitor.hpp

    rb723b63 rfca78f1  
    4141    virtual const ast::Stmt *             visit( const ast::WhileDoStmt          * ) = 0;
    4242    virtual const ast::Stmt *             visit( const ast::ForStmt              * ) = 0;
     43    virtual const ast::Stmt *             visit( const ast::ForeachStmt          * ) = 0;
    4344    virtual const ast::Stmt *             visit( const ast::SwitchStmt           * ) = 0;
    4445    virtual const ast::CaseClause *       visit( const ast::CaseClause           * ) = 0;
Note: See TracChangeset for help on using the changeset viewer.