Get the result type for case operation
Source position: fpexprpars.pp line 290
public function TCaseOperation.NodeType: TResultType; override; |
Returns the result type of the case
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.