Changes in src/SynTree/Mutator.cc [1db21619:843054c2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r1db21619 r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 16 16:10:54201513 // Update Count : 312 // Last Modified On : Mon May 18 10:10:46 2015 13 // Update Count : 1 14 14 // 15 15 … … 28 28 Mutator::~Mutator() {} 29 29 30 DeclarationWithType*Mutator::mutate( ObjectDecl *objectDecl ) {30 ObjectDecl *Mutator::mutate( ObjectDecl *objectDecl ) { 31 31 objectDecl->set_type( maybeMutate( objectDecl->get_type(), *this ) ); 32 32 objectDecl->set_init( maybeMutate( objectDecl->get_init(), *this ) ); … … 109 109 110 110 Statement *Mutator::mutate( ForStmt *forStmt ) { 111 mutateAll( forStmt->get_initialization(), *this);111 forStmt->set_initialization( maybeMutate( forStmt->get_initialization(), *this ) ); 112 112 forStmt->set_condition( maybeMutate( forStmt->get_condition(), *this ) ); 113 113 forStmt->set_increment( maybeMutate( forStmt->get_increment(), *this ) );
Note:
See TracChangeset
for help on using the changeset viewer.