@@ -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/class_definition.py#L53-L417 " />
14
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L55-L419 " />
15
15
16
16
### Inherits from
17
17
[ HasBlock] ( /api-reference/core/HasBlock ) , [ Callable] ( /api-reference/core/Callable ) , [ Expression] ( /api-reference/core/Expression ) , [ Usable] ( /api-reference/core/Usable ) , [ Symbol] ( /api-reference/core/Symbol ) , [ Editable] ( /api-reference/core/Editable ) , [ Importable] ( /api-reference/core/Importable ) , [ HasName] ( /api-reference/core/HasName )
@@ -147,7 +147,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
147
147
<HorizontalDivider />
148
148
### <span className = " text-primary" >add_attribute</span >
149
149
Adds an attribute to a class from another class.
150
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L358-L381 " />
150
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L360-L383 " />
151
151
152
152
<ParameterWrapper >
153
153
<Parameter
@@ -170,7 +170,7 @@ Adds an attribute to a class from another class.
170
170
171
171
### <span className = " text-primary" >add_attribute_from_source</span >
172
172
Adds an attribute to a class from raw source code, placing it in a specific location
173
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L332-L355 " />
173
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L334-L357 " />
174
174
175
175
<ParameterWrapper >
176
176
<Parameter
@@ -244,7 +244,7 @@ Insert a keyword in the appropriate place before this symbol if it doesn't alrea
244
244
245
245
### <span className = " text-primary" >add_source</span >
246
246
Add a block of source code to the bottom of a class definition.
247
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L318-L329 " />
247
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L320-L331 " />
248
248
249
249
<ParameterWrapper >
250
250
<Parameter
@@ -269,7 +269,7 @@ Find all ancestors of the node of the given type. Does not return itself
269
269
270
270
### <span className = " text-primary" >attributes</span >
271
271
Retrieves all attributes from this Class including those from its superclasses up to a
272
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L272-L291 " />
272
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L274-L293 " />
273
273
274
274
<ParameterWrapper >
275
275
<Parameter
@@ -404,7 +404,7 @@ Adds a visual flag comment to the end of this Editable's source text.
404
404
405
405
### <span className = " text-primary" >get_attribute</span >
406
406
Returns a specific attribute by name.
407
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L294-L311 " />
407
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L296-L313 " />
408
408
409
409
<ParameterWrapper >
410
410
<Parameter
@@ -421,7 +421,7 @@ Returns a specific attribute by name.
421
421
422
422
### <span className = " text-primary" >get_method</span >
423
423
Returns a specific method by name from the class or any of its superclasses.
424
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L251-L268 " />
424
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L253-L270 " />
425
425
426
426
<ParameterWrapper >
427
427
<Parameter
@@ -446,7 +446,7 @@ Returns the name node of the object.
446
446
447
447
### <span className = " text-primary" >get_nested_class</span >
448
448
Returns a nested class by name from the current class.
449
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L234-L248 " />
449
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L236-L250 " />
450
450
451
451
<ParameterWrapper >
452
452
<Parameter
@@ -514,7 +514,7 @@ Retrieves a parameter from the callable by its type.
514
514
515
515
### <span className = " text-primary" >get_parent_class</span >
516
516
Returns the parent class node with the specified name.
517
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L111-L123 " />
517
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L113-L125 " />
518
518
519
519
<ParameterWrapper >
520
520
<Parameter
@@ -642,7 +642,7 @@ Inserts text before the current symbol node in the Abstract Syntax Tree.
642
642
643
643
### <span className = " text-primary" >is_subclass_of</span >
644
644
Checks if the class inherits from a specified parent class.
645
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L138-L152 " />
645
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L140-L154 " />
646
646
647
647
<ParameterWrapper >
648
648
<Parameter
@@ -673,7 +673,7 @@ Check if this node is contained another node of the given class
673
673
674
674
### <span className = " text-primary" >methods</span >
675
675
Retrieves all methods that exist on this Class, including methods from superclasses, with
676
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L203-L231 " />
676
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L205-L233 " />
677
677
678
678
<ParameterWrapper >
679
679
<Parameter
@@ -937,7 +937,7 @@ Sets the name of a code element.
937
937
938
938
### <span className = " text-primary" >subclasses</span >
939
939
Returns all classes which subclass this class.
940
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L156-L167 " />
940
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L158-L169 " />
941
941
942
942
<ParameterWrapper >
943
943
<Parameter
@@ -954,7 +954,7 @@ Returns all classes which subclass this class.
954
954
955
955
### <span className = " text-primary" >superclasses</span >
956
956
Returns a list of all classes that this class extends, up to max_depth.
957
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L77-L93 " />
957
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen-sdk/blob/develop/src/codegen/sdk/core/class_definition.py#L79-L95 " />
958
958
959
959
<ParameterWrapper >
960
960
<Parameter
0 commit comments