Changes in src/SynTree/Statement.h [65cdc1e:936e9f4]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r65cdc1e r936e9f4 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr Aug 3 14:08:00201713 // Update Count : 6911 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 16 16:28:55 2017 13 // Update Count : 70 14 14 // 15 15 16 16 #pragma once 17 17 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" 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; 25 33 26 34 class Statement : public BaseSyntaxNode { … … 119 127 class IfStmt : public Statement { 120 128 public: 129 std::list<Statement *> initialization; 121 130 Expression *condition; 122 131 Statement *thenPart; … … 127 136 virtual ~IfStmt(); 128 137 138 std::list<Statement *> &get_initialization() { return initialization; } 139 void set_initialization( std::list<Statement *> newValue ) { initialization = newValue; } 129 140 Expression *get_condition() { return condition; } 130 141 void set_condition( Expression *newValue ) { condition = newValue; }
Note:
See TracChangeset
for help on using the changeset viewer.