Skip to content

TFPUnaryOperator.Create

Create unary operator with operand

Declaration

Source position: fpexprpars.pp line 369

public 
constructor TFPUnaryOperator.Create(AOperand: TFPExprNode);

Description

The TFPUnaryOperator constructor creates a new unary operation with the specified operand. It takes ownership of the operand node and manages its lifecycle as part of the unary operation.

The constructor properly initializes the unary operation structure and establishes the relationship between the operation and its operand, ensuring that the operand is properly managed during the operation's lifetime.