Commit f2ec626f authored by Christian Hergert's avatar Christian Hergert
Browse files

symbol-resolver: add unload vfunc

This allows us to be symmetrical, with load/unload.
parent e1690cfd
......@@ -233,6 +233,15 @@ ide_symbol_resolver_load (IdeSymbolResolver *self)
IDE_SYMBOL_RESOLVER_GET_IFACE (self)->load (self);
}
void
ide_symbol_resolver_unload (IdeSymbolResolver *self)
{
g_return_if_fail (IDE_IS_SYMBOL_RESOLVER (self));
if (IDE_SYMBOL_RESOLVER_GET_IFACE (self)->unload)
IDE_SYMBOL_RESOLVER_GET_IFACE (self)->unload (self);
}
void
ide_symbol_resolver_find_references_async (IdeSymbolResolver *self,
IdeSourceLocation *location,
......
......@@ -67,10 +67,13 @@ struct _IdeSymbolResolverInterface
IdeSymbol *(*find_nearest_scope_finish) (IdeSymbolResolver *self,
GAsyncResult *result,
GError **error);
void (*unload) (IdeSymbolResolver *self);
};
IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_load (IdeSymbolResolver *self);
IDE_AVAILABLE_IN_3_28
void ide_symbol_resolver_unload (IdeSymbolResolver *self);
IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_lookup_symbol_async (IdeSymbolResolver *self,
IdeSourceLocation *location,
......
......@@ -115,6 +115,7 @@ namespace Ide
}
public void load () {}
public void unload () {}
public async GLib.GenericArray<weak Ide.SourceRange> find_references_async (Ide.SourceLocation location,
GLib.Cancellable? cancellable)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment