Sign in Join
FPDoc Onlineexperiment

TFPExprNode.NodeValue function

Member of TFPExprNodepublicIn unit fpExprPars

Get the evaluated value of this expression node

Declaration

pascal
function NodeValue: TFPExpressionResult

Function result

Returns the evaluated result of the node

Description

The NodeValue method evaluates the expression node and returns the result as a TFPExpressionResult record containing both the value and its type information.

The method performs the actual computation represented by this node, including evaluating any child nodes or operands as needed. For simple nodes like literals, it returns the stored value; for complex nodes like operations, it computes the result from its operands.

The returned result includes type information to ensure proper handling of the value by calling code.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.