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

@ -1654,6 +1654,13 @@ public:
Array<BfTypeInstance*> mStaticTypes;
};
class BfInternalAccessSet
{
public:
Array<BfTypeInstance*> mTypes;
Array<BfAtomComposite> mNamespaces;
};
class BfTypeInfoEx
{
public:
@ -1760,6 +1767,7 @@ public:
Array<BfFieldInstance> mFieldInstances;
Array<BfMethodInstance*> mInternalMethods;
Dictionary<BfTypeDef*, BfStaticSearch> mStaticSearchMap;
Dictionary<BfTypeDef*, BfInternalAccessSet> mInternalAccessMap;
bool mHasStaticInitMethod;
bool mHasStaticDtorMethod;
bool mHasStaticMarkMethod;
@ -1854,6 +1862,8 @@ public:
}
~BfTypeInstance();
void ReleaseData();
virtual bool IsInstanceOf(BfTypeDef* typeDef) override { return typeDef == mTypeDef; }
virtual BfModule* GetModule() override { return mModule; }