View Source on Github
Inherits from
SymbolGroup, EditableAttributes
extended
extended_source
file
file_node_id
filepath
function_calls
next_named_sibling
next_sibling
node_type
parent
parent_class
parent_function
parent_statement
source
symbols
ts_node
variable_usages
Methods
ancestors
Find all ancestors of the node of the given type. Does not return itselfView Source on Github
edit
Edit the source for this Collection instance.View Source on Github
find
Search for substrings in the given symbols that matchstrings_to_match.
View Source on Github
Parameters
find_string_literals
Search for string literals matching given strings in the SymbolGroup.View Source on Github
Parameters
flag
Adds a visual flag comment to the end of this Editable’s source text.View Source on Github
get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usageView Source on Github
Parameters
index
Return the index of the first occurrence of value.View Source on Github
insert
Addsvalue to the container that this node represents
View Source on Github
insert_after
Inserts source code after this node in the codebase.View Source on Github
Parameters
insert_before
Inserts source code before this symbol group.View Source on Github
Parameters
is_wrapped_in
Check if this node is contained another node of the given classView Source on Github
parent_of_type
Find the first ancestor of the node of the given type. Does not return itselfView Source on Github
reduce_condition
Reduces an editable to the following conditionView Source on Github
remove
Removes an element from a Collection.View Source on Github
Parameters
replace
Replaces all instances of a string with a new string in all symbols within the group.View Source on Github
Parameters
search
Searches for regex matches in the codebase.View Source on Github