Foundry.SymbolProvider¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.SymbolProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class allowing plugins to introspect symbols within a specific file or file content.
- find_symbol_at(file, contents, line, line_offset)¶
- Parameters:
file (
Gio.File) – a [iface`Gio`.File]contents (
GLib.BytesorNone) –line (
int) – the line number (starting from 0)line_offset (
int) – the character offset (starting from 0)
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Symbol] or rejects with error
- Return type:
- list_symbols(file, contents)¶
- Parameters:
file (
Gio.File) – a [iface`Gio`.File]contents (
GLib.BytesorNone) – optional modified contents for the file
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Symbol] or rejects with error
- Return type:
- do_find_symbol_at(file, contents, line, line_offset) virtual¶
- Parameters:
file (
Gio.File) – a [iface`Gio`.File]contents (
GLib.BytesorNone) –line (
int) – the line number (starting from 0)line_offset (
int) – the character offset (starting from 0)
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Symbol] or rejects with error
- Return type:
- do_list_symbols(file, contents) virtual¶
- Parameters:
file (
Gio.File) – a [iface`Gio`.File]contents (
GLib.BytesorNone) – optional modified contents for the file
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Symbol] or rejects with error
- Return type: