mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed enum comparison to int when there's an int conversion operator
This commit is contained in:
parent
70c2131c18
commit
dfbb09a8ac
4 changed files with 41 additions and 22 deletions
|
@ -923,16 +923,22 @@ void BfAutoComplete::AddTypeMembers(BfTypeInstance* typeInst, bool addStatic, bo
|
|||
addNonStatic = true;
|
||||
|
||||
auto activeTypeDef = mModule->GetActiveTypeDef();
|
||||
|
||||
#define CHECK_STATIC(staticVal) ((staticVal && addStatic) || (!staticVal && addNonStatic))
|
||||
|
||||
mModule->PopulateType(typeInst, BfPopulateType_Data);
|
||||
|
||||
if ((addStatic) && (mModule->mCurMethodInstance == NULL) && (typeInst->IsEnum()) && (allowImplicitThis))
|
||||
{
|
||||
AddEntry(AutoCompleteEntry("value", "_"), filter);
|
||||
}
|
||||
|
||||
#define CHECK_STATIC(staticVal) ((staticVal && addStatic) || (!staticVal && addNonStatic))
|
||||
|
||||
mModule->PopulateType(typeInst, BfPopulateType_Data);
|
||||
|
||||
if ((typeInst->IsEnum()) && (typeInst->IsTypedPrimitive()))
|
||||
{
|
||||
if (typeInst->IsTypedPrimitive())
|
||||
AddEntry(AutoCompleteEntry("valuetype", "UnderlyingType"), filter);
|
||||
}
|
||||
|
||||
BfShow checkShow = (startType == typeInst) ? BfShow_Hide : BfShow_HideIndirect;
|
||||
|
||||
BfProtectionCheckFlags protectionCheckFlags = BfProtectionCheckFlag_None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue