UnOp constructor

UnOp(
  1. String value,
  2. Node<dynamic, LangVal<LangType>> child
)

Constructs a unary mathematical operation with the operator and operand.

Parameters:

  • value: String representation of the operator ("+" or "-")
  • child: The operand expression to apply the operation to

Implementation

UnOp(String value, Node<dynamic, LangVal> child)
    : super(MathOp.fromString(value), [child]);