API reference
python:astx:astx.types.BoolBinaryOp
class BoolBinaryOp
BoolBinaryOp(op_code: str, lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/types/operators.py:411
Declared as: python:astx:astx.types.operators.BoolBinaryOp
Base AST class for boolean binary operations.
Attributes
-
type_ — Type: ExprType
-
lhs — Type: DataType
-
rhs — Type: DataType
-
op_code — Type: str
-
mode — Type: NumericMode
-
kind — Type: ASTKind
Methods
-
__init__ — Initialize the boolean binary operation.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure that represents the object.
Attributes
- kind —