API reference
python:astx:astx.literals.collections.LiteralList
class LiteralList
LiteralList(elements: list[Literal], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/collections.py:16
Literal representation of a List.
Attributes
-
type_ — Type associated with this expression.; Type: ListType
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
elements — Elements.; Type: list[Literal]
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
-
value — Type: Any
Methods
- __init__ — Initialize LiteralList.