API reference
python:astx:astx.collections.ListIndex
class ListIndex
ListIndex(base: astx.AST, index: astx.AST)
Source: packages/astx/src/astx/collections/list.py:123
Declared as: python:astx:astx.collections.list.ListIndex
Internal list indexing node.
Read one element from a list-valued expression using one integer index.
Attributes
-
base — Type: astx.AST
-
index — Type: astx.AST
-
type_ — Type: astx.DataType
Methods
-
__init__ — Initialize one list indexing expression.
-
get_struct — Return the structured representation.