NS_IMETHOD GetMethodInfoForName(const char *methodName, PRUint16 *index, const nsXPTMethodInfo * *info) { return !mEntry ? NS_ERROR_UNEXPECTED : mEntry->GetMethodInfoForName(methodName, index, info); }
xptiInterfaceInfo::GetMethodInfoForName(const char* methodName, uint16 *index, const nsXPTMethodInfo** result) { NS_PRECONDITION(methodName, "bad param"); NS_PRECONDITION(index, "bad param"); NS_PRECONDITION(result, "bad param");  if(!EnsureResolved()) return NS_ERROR_UNEXPECTED;   for(uint16 i = 0; i < mInterface->mDescriptor->num_methods; ++i) { const nsXPTMethodInfo* info; info = NS_REINTERPRET_CAST(nsXPTMethodInfo*, &mInterface->mDescriptor-> method_descriptors[i]); if (PL_strcmp(methodName, info->GetName()) == 0) { *index = i + mInterface->mMethodBaseIndex; *result = info; return NS_OK; } } if(mInterface->mParent) return mInterface->mParent->GetMethodInfoForName(methodName, index, result); else { *index = 0; *result = 0; return NS_ERROR_INVALID_ARG; } }
    NS_IMETHOD GetMethodInfoForName(const char *methodName, PRUint16 *index, const nsXPTMethodInfo * *info) { return !mEntry ? NS_ERROR_UNEXPECTED : mEntry->GetMethodInfoForName(methodName, index, info); }