Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Stmt.hpp

    r525f7ad rc92bdcc  
    237237        ptr<Expr> cond;
    238238        ptr<Expr> inc;
    239         ptr<Expr> range_over;
    240239        ptr<Stmt> body;
    241240        ptr<Stmt> else_;
     
    243242        ForStmt( const CodeLocation & loc, const std::vector<ptr<Stmt>> && inits, const Expr * cond,
    244243                         const Expr * inc, const Stmt * body, const std::vector<Label> && label = {} )
    245                 : Stmt(loc, std::move(label)), inits(std::move(inits)), cond(cond), inc(inc),
    246                         range_over(nullptr), body(body), else_(nullptr) {}
     244                : Stmt(loc, std::move(label)), inits(std::move(inits)), cond(cond), inc(inc), body(body), else_(nullptr) {}
    247245
    248246        ForStmt( const CodeLocation & loc, const std::vector<ptr<Stmt>> && inits, const Expr * cond,
    249247                         const Expr * inc, const Stmt * body, const Stmt * else_, const std::vector<Label> && labels = {} )
    250                 : Stmt(loc, std::move(labels)), inits(std::move(inits)), cond(cond), inc(inc),
    251                         range_over(nullptr), body(body), else_(else_) {}
    252 
    253         ForStmt( const CodeLocation & loc, const std::vector<ptr<Stmt>> && inits, const Expr * range_over,
    254                          const Stmt * body, const Stmt * else_ )
    255                 : Stmt(loc, std::move(labels)), inits(std::move(inits)), range_over(range_over), body(body), else_(else_) {}
     248                : Stmt(loc, std::move(labels)), inits(std::move(inits)), cond(cond), inc(inc), body(body), else_(else_) {}
    256249
    257250        const Stmt * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.