Make tm_get_current_function() find methods too

This commit is contained in:
Colomban Wendling 2012-09-17 02:57:17 +02:00
parent eed6e25a0e
commit 1cfa44ff62
2 changed files with 2 additions and 2 deletions

View File

@ -735,7 +735,7 @@ tm_workspace_find_scoped (const char *name, const char *scope, gint type,
const TMTag *
tm_get_current_function (GPtrArray * file_tags, const gulong line)
{
GPtrArray *const local = tm_tags_extract (file_tags, tm_tag_function_t);
GPtrArray *const local = tm_tags_extract (file_tags, tm_tag_function_t | tm_tag_method_t);
TMTag *function_tag = NULL;
if (local && local->len)
{

View File

@ -152,7 +152,7 @@ const GPtrArray *
tm_workspace_find_namespace_members (const GPtrArray * file_tags, const char *name,
gboolean search_global);
/* Returns TMTag to function which "own" given line
/* Returns TMTag to function or method which "own" given line
\param line Current line in edited file.
\param file_tags A GPtrArray of edited file TMTag pointers.
\return TMTag pointers to owner function. */