Table of Contents

Class UnaryOperationNode

Namespace
EzrSquared.Runtime.Nodes
Assembly
ezrSquared-lib.dll

The Node structure for a unary operation.

public record UnaryOperationNode : Node
Inheritance
object
UnaryOperationNode
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 Node

The operand of the unary operation.

Operator TokenType

The operator TokenType of the unary operation.

StartPosition Position

The starting Position of the UnaryOperationNode.

EndPosition Position

The ending Position of the UnaryOperationNode.

Properties

Operand

The operand of the unary operation.

public Node Operand { get; init; }

Property Value

Node

Operator

The operator TokenType of the unary operation.

public TokenType Operator { get; init; }

Property Value

TokenType