diff --git a/docs/api-reference/core/Argument.mdx b/docs/api-reference/core/Argument.mdx
index cb44cc09c..8a293a313 100644
--- a/docs/api-reference/core/Argument.mdx
+++ b/docs/api-reference/core/Argument.mdx
@@ -11,7 +11,7 @@ import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx';
import {GithubLinkNote} from '/snippets/GithubLinkNote.mdx';
import {Attribute} from '/snippets/Attribute.mdx';
-
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName), [Editable](/api-reference/core/Editable)
@@ -111,7 +111,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_keyword
Converts an unnamed argument to a named argument by adding a keyword.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -136,7 +136,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Argument ]> } description=""/>
@@ -225,7 +225,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -233,7 +233,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -346,7 +346,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -354,7 +354,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -362,7 +362,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Sets the name of an object and updates all its usages.
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_name
Sets the name of a code element.
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Typeable](/api-reference/core/Typeable), [Symbol](/api-reference/core/Symbol), [Usable](/api-reference/core/Usable), [Editable](/api-reference/core/Editable), [Importable](/api-reference/core/Importable), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName)
@@ -147,7 +147,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_comment
Adds a comment to the symbol.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -172,7 +172,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this node with new_src.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Assignment ]> } description=""/>
@@ -261,7 +261,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -269,7 +269,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before the current symbol node in the Abstract Syntax Tree.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -388,7 +388,7 @@ Check if this node is contained another node of the given class
### local_usages
Retrieves all usages of the assigned variable within its code block scope.
-
+
list[ Editable [ Statement ]]> } description="A sorted list of statement nodes where the variable is used."/>
@@ -396,7 +396,7 @@ Retrieves all usages of the assigned variable within its code block scope.
### move_to_file
Moves the given symbol to a new file and updates its imports and references.
-
+
parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -433,7 +433,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Simplifies an assignment expression by reducing it based on a boolean condition and updating all the usages.
-
+
remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_comment
Sets a comment to the symbol.
-
+
set_inline_comment
Sets an inline comment to the symbol.
-
+
set_name
Sets the name of a code element.
-
+
set_type_annotation
Adds or updates a type annotation for the current assignment.
-
+
set_value
Sets the value of an assignment expression.
-
+
symbol_usages
Returns a list of symbols that use or import the exportable object.
-
+
usages
Returns a list of usages of the exportable object.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -128,7 +128,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -136,7 +136,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ AssignmentStatement ]> } description=""/>
@@ -225,7 +225,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -338,7 +338,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -346,7 +346,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -354,7 +354,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[Usable](/api-reference/core/Usable), [AssignmentStatement](/api-reference/core/AssignmentStatement), [Editable](/api-reference/core/Editable), [Importable](/api-reference/core/Importable), [HasValue](/api-reference/core/HasValue), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName)
@@ -148,7 +148,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -156,7 +156,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Attribute ]> } description=""/>
@@ -245,7 +245,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -253,7 +253,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -366,7 +366,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -374,7 +374,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -382,7 +382,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_name
Sets the name of a code element.
-
+
set_value
Sets the value of a node's assignment.
-
+
symbol_usages
Returns a list of symbols that use or import the exportable object.
-
+
usages
Returns a list of usages of the exportable object.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -91,7 +91,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -99,7 +99,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ AwaitExpression ]> } description=""/>
@@ -188,7 +188,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -301,7 +301,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -309,7 +309,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -317,7 +317,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
resolve
Resolves the wrapper expression and returns the first concrete expression.
-
+
Expression> } description=""/>
@@ -395,7 +395,7 @@ Resolves the wrapper expression and returns the first concrete expression.
### search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -105,7 +105,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -113,7 +113,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ BinaryExpression ]> } description=""/>
@@ -202,7 +202,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -315,7 +315,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -323,7 +323,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Simplifies a binary expression by reducing it based on a boolean condition.
-
+
remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
+
### Inherits from
[HasBlock](/api-reference/core/HasBlock), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -121,7 +121,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_decorator
Adds a decorator to a function or method.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -152,7 +152,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ BlockStatement ]> } description=""/>
@@ -241,7 +241,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -354,7 +354,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -362,7 +362,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -370,7 +370,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_docstring
Sets or updates the docstring for the current entity.
-
+
+
### Inherits from
[Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -90,7 +90,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -98,7 +98,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Boolean ]> } description=""/>
@@ -187,7 +187,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -300,7 +300,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -308,7 +308,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -316,7 +316,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
+
### Inherits from
[Usable](/api-reference/core/Usable), [Importable](/api-reference/core/Importable), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName), [Editable](/api-reference/core/Editable)
@@ -115,7 +115,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -123,7 +123,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Callable ]> } description=""/>
@@ -212,7 +212,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -220,7 +220,7 @@ Returns the name node of the object.
### get_parameter
Gets a specific parameter from the callable's parameters list by name.
-
+
get_parameter_by_index
Returns the parameter at the given index.
-
+
get_parameter_by_type
Retrieves a parameter from the callable by its type.
-
+
get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -384,7 +384,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -392,7 +392,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -400,7 +400,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+