mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed 'base' definition location error
This commit is contained in:
parent
6be24a2734
commit
e3fb124fbe
1 changed files with 4 additions and 1 deletions
|
@ -15098,6 +15098,9 @@ bool BfExprEvaluator::CheckIsBase(BfAstNode* checkNode)
|
|||
if (checkNode == NULL)
|
||||
return false;
|
||||
|
||||
if (!checkNode->Equals("base"))
|
||||
return false;
|
||||
|
||||
auto autoComplete = GetAutoComplete();
|
||||
if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(checkNode)))
|
||||
{
|
||||
|
@ -15105,7 +15108,7 @@ bool BfExprEvaluator::CheckIsBase(BfAstNode* checkNode)
|
|||
autoComplete->SetDefinitionLocation(mModule->mCurTypeInstance->mBaseType->mTypeDef->GetRefNode());
|
||||
}
|
||||
|
||||
return checkNode->Equals("base");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool BfExprEvaluator::CheckModifyResult(BfTypedValue typedVal, BfAstNode* refNode, const char* modifyType, bool onlyNeedsMut)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue