final String baseName = getBaseName();
final boolean isInterface = type instanceof IInterfaceDefinition;
// Look at the type's local definitions that have the same name as this function.
final IASScope typeScope = type.getContainedScope();
final IDefinitionSet definitionSet = typeScope.getLocalDefinitionSetByName(baseName);
final int n = definitionSet != null ? definitionSet.getSize() : 0;
for (int i = 0; i < n; i++)
{
IDefinition member = definitionSet.getDefinition(i);
// Just look at functions.
if (member instanceof FunctionDefinition)
{
// If one has the same signature as this function, return it.