Changeset a08ba92 for translator/ResolvExpr/ResolveTypeof.cc
- Timestamp:
- May 19, 2015, 4:58:14 PM (11 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, string, stuck-waitfor-destruct, with_gc
- Children:
- 843054c2
- Parents:
- 01aeade
- File:
-
- 1 edited
-
translator/ResolvExpr/ResolveTypeof.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
translator/ResolvExpr/ResolveTypeof.cc
r01aeade ra08ba92 10 10 // Created On : Sun May 17 12:12:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun May 17 12:13:38201513 // Update Count : 212 // Last Modified On : Tue May 19 16:49:04 2015 13 // Update Count : 3 14 14 // 15 15 … … 23 23 24 24 namespace ResolvExpr { 25 namespace {25 namespace { 26 26 #if 0 27 27 void … … 34 34 } 35 35 #endif 36 }36 } 37 37 38 class ResolveTypeof : public Mutator {39 public:38 class ResolveTypeof : public Mutator { 39 public: 40 40 ResolveTypeof( const SymTab::Indexer &indexer ) : indexer( indexer ) {} 41 41 Type *mutate( TypeofType *typeofType ); 42 42 43 private:43 private: 44 44 const SymTab::Indexer &indexer; 45 };45 }; 46 46 47 Type *resolveTypeof( Type *type, const SymTab::Indexer &indexer ) {47 Type *resolveTypeof( Type *type, const SymTab::Indexer &indexer ) { 48 48 ResolveTypeof mutator( indexer ); 49 49 return type->acceptMutator( mutator ); 50 }50 } 51 51 52 Type *ResolveTypeof::mutate( TypeofType *typeofType ) {52 Type *ResolveTypeof::mutate( TypeofType *typeofType ) { 53 53 #if 0 54 54 std::cout << "resolving typeof: "; … … 71 71 } // if 72 72 return typeofType; 73 }73 } 74 74 } // namespace ResolvExpr 75 75
Note:
See TracChangeset
for help on using the changeset viewer.