Changes in src/SynTree/Mutator.cc [2a4b088:630a82a]
- File:
-
- 1 edited
-
src/SynTree/Mutator.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r2a4b088 r630a82a 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 25 19:21:33 201513 // Update Count : 1 112 // Last Modified On : Fri Apr 1 18:05:16 2016 13 // Update Count : 16 14 14 // 15 15 … … 63 63 } 64 64 65 Declaration *Mutator::mutate( ContextDecl *aggregateDecl ) {65 Declaration *Mutator::mutate( TraitDecl *aggregateDecl ) { 66 66 handleAggregateDecl( aggregateDecl ); 67 67 return aggregateDecl; … … 336 336 } 337 337 338 Expression *Mutator::mutate( CompoundLiteralExpr *compLitExpr ) { 339 mutateAll( compLitExpr->get_results(), *this ); 340 compLitExpr->set_type( maybeMutate( compLitExpr->get_type(), *this ) ); 341 compLitExpr->set_initializer( maybeMutate( compLitExpr->get_initializer(), *this ) ); 342 return compLitExpr; 343 } 344 338 345 Type *Mutator::mutate( VoidType *voidType ) { 339 346 mutateAll( voidType->get_forall(), *this ); … … 387 394 } 388 395 389 Type *Mutator::mutate( ContextInstType *aggregateUseType ) {396 Type *Mutator::mutate( TraitInstType *aggregateUseType ) { 390 397 handleReferenceToType( aggregateUseType ); 391 398 mutateAll( aggregateUseType->get_members(), *this ); … … 421 428 } 422 429 430 Type *Mutator::mutate( VarArgsType *varArgsType ) { 431 mutateAll( varArgsType->get_forall(), *this ); 432 return varArgsType; 433 } 434 423 435 Initializer *Mutator::mutate( SingleInit *singleInit ) { 424 436 singleInit->set_value( singleInit->get_value()->acceptMutator( *this ) );
Note:
See TracChangeset
for help on using the changeset viewer.