API reference
python:astx:astx.collections.common.CollectionIsEmpty
class CollectionIsEmpty
CollectionIsEmpty(base: astx.AST)
Source: packages/astx/src/astx/collections/common.py:58
Common collection emptiness query node.
Return whether a list, tuple, set, or dictionary has no logical entries.
Attributes
-
base — Base value or declaration.; Type: astx.AST
-
type_ — Type associated with this expression.; Type: astx.Boolean
-
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 collection emptiness query.
-
get_struct — Return the structured representation.