mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
New nullable support
This commit is contained in:
parent
59233cc996
commit
88adb3a1cd
16 changed files with 963 additions and 143 deletions
|
@ -272,6 +272,32 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class BfConstraintState
|
||||
{
|
||||
public:
|
||||
BfGenericParamInstance* mGenericParamInstance;
|
||||
BfType* mLeftType;
|
||||
BfType* mRightType;
|
||||
BfConstraintState* mPrevState;
|
||||
|
||||
public:
|
||||
BfConstraintState()
|
||||
{
|
||||
mGenericParamInstance = NULL;
|
||||
mLeftType = NULL;
|
||||
mRightType = NULL;
|
||||
mPrevState = NULL;
|
||||
}
|
||||
|
||||
bool operator==(const BfConstraintState& other) const
|
||||
{
|
||||
return
|
||||
(mGenericParamInstance == other.mGenericParamInstance) &&
|
||||
(mLeftType == other.mLeftType) &&
|
||||
(mRightType == other.mRightType);
|
||||
}
|
||||
};
|
||||
|
||||
class BfContext
|
||||
{
|
||||
public:
|
||||
|
@ -279,6 +305,7 @@ public:
|
|||
bool mDeleting;
|
||||
|
||||
BfTypeState* mCurTypeState;
|
||||
BfConstraintState* mCurConstraintState;
|
||||
bool mResolvingVarField;
|
||||
int mMappedObjectRevision;
|
||||
|
||||
|
@ -364,7 +391,7 @@ public:
|
|||
void SaveDeletingType(BfType* type);
|
||||
BfType* FindType(const StringImpl& typeName);
|
||||
String TypeIdToString(int typeId);
|
||||
BfHotTypeData* GetHotTypeData(int typeId);
|
||||
BfHotTypeData* GetHotTypeData(int typeId);
|
||||
|
||||
public:
|
||||
BfContext(BfCompiler* compiler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue