Class UnaryOperationNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a unary operation.
public record UnaryOperationNode : Node
- Inheritance
-
objectUnaryOperationNode
- Inherited Members
Constructors
UnaryOperationNode(Node, TokenType, Position, Position)
The Node structure for a unary operation.
public UnaryOperationNode(Node Operand, TokenType Operator, Position StartPosition, Position EndPosition)
Parameters
Operand
NodeThe operand of the unary operation.
Operator
TokenTypeThe operator TokenType of the unary operation.
StartPosition
PositionThe starting Position of the UnaryOperationNode.
EndPosition
PositionThe ending Position of the UnaryOperationNode.
Properties
Operand
The operand of the unary operation.
public Node Operand { get; init; }
Property Value
Operator
The operator TokenType of the unary operation.
public TokenType Operator { get; init; }