API reference
python:astx:astx.NotOp
class NotOp
NotOp(operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/types/operators.py:727
Declared as: python:astx:astx.types.operators.NotOp
AST class for logical NOT operation.
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__ — Instantiate AST class for logical NOT operation.