Definition at line 142 of file Print.cpp.
◆ NameScope()
WAST::NameScope::NameScope |
( |
const char | inSigil | ) |
|
|
inline |
Definition at line 144 of file Print.cpp.
144: sigil(inSigil) { nameToCountMap[""] = 0; }
◆ map()
void WAST::NameScope::map |
( |
std::string & | name | ) |
|
|
inline |
Definition at line 146 of file Print.cpp.
147 {
148 auto mapIt = nameToCountMap.find(
name);
149 if(mapIt == nameToCountMap.end()) { nameToCountMap[
name] = 1; }
150 else {
name =
name + std::to_string(mapIt->second++); }
152 }
The documentation for this struct was generated from the following file: