API reference
python:astx:astx.literals.LiteralList
class LiteralList
LiteralList(elements: list[Literal], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/collections.py:16
Declared as: python:astx:astx.literals.collections.LiteralList
Literal representation of a List.
Attributes
-
type_ — Type: ListType
-
loc — Type: SourceLocation
-
elements — Type: list[Literal]
Methods
- __init__ — Initialize LiteralList.