API reference
python:astx:astx.types.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:415
Declared as: python:astx:astx.types.operators.BoolUnaryOp
Base AST class for boolean unary operations.
Attributes
-
op_code — Operator spelling.; Type: str
-
operand — Operand.; Type: DataType
-
kind — Kind of value or operation.; Type: ASTKind
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
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 —