Changes in src/SynTree/Mutator.cc [8688ce1:89e6ffc]
- File:
-
- 1 edited
-
src/SynTree/Mutator.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r8688ce1 r89e6ffc 339 339 } 340 340 341 Expression *Mutator::mutate( UntypedValofExpr *valofExpr ) { 342 mutateAll( valofExpr->get_results(), *this ); 343 return valofExpr; 341 Expression* Mutator::mutate( ConstructorExpr *ctorExpr ) { 342 mutateAll( ctorExpr->get_results(), *this ); 343 ctorExpr->set_callExpr( maybeMutate( ctorExpr->get_callExpr(), *this ) ); 344 return ctorExpr; 344 345 } 345 346 … … 349 350 compLitExpr->set_initializer( maybeMutate( compLitExpr->get_initializer(), *this ) ); 350 351 return compLitExpr; 352 } 353 354 Expression *Mutator::mutate( UntypedValofExpr *valofExpr ) { 355 mutateAll( valofExpr->get_results(), *this ); 356 return valofExpr; 351 357 } 352 358 … … 447 453 } 448 454 455 Type *Mutator::mutate( ZeroType *zeroType ) { 456 mutateAll( zeroType->get_forall(), *this ); 457 return zeroType; 458 } 459 460 Type *Mutator::mutate( OneType *oneType ) { 461 mutateAll( oneType->get_forall(), *this ); 462 return oneType; 463 } 464 449 465 Initializer *Mutator::mutate( SingleInit *singleInit ) { 450 466 singleInit->set_value( singleInit->get_value()->acceptMutator( *this ) );
Note:
See TracChangeset
for help on using the changeset viewer.