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:870
Declared as: python:astx:astx.types.operators.NotOp
AST class for logical NOT operation.
Attributes
-
op_code — Type: str
-
operand — Type: DataType
-
kind — Type: ASTKind
Methods
- __init__ — Instantiate AST class for logical NOT operation.