API reference
python:astx:astx.operators.AugAssign
class AugAssign
AugAssign(target: Identifier, op_code: OpCodeAugAssign, value: DataType, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/operators.py:258
AST class for augmented assignment.
Attributes
-
kind — Type: ASTKind
-
target — Type: Identifier
-
op_code — Type: OpCodeAugAssign
-
value — Type: DataType
Methods
-
__init__ — Initialize the augmented assignment.
-
__str__ — Return a string that represents the augmented assignment object.
-
get_struct — Return the AST structure of the object.