Foundry.Symbol¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.Symbol(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for representing symbols.
Foundry.Symbolprovides the core interface for representing code symbols such as functions, classes, variables, and other identifiers. Concrete implementations handle specific symbol types and provide specialized functionality for symbol navigation, documentation, and manipulation.- dup_icon()¶
-
Gets the icon representing the symbol.
New in version 1.1.
- dup_locator()¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.SymbolLocator].
- Return type:
Gets the locator to find the location of the symbol.
New in version 1.1.
- find_parent()¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Symbol] or rejects with error.
- Return type:
Find the parent symbol, if any.
- has_children()¶
-
Gets if the symbol can have children even if it is not yet known if it does have any children.
New in version 1.1.
- list_children()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Symbol] or rejects with error.
- Return type:
List all of the children of this symbol.
- list_to_root()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Symbol].
- Return type:
Asynchronously populates a [iface`Gio`.ListModel] of [class`Foundry`.Symbol] starting from this symbol to the root symbol by following [method`Foundry`.Symbol.find_parent] until there are no more parents.
The root symbol is placed at position 0 and self is placed in the last position.
- do_dup_icon() virtual¶
-
Gets the icon representing the symbol.
New in version 1.1.
- do_dup_locator() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.SymbolLocator].
- Return type:
Gets the locator to find the location of the symbol.
New in version 1.1.
- do_dup_name() virtual¶
-
Gets the name of the symbol.
- do_find_parent() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Symbol] or rejects with error.
- Return type:
Find the parent symbol, if any.
- do_has_children() virtual¶
-
Gets if the symbol can have children even if it is not yet known if it does have any children.
New in version 1.1.
- do_list_children() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Symbol] or rejects with error.
- Return type:
List all of the children of this symbol.
Property Details¶
- Foundry.Symbol.props.locator¶
- Name:
locator- Type:
- Default Value:
- Flags: