Validate the case operation for correctness
Source position: fpexprpars.pp line 286
public procedure TCaseOperation.Check; override; |
The Check method validates the case operation to ensure that all components are properly configured and type-compatible. It checks that the condition expression and all case branches have compatible types and that the operation can be safely evaluated.
The validation process includes verifying that the condition can be evaluated to determine which case branch should be executed, and that all possible execution paths result in compatible data types.