| 1223 | } |
| 1224 | |
| 1225 | Namespace::Entry *Namespace::createLocalEntry(StringTableEntry name) |
| 1226 | { |
| 1227 | for(Entry *walk = mEntryList; walk; walk = walk->mNext) |
| 1228 | { |
| 1229 | if(walk->mFunctionName == name) |
| 1230 | { |
| 1231 | walk->clear(); |
| 1232 | return walk; |
| 1233 | } |
| 1234 | } |
| 1235 | |
| 1236 | Entry *ent = (Entry *) mAllocator.alloc(sizeof(Entry)); |
| 1237 | constructInPlace(ent); |
| 1238 | |
| 1239 | ent->mNamespace = this; |
| 1240 | ent->mFunctionName = name; |
| 1241 | ent->mNext = mEntryList; |
| 1242 | ent->mPackage = mPackage; |
| 1243 | ent->mToolOnly = false; |
| 1244 | mEntryList = ent; |
| 1245 | return ent; |
| 1246 | } |
| 1247 | |
| 1248 | void Namespace::addFunction( StringTableEntry name, CodeBlock *cb, U32 functionOffset, const char* usage, U32 lineNumber ) |
| 1249 | { |
nothing calls this directly
no test coverage detected