Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TCaseOperation.Check

Validate the case operation for correctness

Declaration

Source position: fpexprpars.pp line 286

public procedure TCaseOperation.Check; override;

Description

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.


Documentation generated on: Dec 15 2025