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

TCaseOperation.NodeType

Get the result type for case operation

Declaration

Source position: fpexprpars.pp line 290

public function TCaseOperation.NodeType: TResultType; override;

Function result

Returns the result type of the case

Description

The NodeType method returns the data type that will be produced by the case operation. The result type is determined by analyzing all possible case branches to ensure they are compatible and determining the common result type.

The case operation ensures that all branches produce results of the same type, or automatically performs appropriate type conversions to achieve a common result type for the entire operation.


Documentation generated on: Dec 15 2025