Changeset 936e9f4 for src/SynTree


Ignore:
Timestamp:
Aug 16, 2017, 6:31:41 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
21f0aa8, 6d49ea3
Parents:
fcc88a4
Message:

first attempt, add declarations into "if" conditional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    rfcc88a4 r936e9f4  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Thr Aug  3 14:08:00 2017
    13 // Update Count     : 69
     11// Last Modified By : Peter A. Buhr
     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;
     
    135136        virtual ~IfStmt();
    136137
     138        std::list<Statement *> &get_initialization() { return initialization; }
     139        void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; }
    137140        Expression *get_condition() { return condition; }
    138141        void set_condition( Expression *newValue ) { condition = newValue; }
Note: See TracChangeset for help on using the changeset viewer.