Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    r6d49ea3 r936e9f4  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug 17 15:37:53 2017
    13 // Update Count     : 72
     12// Last Modified On : Wed Aug 16 16:28:55 2017
     13// Update Count     : 70
    1414//
    1515
     
    127127class IfStmt : public Statement {
    128128  public:
     129        std::list<Statement *> initialization;
    129130        Expression *condition;
    130131        Statement *thenPart;
    131132        Statement *elsePart;
    132         std::list<Statement *> initialization;
    133 
    134         IfStmt( std::list<Label> labels, Expression *condition, Statement *thenPart, Statement *elsePart,
    135                         std::list<Statement *> initialization = std::list<Statement *>() );
     133
     134        IfStmt( std::list<Label> labels, Expression *condition, Statement *thenPart, Statement *elsePart );
    136135        IfStmt( const IfStmt &other );
    137136        virtual ~IfStmt();
    138137
    139138        std::list<Statement *> &get_initialization() { return initialization; }
     139        void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; }
    140140        Expression *get_condition() { return condition; }
    141141        void set_condition( Expression *newValue ) { condition = newValue; }
     
    239239
    240240        std::list<Statement *> &get_initialization() { return initialization; }
     241        void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; }
    241242        Expression *get_condition() { return condition; }
    242243        void set_condition( Expression *newValue ) { condition = newValue; }
Note: See TracChangeset for help on using the changeset viewer.