mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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;
|
tempTypeDef = checkTempType;
|
||||||
mContext->HandleChangedTypeDef(tempTypeDef, true);
|
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)
|
if (tempTypeDef == NULL)
|
||||||
|
@ -3947,13 +3954,6 @@ void BfCompiler::ProcessAutocompleteTempType()
|
||||||
mLastAutocompleteModule = typeInst->mModule;
|
mLastAutocompleteModule = typeInst->mModule;
|
||||||
#endif
|
#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);
|
SetAndRestoreValue<BfTypeInstance*> prevType(module->mCurTypeInstance, typeInst);
|
||||||
typeState.mTypeInstance = typeInst;
|
typeState.mTypeInstance = typeInst;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue