API reference
python:astx:astx.collections.CollectionCount
class CollectionCount
CollectionCount(base: astx.AST, value: astx.AST)
Source: packages/astx/src/astx/collections/common.py:223
Declared as: python:astx:astx.collections.common.CollectionCount
Common sequence count query node.
Return how many times a value appears in a list or tuple as an Int32 value.
Attributes
-
base — Type: astx.AST
-
value — Type: astx.AST
-
type_ — Type: astx.Int32
Methods
-
__init__ — Initialize one sequence count query.
-
get_struct — Return the structured representation.