Validate the boolean operation for correctness
Source position: fpexprpars.pp line 156
public procedure TFPBooleanOperation.Check; override; |
The Check method validates that both operands of the boolean operation are boolean expressions. It ensures type compatibility and prevents type mismatches that would result in runtime errors during evaluation.
The validation process checks that both the left and right operands produce boolean results, raising appropriate errors if non-boolean operands are found.