@@ -11,7 +11,7 @@ import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx';
11
11
import {GithubLinkNote } from ' /snippets/GithubLinkNote.mdx' ;
12
12
import {Attribute } from ' /snippets/Attribute.mdx' ;
13
13
14
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/detached_symbols/argument.py#L30-L163" />
14
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/detached_symbols/argument.py#L30-L163" />
15
15
16
16
### Inherits from
17
17
[ HasValue] ( /api-reference/core/HasValue ) , [ Expression] ( /api-reference/core/Expression ) , [ HasName] ( /api-reference/core/HasName ) , [ Editable] ( /api-reference/core/Editable )
@@ -95,7 +95,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
95
95
<HorizontalDivider />
96
96
### <span className = " text-primary" >add_keyword</span >
97
97
Converts an unnamed argument to a named argument by adding a keyword.
98
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/detached_symbols/argument.py#L112-L128" />
98
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/detached_symbols/argument.py#L112-L128" />
99
99
100
100
<ParameterWrapper >
101
101
<Parameter
@@ -112,15 +112,15 @@ Converts an unnamed argument to a named argument by adding a keyword.
112
112
113
113
### <span className = " text-primary" >ancestors</span >
114
114
Find all ancestors of the node of the given type. Does not return itself
115
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1109-L1117" />
115
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1109-L1117" />
116
116
117
117
118
118
<Return return_type = { <><span >list[</span > <a href = " /api-reference/core/Editable" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Editable</a > <span >]</span ></> } description = " " />
119
119
120
120
121
121
### <span className = " text-primary" >edit</span >
122
122
Replace the source of this ` Editable ` with ` new_src ` .
123
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L637-L665" />
123
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L637-L665" />
124
124
125
125
<ParameterWrapper >
126
126
<Parameter
@@ -155,7 +155,7 @@ Replace the source of this `Editable` with `new_src`.
155
155
156
156
### <span className = " text-primary" >find</span >
157
157
Find and return matching nodes or substrings within an Editable instance.
158
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L487-L504" />
158
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L487-L504" />
159
159
160
160
<ParameterWrapper >
161
161
<Parameter
@@ -178,7 +178,7 @@ Find and return matching nodes or substrings within an Editable instance.
178
178
179
179
### <span className = " text-primary" >find_string_literals</span >
180
180
Returns a list of string literals within this node's source that match any of the given
181
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L398-L412" />
181
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L398-L412" />
182
182
183
183
<ParameterWrapper >
184
184
<Parameter
@@ -201,23 +201,23 @@ Returns a list of string literals within this node's source that match any of th
201
201
202
202
### <span className = " text-primary" >flag</span >
203
203
Adds a visual flag comment to the end of this Editable's source text.
204
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L939-L950" />
204
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L939-L950" />
205
205
206
206
207
207
<Return return_type = { <><span >CodeFlag[</span > <a href = " /api-reference/core/Argument" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Argument</a > <span >]</span ></> } description = " " />
208
208
209
209
210
210
### <span className = " text-primary" >get_name</span >
211
211
Returns the name node of the object.
212
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L52-L62" />
212
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L52-L62" />
213
213
214
214
215
215
<Return return_type = { <><a href = " /api-reference/core/Name" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Name</a > <span >|</span > <a href = " /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." />
216
216
217
217
218
218
### <span className = " text-primary" >get_variable_usages</span >
219
219
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
220
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L909-L925" />
220
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L909-L925" />
221
221
222
222
<ParameterWrapper >
223
223
<Parameter
@@ -240,7 +240,7 @@ Returns Editables for all TreeSitter nodes corresponding to instances of variabl
240
240
241
241
### <span className = " text-primary" >insert_after</span >
242
242
Inserts code after this node.
243
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L608-L634" />
243
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L608-L634" />
244
244
245
245
<ParameterWrapper >
246
246
<Parameter
@@ -281,7 +281,7 @@ Inserts code after this node.
281
281
282
282
### <span className = " text-primary" >insert_before</span >
283
283
Inserts text before this node's source with optional indentation and newline handling.
284
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L575-L605" />
284
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L575-L605" />
285
285
286
286
<ParameterWrapper >
287
287
<Parameter
@@ -322,39 +322,39 @@ Inserts text before this node's source with optional indentation and newline han
322
322
323
323
### <span className = " text-primary" >is_wrapped_in</span >
324
324
Check if this node is contained another node of the given class
325
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1087-L1089" />
325
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1087-L1089" />
326
326
327
327
328
328
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >bool</code > } description = " " />
329
329
330
330
331
331
### <span className = " text-primary" >parent_of_type</span >
332
332
Find the first ancestor of the node of the given type. Does not return itself
333
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1092-L1098" />
333
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1092-L1098" />
334
334
335
335
336
336
<Return return_type = { <><a href = " /api-reference/core/Editable" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Editable</a > <span >| None</span ></> } description = " " />
337
337
338
338
339
339
### <span className = " text-primary" >parent_of_types</span >
340
340
Find the first ancestor of the node of the given type. Does not return itself
341
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1100-L1106" />
341
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1100-L1106" />
342
342
343
343
344
344
<Return return_type = { <><a href = " /api-reference/core/Editable" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Editable</a > <span >| None</span ></> } description = " " />
345
345
346
346
347
347
### <span className = " text-primary" >reduce_condition</span >
348
348
Reduces an editable to the following condition
349
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1043-L1048" />
349
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L1043-L1048" />
350
350
351
351
352
352
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
353
353
354
354
355
355
### <span className = " text-primary" >remove</span >
356
356
Deletes this Node and its related extended nodes (e.g. decorators, comments).
357
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L687-L702" />
357
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L687-L702" />
358
358
359
359
<ParameterWrapper >
360
360
<Parameter
@@ -383,7 +383,7 @@ Deletes this Node and its related extended nodes (e.g. decorators, comments).
383
383
384
384
### <span className = " text-primary" >rename</span >
385
385
Sets the name of an object and updates all its usages.
386
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L80-L89" />
386
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L80-L89" />
387
387
388
388
<ParameterWrapper >
389
389
<Parameter
@@ -400,7 +400,7 @@ Sets the name of an object and updates all its usages.
400
400
401
401
### <span className = " text-primary" >replace</span >
402
402
Search and replace occurrences of text within this node's source and its extended nodes.
403
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L432-L456" />
403
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L432-L456" />
404
404
405
405
<ParameterWrapper >
406
406
<Parameter
@@ -441,7 +441,7 @@ Search and replace occurrences of text within this node's source and its extende
441
441
442
442
### <span className = " text-primary" >search</span >
443
443
Returns a list of all regex match of ` regex_pattern ` , similar to python's re.search().
444
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/editable.py#L520-L536" />
444
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/editable.py#L520-L536" />
445
445
446
446
<ParameterWrapper >
447
447
<Parameter
@@ -470,7 +470,7 @@ Returns a list of all regex match of `regex_pattern`, similar to python's re.sea
470
470
471
471
### <span className = " text-primary" >set_name</span >
472
472
Sets the name of a code element.
473
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L65-L77" />
473
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/has_name.py#L65-L77" />
474
474
475
475
<ParameterWrapper >
476
476
<Parameter
@@ -487,7 +487,7 @@ Sets the name of a code element.
487
487
488
488
### <span className = " text-primary" >set_value</span >
489
489
Sets the value of the node's value Expression.
490
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk /blob/develop/src/codegen/sdk/core/interfaces/has_value.py#L23-L35" />
490
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/interfaces/has_value.py#L23-L35" />
491
491
492
492
<ParameterWrapper >
493
493
<Parameter
0 commit comments