Ignore:
Timestamp:
Jul 15, 2015, 12:30:25 PM (4 years ago)
Author:
nmedfort
Message:

Moved resolveProperty responsibilities out of RE_Parser but kept expansion of Name objects with definitions in it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_namemap.cpp

    r4671 r4673  
    4747        }
    4848        else {
    49 
    5049            std::string classname = name->getName();
    5150            auto f = mNameMap.find(classname);
    5251            if (f != mNameMap.end()) {
    5352                return f->second;
    54             }
    55             insert(std::move(classname), name);
    56             if (name->getType() == Name::Type::UnicodeProperty) {
    57                 resolveProperty(name);
    58                 RE * def = name->getDefinition();
    59                 if (def) {
    60                     name->setDefinition(process(def, CC_type::UnicodeClass));
    61                 }
    62             }
    63 
    64             return name;
     53            }           
     54            return insert(std::move(classname), name);
    6555        }
    6656    }
Note: See TracChangeset for help on using the changeset viewer.