Update of /cvsroot/cpptool/rfta/include/rfta/refactoring
In directory sc8-pr-cvs1:/tmp/cvs-serv373/include/rfta/refactoring
Modified Files:
CodeModelStatements.h
Log Message:
* added support for modification of the if/then substatement.
Index: CodeModelStatements.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/CodeModelStatements.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** CodeModelStatements.h 15 Mar 2003 21:51:42 -0000 1.5
--- CodeModelStatements.h 16 Mar 2003 10:23:05 -0000 1.6
***************
*** 29,32 ****
--- 29,33 ----
Change()
+ : type_( unmodified )
{
}
***************
*** 39,42 ****
--- 40,53 ----
}
+ bool wasReplaced() const
+ {
+ return type_ == replaced;
+ }
+
+ bool isUnmodified() const
+ {
+ return type_ == unmodified;
+ }
+
ChangeType type_;
SourceRange oldRange_;
***************
*** 128,133 ****
--- 139,147 ----
StatementPtr getThenStatement() const;
+
void setThenStatement( const StatementPtr &statement );
+ Change getThenStatementChange() const;
+
bool hasElseStatement() const;
StatementPtr getElseStatement() const;
***************
*** 138,141 ****
--- 152,156 ----
private:
+ Change thenStatementChange_;
StatementPtr thenStatement_;
StatementPtr elseStatement_;
|