1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Internal protection, 'using internal <type or namespace>;`

This commit is contained in:
Brian Fiete 2020-10-14 11:33:41 -07:00
parent 7349cdf50f
commit 6b27f0f0b2
25 changed files with 313 additions and 96 deletions

View file

@ -657,6 +657,7 @@ void BfTypeDef::FreeMembers()
mNamespaceSearch.Clear();
mStaticSearch.Clear();
mInternalAccessSet.Clear();
for (auto allocNode : mDirectAllocNodes)
delete allocNode;
@ -832,6 +833,7 @@ void BfTypeDef::ReportMemory(MemReporter* memReporter)
memReporter->Add(sizeof(BfTypeDef));
memReporter->AddVec(mNamespaceSearch, false);
memReporter->AddVec(mStaticSearch, false);
memReporter->AddVec(mInternalAccessSet, false);
memReporter->AddVecPtr("Fields", mFields, false);
memReporter->AddVecPtr("Properties", mProperties, false);
@ -2656,6 +2658,7 @@ void BfSystem::InjectNewRevision(BfTypeDef* typeDef)
RefAtomComposite(name);
typeDef->mStaticSearch = nextTypeDef->mStaticSearch;
typeDef->mInternalAccessSet = nextTypeDef->mInternalAccessSet;
for (auto prevField : typeDef->mFields)
{