Changeset 4040425 for src/Parser/TypedefTable.cc
- Timestamp:
- Mar 2, 2016, 6:15:02 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, string, with_gc
- Children:
- 36ebd03, b63e376
- Parents:
- 8f610e85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.cc
r8f610e85 r4040425 10 10 // Created On : Sat May 16 15:20:13 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 26 07:30:16 201513 // Update Count : 1912 // Last Modified On : Wed Mar 2 17:25:55 2016 13 // Update Count : 20 14 14 // 15 15 … … 61 61 62 62 void TypedefTable::addToScope( const std::string &identifier, kind_t kind, int scope ) { 63 if ( current Context != "" && scope == contextScope ) {63 if ( currentTrait != "" && scope == contextScope ) { 64 64 DeferredEntry entry = { identifier, kind }; 65 contexts[current Context].push_back( entry );65 contexts[currentTrait].push_back( entry ); 66 66 } else { 67 67 debugPrint( "Adding " << identifier << " as kind " << kind << " scope " << scope << " from scope " << currentScope << endl ); … … 112 112 } 113 113 114 void TypedefTable::open Context( const std::string &contextName ) {114 void TypedefTable::openTrait( const std::string &contextName ) { 115 115 map< string, deferListType >::iterator i = contexts.find( contextName ); 116 116 if ( i != contexts.end() ) { … … 150 150 } 151 151 152 void TypedefTable::enter Context( const std::string &contextName ) {153 current Context = contextName;152 void TypedefTable::enterTrait( const std::string &contextName ) { 153 currentTrait = contextName; 154 154 contextScope = currentScope; 155 155 } 156 156 157 void TypedefTable::leave Context() {158 current Context = "";157 void TypedefTable::leaveTrait() { 158 currentTrait = ""; 159 159 } 160 160
Note: See TracChangeset
for help on using the changeset viewer.