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
OperandNodeThe operand of the unary operation.
OperatorTokenTypeThe operator TokenType of the unary operation.
StartPositionPositionThe starting Position of the UnaryOperationNode.
EndPositionPositionThe 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; }