API reference
python:astx:astx.collections.ListIndex
class ListIndex
ListIndex(base: astx.AST, index: astx.AST)
Source: packages/astx/src/astx/collections/list.py:110
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 — Base value or declaration.; Type: astx.AST
-
index — Index selecting the item.; Type: astx.AST
-
type_ — Type associated with this expression.; Type: astx.DataType
-
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 list indexing expression.
-
get_struct — Return the structured representation.