Changes in src/SynTree/Mutator.h [7f5566b:8688ce1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.h
r7f5566b r8688ce1 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 : Thu Jul 23 23:24:18 201513 // Update Count : 712 // Last Modified On : Wed Aug 3 16:59:45 2016 13 // Update Count : 12 14 14 // 15 15 #include <cassert> 16 16 17 17 #include "SynTree.h" 18 #include " SemanticError.h"18 #include "Common/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( ContextDecl *aggregateDecl );33 virtual Declaration* mutate( TraitDecl *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 );46 44 virtual Statement* mutate( CaseStmt *caseStmt ); 47 45 virtual Statement* mutate( BranchStmt *branchStmt ); … … 52 50 virtual NullStmt* mutate( NullStmt *nullStmt ); 53 51 virtual Statement* mutate( DeclStmt *declStmt ); 52 virtual Statement* mutate( ImplicitCtorDtorStmt *impCtorDtorStmt ); 54 53 55 54 virtual Expression* mutate( ApplicationExpr *applicationExpr ); … … 62 61 virtual Expression* mutate( MemberExpr *memberExpr ); 63 62 virtual Expression* mutate( VariableExpr *variableExpr ); 64 virtual Expression* mutate( ConstantExpr *constantExpr ); 63 virtual Expression* mutate( ConstantExpr *constantExpr ); 65 64 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 ); 66 69 virtual Expression* mutate( AttrExpr *attrExpr ); 67 70 virtual Expression* mutate( LogicalExpr *logicalExpr ); … … 72 75 virtual Expression* mutate( TypeExpr *typeExpr ); 73 76 virtual Expression* mutate( AsmExpr *asmExpr ); 77 virtual Expression* mutate( ImplicitCopyCtorExpr *impCpCtorExpr ); 74 78 virtual Expression* mutate( UntypedValofExpr *valofExpr ); 79 virtual Expression* mutate( CompoundLiteralExpr *compLitExpr ); 80 virtual Expression* mutate( RangeExpr *rangeExpr ); 75 81 76 82 virtual Type* mutate( VoidType *basicType ); … … 82 88 virtual Type* mutate( UnionInstType *aggregateUseType ); 83 89 virtual Type* mutate( EnumInstType *aggregateUseType ); 84 virtual Type* mutate( ContextInstType *aggregateUseType );90 virtual Type* mutate( TraitInstType *aggregateUseType ); 85 91 virtual Type* mutate( TypeInstType *aggregateUseType ); 86 92 virtual Type* mutate( TupleType *tupleType ); 87 93 virtual Type* mutate( TypeofType *typeofType ); 88 94 virtual Type* mutate( AttrType *attrType ); 95 virtual Type* mutate( VarArgsType *varArgsType ); 89 96 90 97 virtual Initializer* mutate( SingleInit *singleInit ); 91 98 virtual Initializer* mutate( ListInit *listInit ); 99 virtual Initializer* mutate( ConstructorInit *ctorInit ); 92 100 93 101 virtual Subrange *mutate( Subrange *subrange ); … … 103 111 inline TreeType *maybeMutate( TreeType *tree, MutatorType &mutator ) { 104 112 if ( tree ) { 105 TreeType *newnode = dynamic_cast< TreeType * >( tree->acceptMutator( mutator ) );113 TreeType *newnode = dynamic_cast< TreeType * >( tree->acceptMutator( mutator ) ); 106 114 assert( newnode ); 107 115 return newnode;
Note:
See TracChangeset
for help on using the changeset viewer.