API reference
python:astx:astx.collections.ListLength
class ListLength
ListLength(base: astx.AST)
Source: packages/astx/src/astx/collections/list.py:207
Declared as: python:astx:astx.collections.list.ListLength
Internal list length node.
Return the current logical length of one list-valued expression as an int64 value. No narrowing is performed at this query boundary.
Attributes
-
base — Base value or declaration.; Type: astx.AST
-
type_ — Type associated with this expression.; Type: astx.Int64
-
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 length query.
-
get_struct — Return the structured representation.