Make tm_get_current_function() find methods too
This commit is contained in:
parent
eed6e25a0e
commit
1cfa44ff62
@ -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)
|
||||
{
|
||||
|
||||
@ -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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user