Ignore:
Timestamp:
Mar 2, 2016, 6:15:02 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

change keyword type to otype and context to trait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypedefTable.cc

    r8f610e85 r4040425  
    1010// Created On       : Sat May 16 15:20:13 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 26 07:30:16 2015
    13 // Update Count     : 19
     12// Last Modified On : Wed Mar  2 17:25:55 2016
     13// Update Count     : 20
    1414//
    1515
     
    6161
    6262void TypedefTable::addToScope( const std::string &identifier, kind_t kind, int scope ) {
    63         if ( currentContext != "" && scope == contextScope ) {
     63        if ( currentTrait != "" && scope == contextScope ) {
    6464                DeferredEntry entry = { identifier, kind };
    65                 contexts[currentContext].push_back( entry );
     65                contexts[currentTrait].push_back( entry );
    6666        } else {
    6767                debugPrint( "Adding " << identifier << " as kind " << kind << " scope " << scope << " from scope " << currentScope << endl );
     
    112112}
    113113
    114 void TypedefTable::openContext( const std::string &contextName ) {
     114void TypedefTable::openTrait( const std::string &contextName ) {
    115115        map< string, deferListType >::iterator i = contexts.find( contextName );
    116116        if ( i != contexts.end() ) {
     
    150150}
    151151
    152 void TypedefTable::enterContext( const std::string &contextName ) {
    153         currentContext = contextName;
     152void TypedefTable::enterTrait( const std::string &contextName ) {
     153        currentTrait = contextName;
    154154        contextScope = currentScope;
    155155}
    156156
    157 void TypedefTable::leaveContext() {
    158         currentContext = "";
     157void TypedefTable::leaveTrait() {
     158        currentTrait = "";
    159159}
    160160
Note: See TracChangeset for help on using the changeset viewer.