@@ -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/mintlify-doc-fix /src/codegen/sdk/core/detached_symbols/argument.py#L30-L155" />
14
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/detached_symbols/argument.py#L30-L155" />
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 )
@@ -111,7 +111,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
111
111
<HorizontalDivider />
112
112
### <span className = " text-primary" >add_keyword</span >
113
113
Converts an unnamed argument to a named argument by adding a keyword.
114
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/detached_symbols/argument.py#L105-L120" />
114
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/detached_symbols/argument.py#L105-L120" />
115
115
116
116
<ParameterWrapper >
117
117
<Parameter
@@ -128,15 +128,15 @@ Converts an unnamed argument to a named argument by adding a keyword.
128
128
129
129
### <span className = " text-primary" >ancestors</span >
130
130
Find all ancestors of the node of the given type. Does not return itself
131
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L1082-L1090" />
131
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L1082-L1090" />
132
132
133
133
134
134
<Return return_type = { <><span className = " text-gray-200" >list[</span > <a href = " /api-reference/core/Editable" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Editable</a > <span className = " text-gray-200" >]</span ></> } description = " " />
135
135
136
136
137
137
### <span className = " text-primary" >edit</span >
138
138
Replace the source of this ` Editable ` with ` new_src ` .
139
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L626-L654" />
139
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L626-L654" />
140
140
141
141
<ParameterWrapper >
142
142
<Parameter
@@ -171,7 +171,7 @@ Replace the source of this `Editable` with `new_src`.
171
171
172
172
### <span className = " text-primary" >find</span >
173
173
Find and return matching nodes or substrings within an Editable instance.
174
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L476-L493" />
174
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L476-L493" />
175
175
176
176
<ParameterWrapper >
177
177
<Parameter
@@ -194,7 +194,7 @@ Find and return matching nodes or substrings within an Editable instance.
194
194
195
195
### <span className = " text-primary" >find_string_literals</span >
196
196
Returns a list of string literals within this node's source that match any of the given
197
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L388-L402" />
197
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L388-L402" />
198
198
199
199
<ParameterWrapper >
200
200
<Parameter
@@ -217,23 +217,23 @@ Returns a list of string literals within this node's source that match any of th
217
217
218
218
### <span className = " text-primary" >flag</span >
219
219
Adds a visual flag comment to the end of this Editable's source text.
220
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L920-L931" />
220
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L920-L931" />
221
221
222
222
223
223
<Return return_type = { <><span className = " text-gray-200" >CodeFlag[</span > <a href = " /api-reference/core/Argument" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Argument</a > <span className = " text-gray-200" >]</span ></> } description = " " />
224
224
225
225
226
226
### <span className = " text-primary" >get_name</span >
227
227
Returns the name node of the object.
228
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/has_name.py#L52-L62" />
228
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/has_name.py#L52-L62" />
229
229
230
230
231
231
<Return return_type = { <><a href = " /api-reference/core/Name" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Name</a > <span className = " text-gray-200" >|</span > <a href = " /api-reference/core/ChainedAttribute" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >ChainedAttribute</a > <span className = " 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." />
232
232
233
233
234
234
### <span className = " text-primary" >get_variable_usages</span >
235
235
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
236
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L896-L912" />
236
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L896-L912" />
237
237
238
238
<ParameterWrapper >
239
239
<Parameter
@@ -256,7 +256,7 @@ Returns Editables for all TreeSitter nodes corresponding to instances of variabl
256
256
257
257
### <span className = " text-primary" >insert_after</span >
258
258
Inserts code after this node.
259
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L597-L623" />
259
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L597-L623" />
260
260
261
261
<ParameterWrapper >
262
262
<Parameter
@@ -297,7 +297,7 @@ Inserts code after this node.
297
297
298
298
### <span className = " text-primary" >insert_before</span >
299
299
Inserts text before this node's source with optional indentation and newline handling.
300
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L564-L594" />
300
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L564-L594" />
301
301
302
302
<ParameterWrapper >
303
303
<Parameter
@@ -338,31 +338,31 @@ Inserts text before this node's source with optional indentation and newline han
338
338
339
339
### <span className = " text-primary" >is_wrapped_in</span >
340
340
Check if this node is contained another node of the given class
341
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L1068-L1070" />
341
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L1068-L1070" />
342
342
343
343
344
344
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >bool</code > } description = " " />
345
345
346
346
347
347
### <span className = " text-primary" >parent_of_type</span >
348
348
Find the first ancestor of the node of the given type. Does not return itself
349
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L1073-L1079" />
349
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L1073-L1079" />
350
350
351
351
352
352
<Return return_type = { <><a href = " /api-reference/core/Editable" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Editable</a > <span className = " text-gray-200" >| None</span ></> } description = " " />
353
353
354
354
355
355
### <span className = " text-primary" >reduce_condition</span >
356
356
Reduces an editable to the following condition
357
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L1024-L1029" />
357
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L1024-L1029" />
358
358
359
359
360
360
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
361
361
362
362
363
363
### <span className = " text-primary" >remove</span >
364
364
Deletes this Node and its related extended nodes (e.g. decorators, comments).
365
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L676-L691" />
365
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L676-L691" />
366
366
367
367
<ParameterWrapper >
368
368
<Parameter
@@ -391,7 +391,7 @@ Deletes this Node and its related extended nodes (e.g. decorators, comments).
391
391
392
392
### <span className = " text-primary" >rename</span >
393
393
Sets the name of an object and updates all its usages.
394
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/has_name.py#L80-L89" />
394
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/has_name.py#L80-L89" />
395
395
396
396
<ParameterWrapper >
397
397
<Parameter
@@ -408,7 +408,7 @@ Sets the name of an object and updates all its usages.
408
408
409
409
### <span className = " text-primary" >replace</span >
410
410
Search and replace occurrences of text within this node's source and its extended nodes.
411
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L421-L445" />
411
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L421-L445" />
412
412
413
413
<ParameterWrapper >
414
414
<Parameter
@@ -449,7 +449,7 @@ Search and replace occurrences of text within this node's source and its extende
449
449
450
450
### <span className = " text-primary" >search</span >
451
451
Returns a list of all regex match of ` regex_pattern ` , similar to python's re.search().
452
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/editable.py#L509-L525" />
452
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/editable.py#L509-L525" />
453
453
454
454
<ParameterWrapper >
455
455
<Parameter
@@ -478,7 +478,7 @@ Returns a list of all regex match of `regex_pattern`, similar to python's re.sea
478
478
479
479
### <span className = " text-primary" >set_name</span >
480
480
Sets the name of a code element.
481
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/has_name.py#L65-L77" />
481
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/has_name.py#L65-L77" />
482
482
483
483
<ParameterWrapper >
484
484
<Parameter
@@ -495,7 +495,7 @@ Sets the name of a code element.
495
495
496
496
### <span className = " text-primary" >set_value</span >
497
497
Sets the value of the node's value Expression.
498
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/mintlify-doc-fix /src/codegen/sdk/core/interfaces/has_value.py#L23-L35" />
498
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop /src/codegen/sdk/core/interfaces/has_value.py#L23-L35" />
499
499
500
500
<ParameterWrapper >
501
501
<Parameter
0 commit comments