Changes in src/SynTree/Statement.h [936e9f4:65cdc1e]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r936e9f4 r65cdc1e 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Aug 16 16:28:55201713 // Update Count : 7011 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Aug 3 14:08:00 2017 13 // Update Count : 69 14 14 // 15 15 16 16 #pragma once 17 17 18 #include <iosfwd> // for ostream 19 #include <list> // for list 20 #include <memory> // for allocator 21 22 #include "BaseSyntaxNode.h" // for BaseSyntaxNode 23 #include "Common/SemanticError.h" // for SemanticError 24 #include "Label.h" // for Label 25 #include "Mutator.h" // for Mutator 26 #include "Visitor.h" // for Visitor 27 28 class CatchStmt; 29 class ConstantExpr; 30 class Declaration; 31 class Expression; 32 class FinallyStmt; 18 #include "BaseSyntaxNode.h" 19 #include "Label.h" 20 #include "Mutator.h" 21 #include "SynTree.h" 22 #include "Type.h" 23 #include "Visitor.h" 24 #include "Common/SemanticError.h" 33 25 34 26 class Statement : public BaseSyntaxNode { … … 127 119 class IfStmt : public Statement { 128 120 public: 129 std::list<Statement *> initialization;130 121 Expression *condition; 131 122 Statement *thenPart; … … 136 127 virtual ~IfStmt(); 137 128 138 std::list<Statement *> &get_initialization() { return initialization; }139 void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; }140 129 Expression *get_condition() { return condition; } 141 130 void set_condition( Expression *newValue ) { condition = newValue; }
Note:
See TracChangeset
for help on using the changeset viewer.