API reference
python:astx:astx.types.operators.BoolUnaryOp
class BoolUnaryOp
BoolUnaryOp(op_code: str, operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/types/operators.py:488
Base AST class for boolean unary operations.
Attributes
-
op_code — Type: str
-
operand — Type: DataType
-
kind — Type: ASTKind
Methods
-
__init__ — Initialize the boolean unary operation.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure that represents the object.
Attributes
- kind —