mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Added more informational mouseovers
This commit is contained in:
parent
9499c727ab
commit
d11c79e43e
7 changed files with 183 additions and 13 deletions
|
@ -6002,7 +6002,7 @@ BfType* BfModule::ResolveTypeResult(BfTypeReference* typeRef, BfType* resolvedTy
|
|||
|
||||
if (autoComplete != NULL)
|
||||
{
|
||||
isGetDefinition = autoComplete->mIsGetDefinition;
|
||||
isGetDefinition = autoComplete->mIsGetDefinition || (autoComplete->mResolveType == BfResolveType_GetResultString);
|
||||
}
|
||||
|
||||
if (((mCompiler->mResolvePassData->mGetSymbolReferenceKind == BfGetSymbolReferenceKind_Type) || (isGetDefinition)) &&
|
||||
|
@ -6021,7 +6021,7 @@ BfType* BfModule::ResolveTypeResult(BfTypeReference* typeRef, BfType* resolvedTy
|
|||
if (mCompiler->IsAutocomplete())
|
||||
{
|
||||
BfAutoComplete* autoComplete = mCompiler->mResolvePassData->mAutoComplete;
|
||||
if ((autoComplete->mIsGetDefinition) && (autoComplete->IsAutocompleteNode(elementTypeRef)))
|
||||
if ((isGetDefinition) && (autoComplete->IsAutocompleteNode(elementTypeRef)))
|
||||
{
|
||||
BfAstNode* baseNode = elementTypeRef;
|
||||
while (true)
|
||||
|
@ -6061,6 +6061,12 @@ BfType* BfModule::ResolveTypeResult(BfTypeReference* typeRef, BfType* resolvedTy
|
|||
autoComplete->mDefType = elementTypeInst->mTypeDef;
|
||||
autoComplete->SetDefinitionLocation(elementTypeInst->mTypeDef->mTypeDeclaration->mNameNode);
|
||||
}
|
||||
|
||||
if ((autoComplete->mResolveType == BfResolveType_GetResultString) && (resolvedTypeRef != NULL))
|
||||
{
|
||||
autoComplete->mResultString = ":";
|
||||
autoComplete->mResultString += TypeToString(resolvedTypeRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue