mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed autocomplete reftype colorization flashing
This commit is contained in:
parent
705c739750
commit
fc9f191380
1 changed files with 8 additions and 8 deletions
|
@ -3821,6 +3821,13 @@ void BfCompiler::ProcessAutocompleteTempType()
|
|||
tempTypeDef = checkTempType;
|
||||
mContext->HandleChangedTypeDef(tempTypeDef, true);
|
||||
}
|
||||
|
||||
BfSourceElementType elemType = BfSourceElementType_Type;
|
||||
if (checkTempType->mTypeCode == BfTypeCode_Interface)
|
||||
elemType = BfSourceElementType_Interface;
|
||||
else if (checkTempType->mTypeCode == BfTypeCode_Object)
|
||||
elemType = BfSourceElementType_RefType;
|
||||
mResolvePassData->mSourceClassifier->SetElementType(checkTempType->mTypeDeclaration->mNameNode, elemType);
|
||||
}
|
||||
|
||||
if (tempTypeDef == NULL)
|
||||
|
@ -3946,14 +3953,7 @@ void BfCompiler::ProcessAutocompleteTempType()
|
|||
if ((typeInst->mModule != NULL) && (!typeInst->mModule->mIsScratchModule))
|
||||
mLastAutocompleteModule = typeInst->mModule;
|
||||
#endif
|
||||
|
||||
BfSourceElementType elemType = BfSourceElementType_Type;
|
||||
if (typeInst->IsInterface())
|
||||
elemType = BfSourceElementType_Interface;
|
||||
else if (typeInst->IsObject())
|
||||
elemType = BfSourceElementType_RefType;
|
||||
mResolvePassData->mSourceClassifier->SetElementType(tempTypeDef->mTypeDeclaration->mNameNode, elemType);
|
||||
|
||||
|
||||
SetAndRestoreValue<BfTypeInstance*> prevType(module->mCurTypeInstance, typeInst);
|
||||
typeState.mTypeInstance = typeInst;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue