Validate the NOT operation for correctness
Source position: fpexprpars.pp line 388
public procedure TFPNotNode.Check; override; |
The Check method validates that the operand of the NOT operation is a boolean expression. It ensures type compatibility and prevents type mismatches that would result in runtime errors during evaluation.
The validation process checks that the operand produces a boolean result, raising appropriate errors if non-boolean operands are found.