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