Changeset 0f9e4403 for src/SynTree/Mutator.cc
- Timestamp:
- Apr 15, 2016, 12:03:11 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 29ad0ac
- Parents:
- c5833e8 (diff), 37f0da8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
rc5833e8 r0f9e4403 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; … … 274 274 } 275 275 276 Expression *Mutator::mutate( OffsetPackExpr *offsetPackExpr ) { 277 mutateAll( offsetPackExpr->get_results(), *this ); 278 offsetPackExpr->set_type( maybeMutate( offsetPackExpr->get_type(), *this ) ); 279 return offsetPackExpr; 280 } 281 276 282 Expression *Mutator::mutate( AttrExpr *attrExpr ) { 277 283 mutateAll( attrExpr->get_results(), *this ); … … 336 342 } 337 343 344 Expression *Mutator::mutate( CompoundLiteralExpr *compLitExpr ) { 345 mutateAll( compLitExpr->get_results(), *this ); 346 compLitExpr->set_type( maybeMutate( compLitExpr->get_type(), *this ) ); 347 compLitExpr->set_initializer( maybeMutate( compLitExpr->get_initializer(), *this ) ); 348 return compLitExpr; 349 } 350 338 351 Type *Mutator::mutate( VoidType *voidType ) { 339 352 mutateAll( voidType->get_forall(), *this ); … … 387 400 } 388 401 389 Type *Mutator::mutate( ContextInstType *aggregateUseType ) {402 Type *Mutator::mutate( TraitInstType *aggregateUseType ) { 390 403 handleReferenceToType( aggregateUseType ); 391 404 mutateAll( aggregateUseType->get_members(), *this ); … … 421 434 } 422 435 436 Type *Mutator::mutate( VarArgsType *varArgsType ) { 437 mutateAll( varArgsType->get_forall(), *this ); 438 return varArgsType; 439 } 440 423 441 Initializer *Mutator::mutate( SingleInit *singleInit ) { 424 442 singleInit->set_value( singleInit->get_value()->acceptMutator( *this ) );
Note:
See TracChangeset
for help on using the changeset viewer.