mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added type icon to code mouseovers
This commit is contained in:
parent
0347f997f2
commit
70c7067bb0
5 changed files with 57 additions and 16 deletions
|
@ -2518,8 +2518,7 @@ void BfAutoComplete::CheckLocalRef(BfAstNode* identifierNode, BfLocalVariable* v
|
|||
}
|
||||
else
|
||||
{
|
||||
mResultString = ":";
|
||||
mResultString += mModule->TypeToString(varDecl->mResolvedType);
|
||||
SetResultStringType(varDecl->mResolvedType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3297,3 +3296,17 @@ void BfAutoComplete::FixitCheckNamespace(BfTypeDef* activeTypeDef, BfTypeReferen
|
|||
FixitAddNamespace(typeRef, namespaceString);
|
||||
}
|
||||
}
|
||||
|
||||
void BfAutoComplete::SetResultStringType(BfType * type)
|
||||
{
|
||||
mResultString = ":";
|
||||
mResultString += mModule->TypeToString(type);
|
||||
if (type->IsObject())
|
||||
mResultString += "\n:type\tclass";
|
||||
else if (type->IsInterface())
|
||||
mResultString += "\n:type\tinterface";
|
||||
else if (type->IsPointer())
|
||||
mResultString += "\n:type\tpointer";
|
||||
else
|
||||
mResultString += "\n:type\tvaluetype";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue