Class UnaryOperationNode

Assembly: redb.Route.dll

AST node representing a unary (prefix) operation (e.g. negation, logical NOT, prefix increment/decrement).

public class UnaryOperationNode : AstNode

Inheritance

Object→AstNode→UnaryOperationNode

Inherited Members

Properties

Operand

Gets the operand of the unary operation.

public AstNode Operand { get; }

Operator

Gets the unary operator symbol (e.g. "+", "-", "!", "NOT", "++", "--").

public string Operator { get; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

UnaryOperationNode(string, AstNode)

Initializes a new instance of the class.