API reference
python:astx:astx.types.XorOp
class XorOp
XorOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/types/operators.py:555
Declared as: python:astx:astx.types.operators.XorOp
AST class for logical XOR operation.
Attributes
-
type_ — Type associated with this expression.; Type: ExprType
-
lhs — Left operand.; Type: DataType
-
rhs — Right operand.; Type: DataType
-
op_code — Operator spelling.; Type: str
-
mode — Selected processing mode.; Type: NumericMode
-
kind — Kind of value or operation.; Type: ASTKind
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
- __init__ — Instantiate AST class for logical XOR operation.