Top | ![]() |
![]() |
![]() |
![]() |
#define | IDE_TYPE_SYMBOL_RESOLVER |
struct | IdeSymbolResolverInterface |
IdeSymbolResolver |
void ide_symbol_resolver_lookup_symbol_async (IdeSymbolResolver *self
,IdeLocation *location
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests that self
determine the symbol existing at the source location
denoted by self
. callback
should call ide_symbol_resolver_lookup_symbol_finish()
to
retrieve the result.
self |
||
location |
An IdeLocation. |
|
cancellable |
a GCancellable or |
[allow-none] |
callback |
A callback to execute upon completion. |
|
user_data |
user data for |
Since: 3.32
IdeSymbol * ide_symbol_resolver_lookup_symbol_finish (IdeSymbolResolver *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous call to lookup a symbol using
ide_symbol_resolver_lookup_symbol_async()
.
self |
||
result |
a GAsyncResult provided to the callback. |
|
error |
A location for an |
[out] |
Since: 3.32
void ide_symbol_resolver_get_symbol_tree_async (IdeSymbolResolver *self
,GFile *file
,GBytes *contents
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously fetch an up to date symbol tree for file
.
self |
||
file |
a GFile |
|
contents |
a GBytes or |
[nullable] |
cancellable |
a GCancellable or |
[allow-none] |
callback |
a callback to execute upon completion. |
[allow-none] |
user_data |
user data for |
Since: 3.32
IdeSymbolTree * ide_symbol_resolver_get_symbol_tree_finish (IdeSymbolResolver *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to get the symbol tree for the requested file.
Since: 3.32
void ide_symbol_resolver_find_references_async (IdeSymbolResolver *self
,IdeLocation *location
,const gchar *language_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
self |
||
location |
an IdeLocation |
|
language_id |
a language identifier or |
[nullable] |
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute |
|
user_data |
user data for |
GPtrArray * ide_symbol_resolver_find_references_finish (IdeSymbolResolver *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to ide_symbol_resolver_find_references_async()
.
a GPtrArray
of IdeRange if successful; otherwise NULL
and error
is set.
[transfer full][element-type IdeRange]
Since: 3.32
void ide_symbol_resolver_find_nearest_scope_async (IdeSymbolResolver *self
,IdeLocation *location
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
This function asynchronously requests to locate the containing scope for a given source location.
See ide_symbol_resolver_find_nearest_scope_finish()
for how to
complete the operation.
self |
||
location |
an IdeLocation |
|
cancellable |
a GCancellable or |
[nullable] |
callback |
an async callback. |
[scope async][closure user_data] |
user_data |
user data for |
Since: 3.32
IdeSymbol * ide_symbol_resolver_find_nearest_scope_finish (IdeSymbolResolver *self
,GAsyncResult *result
,GError **error
);
This function completes an asynchronous operation to locate the containing scope for a given source location.
See ide_symbol_resolver_find_nearest_scope_async()
for more information.
Since: 3.32
struct IdeSymbolResolverInterface { GTypeInterface parent_interface; void (*load) (IdeSymbolResolver *self); void (*unload) (IdeSymbolResolver *self); void (*lookup_symbol_async) (IdeSymbolResolver *self, IdeLocation *location, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeSymbol *(*lookup_symbol_finish) (IdeSymbolResolver *self, GAsyncResult *result, GError **error); void (*get_symbol_tree_async) (IdeSymbolResolver *self, GFile *file, GBytes *contents, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeSymbolTree *(*get_symbol_tree_finish) (IdeSymbolResolver *self, GAsyncResult *result, GError **error); void (*find_references_async) (IdeSymbolResolver *self, IdeLocation *location, const gchar *language_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); GPtrArray *(*find_references_finish) (IdeSymbolResolver *self, GAsyncResult *result, GError **error); void (*find_nearest_scope_async) (IdeSymbolResolver *self, IdeLocation *location, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeSymbol *(*find_nearest_scope_finish) (IdeSymbolResolver *self, GAsyncResult *result, GError **error); };