1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-24 18:48:01 +02:00

TypeDef MemberSet fixes

This commit is contained in:
Brian Fiete 2021-12-28 13:10:52 -05:00
parent cfaeb875f8
commit 069e327850
3 changed files with 28 additions and 37 deletions

View file

@ -935,6 +935,24 @@ struct BfMemberSetEntry
}
};
class BfTypeDefMemberSet : public HashSet<BfMemberSetEntry>
{
public:
int mSourceSize;
public:
BfTypeDefMemberSet()
{
mSourceSize = 0;
}
void Clear()
{
HashSet<BfMemberSetEntry>::Clear();
mSourceSize = 0;
}
};
// For partial classes, the first entry in the map will contain the combined data
class BfTypeDef
{
@ -980,9 +998,9 @@ public:
Array<BfFieldDef*> mFields;
Array<BfPropertyDef*> mProperties;
Array<BfMethodDef*> mMethods;
HashSet<BfMemberSetEntry> mMethodSet;
HashSet<BfMemberSetEntry> mFieldSet;
HashSet<BfMemberSetEntry> mPropertySet;
BfTypeDefMemberSet mMethodSet;
BfTypeDefMemberSet mFieldSet;
BfTypeDefMemberSet mPropertySet;
Array<BfOperatorDef*> mOperators;
Array<BfGenericParamDef*> mGenericParamDefs;
Array<BfExternalConstraintDef> mExternalConstraints;
@ -1072,7 +1090,6 @@ public:
void FreeMembers();
void PopulateMemberSets();
void ClearMemberSets();
void ClearOldMemberSets();
void RemoveGenericParamDef(BfGenericParamDef* genericParamDef);
int GetSelfGenericParamCount();
String ToString();