private void ShowCalltip(int openingBracketPos, int parameterIndex, bool functionsOnly)
{
ScriptStruct foundType;
ScriptToken tokenFound = GetFinalPartOfExpression(openingBracketPos, out foundType, functionsOnly);
if (tokenFound != null)
{
int nameLength = 0;
if (tokenFound is ScriptFunction)
{
nameLength = ((ScriptFunction)tokenFound).FunctionName.Length;
}
else if (tokenFound is ScriptVariable)
{
nameLength = ((ScriptVariable)tokenFound).VariableName.Length;
}
ConstructAndShowCalltip((openingBracketPos - nameLength) + 1, parameterIndex, foundType, tokenFound);
}
}