Skip to content

UnaryOpNode Class ​

Definition ​

Represents a unary operator expression such as !x, -x, or +x.

  • Namespace: JASE.Expressions.Models
  • Assembly: JASE.Expressions.dll

Properties ​

NameDescription
KindExpresses the Kind of AstNode object
OperandGets the expression operand to which the operator is applied.
OperatorGets the operator token (e.g., -, +, !).

Remarks ​

Constructed by the parser whenever a unary operator token precedes an operand. Semantic behavior (numeric negation, logical negation, etc.) is implemented in the AstEvaluator.