diff --git a/docs/api-reference/core/Argument.mdx b/docs/api-reference/core/Argument.mdx
index a6bedf024..322244f71 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)
@@ -30,11 +30,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -59,15 +54,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
str | None } description="Retrieves the base name of the object without namespace prefixes." />
-### node_type
-
-NodeType } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -89,11 +78,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
str } description="Text representation of the Editable instance." />
-### ts_node
-
-TSNode } description="
-" />
-
### type
str } description="Gets the `Tree-sitter` type of the argument's value node." />
@@ -111,7 +95,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 +120,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=""/>
@@ -233,7 +217,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 +330,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 +338,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 +346,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
[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)
@@ -53,11 +42,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -90,15 +74,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
str | None } description="Retrieves the base name of the object without namespace prefixes." />
-### node_type
-
-Literal[NodeType.SYMBOL] } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -122,17 +100,11 @@ import {Attribute} from '/snippets/Attribute.mdx';
### symbol_type
- } description="
-" />
-
-### ts_node
-
-TSNode } description="
-" />
+ } description="The type of symbol, set to SymbolType.GlobalVar." />
### type
-Type | TypePlaceholder [ PyParameter ]> } description="The type annotation associated with this node" />
+Type | TypePlaceholder [ Assignment ]> } description="The type annotation associated with this node" />
### value
@@ -147,7 +119,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_comment
Adds a comment to the symbol.
-
+
add_keyword
Insert a keyword in the appropriate place before this symbol if it doesn't already exist.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -189,7 +161,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=""/>
@@ -286,7 +258,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=""/>
@@ -413,7 +385,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=""/>
@@ -467,7 +439,7 @@ Simplifies an assignment expression by reducing it based on a boolean condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Renames a symbol and updates all its references in the codebase.
-
+
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.
-
+
-list[ Import | Symbol | Export ]> } description="A list of symbols that use or import the exportable object."/>
+list[ Import | Symbol | TSExport ]> } description="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)
@@ -25,8 +20,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### assignments
-list[ Assignment ]> } description="
-" />
+list[ Assignment ]> } description="A list of assignments within the statement." />
### extended
@@ -40,11 +34,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -59,8 +48,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### left
-Expression [ Assignment ]> } description="
-" />
+Expression [ Assignment ]> } description="The left-hand side expression of the first assignment." />
### nested_code_blocks
@@ -70,15 +58,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
list[ MultiLineCollection [ Statement [ AssignmentStatement ], Editable ]]> } description="Returns a list of statement collections within nested code blocks." />
-### node_type
-
-NodeType } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -98,23 +80,12 @@ import {Attribute} from '/snippets/Attribute.mdx';
### right
-Expression [ Assignment ] | None> } description="
-" />
+Expression [ Assignment ] | None> } description="The right-hand side expression of the first assignment, or None if not applicable." />
### source
str } description="Text representation of the Editable instance." />
-### statement_type
-
- } description="
-" />
-
-### ts_node
-
-TSNode } description="
-" />
-
### value
Expression | None> } description="Gets the value node of the object." />
@@ -128,7 +99,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 +107,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 +196,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 +309,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 +317,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 +325,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), [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)
@@ -20,13 +20,11 @@ import {Attribute} from '/snippets/Attribute.mdx';
### assignment
-Assignment> } description="
-" />
+Assignment> } description="The assignment associated with the attribute." />
### assignments
-list[ Assignment ]> } description="
-" />
+list[ Assignment ]> } description="A list of assignments within the statement." />
### dependencies
@@ -44,11 +42,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -75,8 +68,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### left
-Expression [ Assignment ]> } description="
-" />
+Expression [ Assignment ]> } description="The left-hand side expression of the first assignment." />
### name
@@ -90,15 +82,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
list[ MultiLineCollection [ Statement [ Attribute ], Editable ]]> } description="Returns a list of statement collections within nested code blocks." />
-### node_type
-
-NodeType } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -118,23 +104,12 @@ import {Attribute} from '/snippets/Attribute.mdx';
### right
-Expression [ Assignment ] | None> } description="
-" />
+Expression [ Assignment ] | None> } description="The right-hand side expression of the first assignment, or None if not applicable." />
### source
str } description="Text representation of the Editable instance." />
-### statement_type
-
- } description="
-" />
-
-### ts_node
-
-TSNode } description="
-" />
-
### value
Expression | None> } description="Gets the value node of the object." />
@@ -148,7 +123,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 +131,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=""/>
@@ -253,7 +228,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 +341,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 +349,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 +357,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Renames a symbol and updates all its references in the codebase.
-
+
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 a node's assignment.
-
+
-list[ Import | Symbol | Export ]> } description="A list of symbols that use or import the exportable object."/>
+list[ Import | Symbol | TSExport ]> } description="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)
@@ -30,11 +30,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -43,15 +38,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
list[ FunctionCall ]> } description="Gets all function calls within the await expression." />
-### node_type
-
-NodeType } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -73,11 +62,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
str } description="Text representation of the Editable instance." />
-### ts_node
-
-TSNode } description="
-" />
-
### value
Expression | None> } description="Gets the value node of the object." />
@@ -91,7 +75,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 +83,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 +172,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 +285,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 +293,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 +301,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
[Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -34,11 +34,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -49,13 +44,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### left
-Expression [ ComparisonExpression ] | None> } description="
-" />
-
-### node_type
-
-NodeType } description="
-" />
+Expression [ BinaryExpression ] | None> } description="The left operand of the binary expression." />
### operators
@@ -63,8 +52,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -84,18 +72,12 @@ import {Attribute} from '/snippets/Attribute.mdx';
### right
-Expression [ ComparisonExpression ] | None> } description="
-" />
+Expression [ BinaryExpression ] | None> } description="The right operand of the binary expression." />
### source
str } description="Text representation of the Editable instance." />
-### ts_node
-
-TSNode } description="
-" />
-
### variable_usages
list[ Editable ]> } description="Returns Editables for all TreeSitter node instances of variable usages within this node's" />
@@ -105,7 +87,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 +95,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 +184,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 +297,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 +305,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)
@@ -20,8 +20,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### code_block
-CodeBlock | None> } description="
-" />
+CodeBlock | None> } description="The code block contained within the statement, if it exists." />
### decorators
@@ -43,11 +42,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
SourceFile> } description="The file object that this Editable instance belongs to." />
-### file_node_id
-
-NodeId } description="
-" />
-
### filepath
str } description="The file path of the file that this Editable instance belongs to." />
@@ -72,15 +66,9 @@ import {Attribute} from '/snippets/Attribute.mdx';
list[ MultiLineCollection [ Statement [ BlockStatement ], Editable ]]> } description="Returns a list of statement collections within nested code blocks." />
-### node_type
-
-NodeType } description="
-" />
-
### parent
-Editable> } description="
-" />
+Editable> } description="The parent node of this Editable instance." />
### parent_class
@@ -102,16 +90,6 @@ import {Attribute} from '/snippets/Attribute.mdx';
str } description="Text representation of the Editable instance." />
-### statement_type
-
-StatementType> } description="
-" />
-
-### ts_node
-
-TSNode } description="
-" />
-
### variable_usages
list[ Editable ]> } description="Returns Editables for all TreeSitter node instances of variable usages within this node's" />
@@ -121,7 +99,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
-