Changes in src/SynTree/Mutator.h [8688ce1:7f5566b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.h
r8688ce1 r7f5566b 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mutator.h -- 7 // Mutator.h -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 3 16:59:45 201613 // Update Count : 1212 // Last Modified On : Thu Jul 23 23:24:18 2015 13 // Update Count : 7 14 14 // 15 15 #include <cassert> 16 16 17 17 #include "SynTree.h" 18 #include " Common/SemanticError.h"18 #include "SemanticError.h" 19 19 20 20 #ifndef MUTATOR_H … … 31 31 virtual Declaration* mutate( UnionDecl *aggregateDecl ); 32 32 virtual Declaration* mutate( EnumDecl *aggregateDecl ); 33 virtual Declaration* mutate( TraitDecl *aggregateDecl );33 virtual Declaration* mutate( ContextDecl *aggregateDecl ); 34 34 virtual TypeDecl* mutate( TypeDecl *typeDecl ); 35 35 virtual Declaration* mutate( TypedefDecl *typeDecl ); … … 42 42 virtual Statement* mutate( ForStmt *forStmt ); 43 43 virtual Statement* mutate( SwitchStmt *switchStmt ); 44 virtual Statement* mutate( ChooseStmt *chooseStmt ); 45 virtual Statement* mutate( FallthruStmt *fallthruStmt ); 44 46 virtual Statement* mutate( CaseStmt *caseStmt ); 45 47 virtual Statement* mutate( BranchStmt *branchStmt ); … … 50 52 virtual NullStmt* mutate( NullStmt *nullStmt ); 51 53 virtual Statement* mutate( DeclStmt *declStmt ); 52 virtual Statement* mutate( ImplicitCtorDtorStmt *impCtorDtorStmt );53 54 54 55 virtual Expression* mutate( ApplicationExpr *applicationExpr ); … … 61 62 virtual Expression* mutate( MemberExpr *memberExpr ); 62 63 virtual Expression* mutate( VariableExpr *variableExpr ); 63 virtual Expression* mutate( ConstantExpr *constantExpr ); 64 virtual Expression* mutate( ConstantExpr *constantExpr ); 64 65 virtual Expression* mutate( SizeofExpr *sizeofExpr ); 65 virtual Expression* mutate( AlignofExpr *alignofExpr );66 virtual Expression* mutate( UntypedOffsetofExpr *offsetofExpr );67 virtual Expression* mutate( OffsetofExpr *offsetofExpr );68 virtual Expression* mutate( OffsetPackExpr *offsetPackExpr );69 66 virtual Expression* mutate( AttrExpr *attrExpr ); 70 67 virtual Expression* mutate( LogicalExpr *logicalExpr ); … … 75 72 virtual Expression* mutate( TypeExpr *typeExpr ); 76 73 virtual Expression* mutate( AsmExpr *asmExpr ); 77 virtual Expression* mutate( ImplicitCopyCtorExpr *impCpCtorExpr );78 74 virtual Expression* mutate( UntypedValofExpr *valofExpr ); 79 virtual Expression* mutate( CompoundLiteralExpr *compLitExpr );80 virtual Expression* mutate( RangeExpr *rangeExpr );81 75 82 76 virtual Type* mutate( VoidType *basicType ); … … 88 82 virtual Type* mutate( UnionInstType *aggregateUseType ); 89 83 virtual Type* mutate( EnumInstType *aggregateUseType ); 90 virtual Type* mutate( TraitInstType *aggregateUseType );84 virtual Type* mutate( ContextInstType *aggregateUseType ); 91 85 virtual Type* mutate( TypeInstType *aggregateUseType ); 92 86 virtual Type* mutate( TupleType *tupleType ); 93 87 virtual Type* mutate( TypeofType *typeofType ); 94 88 virtual Type* mutate( AttrType *attrType ); 95 virtual Type* mutate( VarArgsType *varArgsType );96 89 97 90 virtual Initializer* mutate( SingleInit *singleInit ); 98 91 virtual Initializer* mutate( ListInit *listInit ); 99 virtual Initializer* mutate( ConstructorInit *ctorInit );100 92 101 93 virtual Subrange *mutate( Subrange *subrange ); … … 111 103 inline TreeType *maybeMutate( TreeType *tree, MutatorType &mutator ) { 112 104 if ( tree ) { 113 TreeType *newnode = dynamic_cast< TreeType 105 TreeType *newnode = dynamic_cast< TreeType* >( tree->acceptMutator( mutator ) ); 114 106 assert( newnode ); 115 107 return newnode;
Note:
See TracChangeset
for help on using the changeset viewer.