Changes in src/SynTree/Mutator.cc [447c356:96f9ef5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r447c356 r96f9ef5 17 17 #include <list> // for list 18 18 19 #include "Attribute.h" // for Attribute20 19 #include "Declaration.h" // for ObjectDecl, Declaration, DeclarationWi... 21 20 #include "Expression.h" // for Expression, ConstantExpr, ConditionalExpr … … 37 36 objectDecl->set_init( maybeMutate( objectDecl->get_init(), *this ) ); 38 37 objectDecl->set_bitfieldWidth( maybeMutate( objectDecl->get_bitfieldWidth(), *this ) ); 39 mutateAll( objectDecl->attributes, *this );40 38 return objectDecl; 41 39 } … … 44 42 functionDecl->set_functionType( maybeMutate( functionDecl->get_functionType(), *this ) ); 45 43 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); 46 mutateAll( functionDecl->attributes, *this );47 44 return functionDecl; 48 45 } … … 621 618 } 622 619 623 Attribute * Mutator::mutate( Attribute * attribute ) {624 mutateAll( attribute->parameters, *this );625 return attribute;626 }627 628 TypeSubstitution * Mutator::mutate( TypeSubstitution * sub ) {629 for ( auto & p : sub->typeEnv ) {630 p.second = maybeMutate( p.second, *this );631 }632 for ( auto & p : sub->varEnv ) {633 p.second = maybeMutate( p.second, *this );634 }635 return sub;636 }637 638 620 // Local Variables: // 639 621 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.