API reference
python:astx:astx.collections.ListCreate
class ListCreate
ListCreate(element_type: astx.DataType)
Source: packages/astx/src/astx/collections/list.py:71
Declared as: python:astx:astx.collections.list.ListCreate
Internal empty-list constructor node.
Attributes
-
element_type — Type of each element.; Type: astx.DataType
-
type_ — Type associated with this expression.; Type: astx.ListType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize one empty-list constructor.
-
get_struct — Return the structured representation.
Attributes
-
type_ —