mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed _ in enum during autocomplete
This commit is contained in:
parent
881803b549
commit
97a828a12a
1 changed files with 7 additions and 3 deletions
|
@ -3935,7 +3935,11 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
|
||||||
checkTypeState = checkTypeState->mPrevState;
|
checkTypeState = checkTypeState->mPrevState;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((resolvingFieldDef != NULL) && (resolvingFieldDef->mIdx > 0))
|
if ((resolvingFieldDef != NULL) && (mModule->mCompiler->mResolvePassData != NULL) && (mModule->mCompiler->mResolvePassData->mParser == resolvingFieldDef->mFieldDeclaration->GetParser()))
|
||||||
|
{
|
||||||
|
return mModule->GetDefaultTypedValue(mModule->mCurTypeInstance);
|
||||||
|
}
|
||||||
|
else if ((resolvingFieldDef != NULL) && (resolvingFieldDef->mIdx > 0))
|
||||||
{
|
{
|
||||||
auto enumType = mModule->mCurTypeInstance;
|
auto enumType = mModule->mCurTypeInstance;
|
||||||
if (!enumType->mFieldInstances.IsEmpty())
|
if (!enumType->mFieldInstances.IsEmpty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue