mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Made 'override' work for internal overrides
This commit is contained in:
parent
2c8b14ebed
commit
ae40f99cb4
1 changed files with 9 additions and 1 deletions
|
@ -2376,6 +2376,7 @@ void BfAutoComplete::AddOverrides(const StringImpl& filter)
|
|||
if (methodDef->mIsNoShow)
|
||||
continue;
|
||||
|
||||
bool allowInternalOverride = false;
|
||||
if (curType == mModule->mCurTypeInstance)
|
||||
{
|
||||
// The "normal" case, and only case for types without extensions
|
||||
|
@ -2387,6 +2388,9 @@ void BfAutoComplete::AddOverrides(const StringImpl& filter)
|
|||
|
||||
if (!curType->IsTypeMemberAccessible(methodDef->mDeclaringType, activeTypeDef))
|
||||
continue;
|
||||
|
||||
if (methodDef->mIsExtern)
|
||||
allowInternalOverride = true;
|
||||
}
|
||||
|
||||
auto& methodGroup = curType->mMethodInstanceGroups[methodDef->mIdx];
|
||||
|
@ -2396,7 +2400,11 @@ void BfAutoComplete::AddOverrides(const StringImpl& filter)
|
|||
}
|
||||
auto methodInst = methodGroup.mDefault;
|
||||
|
||||
if ((!methodDef->mIsVirtual) || (methodDef->mIsOverride))
|
||||
if (allowInternalOverride)
|
||||
{
|
||||
//
|
||||
}
|
||||
else if ((!methodDef->mIsVirtual) || (methodDef->mIsOverride))
|
||||
continue;
|
||||
|
||||
if ((methodDef->mMethodType != BfMethodType_Normal) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue