mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +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)
|
if (checkNode == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!checkNode->Equals("base"))
|
||||||
|
return false;
|
||||||
|
|
||||||
auto autoComplete = GetAutoComplete();
|
auto autoComplete = GetAutoComplete();
|
||||||
if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(checkNode)))
|
if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(checkNode)))
|
||||||
{
|
{
|
||||||
|
@ -15105,7 +15108,7 @@ bool BfExprEvaluator::CheckIsBase(BfAstNode* checkNode)
|
||||||
autoComplete->SetDefinitionLocation(mModule->mCurTypeInstance->mBaseType->mTypeDef->GetRefNode());
|
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)
|
bool BfExprEvaluator::CheckModifyResult(BfTypedValue typedVal, BfAstNode* refNode, const char* modifyType, bool onlyNeedsMut)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue