You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Motivation
Methods were missing return types, visibility of types in docs in light
mode was unsatisfactory
# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review
- [x] I have added tests for my changes
- [x] I have updated the documentation or added new documentation as
needed
- [x] I have read and agree to the [Contributor License
Agreement](../CLA.md)
---------
Co-authored-by: Jay Hack <[email protected]>
Co-authored-by: codegen-bot <[email protected]>
<Attributetype={ <><spanclassName="text-gray-200">list[</span> <ahref="/api-reference/core/FunctionCall"style={ {fontWeight: "inherit", fontSize: "inherit"} }>FunctionCall</a> <spanclassName="text-gray-200">]</span></> }description="Returns a list of function calls present in the value of this argument." />
48
+
<Attributetype={ <><span>list[</span> <ahref="/api-reference/core/FunctionCall"style={ {fontWeight: "inherit", fontSize: "inherit"} }>FunctionCall</a> <span>]</span></> }description="Returns a list of function calls present in the value of this argument." />
49
49
50
50
### <spanclassName="text-primary">index</span>
51
51
<HorizontalDividerlight={true} />
@@ -71,19 +71,19 @@ import {Attribute} from '/snippets/Attribute.mdx';
<Attributetype={ <><ahref="/api-reference/core/Class"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Class</a> <spanclassName="text-gray-200">| None</span></> }description="Find the class this node is contained in" />
74
+
<Attributetype={ <><ahref="/api-reference/core/Class"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Class</a> <span>| None</span></> }description="Find the class this node is contained in" />
<Attributetype={ <><ahref="/api-reference/core/Function"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Function</a> <spanclassName="text-gray-200">| None</span></> }description="Find the function this node is contained in" />
78
+
<Attributetype={ <><ahref="/api-reference/core/Function"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Function</a> <span>| None</span></> }description="Find the function this node is contained in" />
<Attributetype={ <><ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <spanclassName="text-gray-200">| list[</span> <ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <spanclassName="text-gray-200">]</span></> }description="Returns the resolved type of an Expression." />
86
+
<Attributetype={ <><ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <span>| list[</span> <ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <span>]</span></> }description="Returns the resolved type of an Expression." />
87
87
88
88
### <spanclassName="text-primary">source</span>
89
89
<HorizontalDividerlight={true} />
@@ -100,11 +100,11 @@ import {Attribute} from '/snippets/Attribute.mdx';
100
100
101
101
### <spanclassName="text-primary">value</span>
102
102
<HorizontalDividerlight={true} />
103
-
<Attributetype={ <><ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <spanclassName="text-gray-200">| None</span></> }description="Gets the value node of the object." />
103
+
<Attributetype={ <><ahref="/api-reference/core/Expression"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Expression</a> <span>| None</span></> }description="Gets the value node of the object." />
<Attributetype={ <><spanclassName="text-gray-200">list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <spanclassName="text-gray-200">]</span></> }description="Returns Editables for all TreeSitter node instances of variable usages within this node's" />
107
+
<Attributetype={ <><span>list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <span>]</span></> }description="Returns Editables for all TreeSitter node instances of variable usages within this node's" />
108
108
109
109
110
110
## Methods
@@ -131,7 +131,7 @@ Find all ancestors of the node of the given type. Does not return itself
@@ -189,7 +189,7 @@ Find and return matching nodes or substrings within an Editable instance.
189
189
</ParameterWrapper>
190
190
191
191
192
-
<Returnreturn_type={ <><spanclassName="text-gray-200">list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <spanclassName="text-gray-200">]</span></> }description="A list of Editable instances that match the search criteria."/>
192
+
<Returnreturn_type={ <><span>list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <span>]</span></> }description="A list of Editable instances that match the search criteria."/>
<Returnreturn_type={ <><ahref="/api-reference/core/Name"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Name</a> <spanclassName="text-gray-200">|</span> <ahref="/api-reference/core/ChainedAttribute"style={ {fontWeight: "inherit", fontSize: "inherit"} }>ChainedAttribute</a> <spanclassName="text-gray-200">| None</span></> }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."/>
231
+
<Returnreturn_type={ <><ahref="/api-reference/core/Name"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Name</a> <span>|</span> <ahref="/api-reference/core/ChainedAttribute"style={ {fontWeight: "inherit", fontSize: "inherit"} }>ChainedAttribute</a> <span>| None</span></> }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."/>
@@ -473,7 +473,7 @@ Returns a list of all regex match of `regex_pattern`, similar to python's re.sea
473
473
</ParameterWrapper>
474
474
475
475
476
-
<Returnreturn_type={ <><spanclassName="text-gray-200">list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <spanclassName="text-gray-200">]</span></> }description="A list of Editable objects corresponding to the matches found."/>
476
+
<Returnreturn_type={ <><span>list[</span> <ahref="/api-reference/core/Editable"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Editable</a> <span>]</span></> }description="A list of Editable objects corresponding to the matches found."/>
0 commit comments